wallpaper cropper slider inset icon, fixed disabled splitbutton state
This commit is contained in:
@@ -77,9 +77,9 @@ CustomMouseArea {
|
||||
anchors.leftMargin: -Appearance.padding.normal
|
||||
anchors.margins: -Appearance.padding.small
|
||||
anchors.rightMargin: -Appearance.padding.normal
|
||||
disabled: {
|
||||
enabled: {
|
||||
const now = new Date();
|
||||
return root.currMonth === now.getMonth() && root.currYear === now.getFullYear();
|
||||
return root.currMonth !== now.getMonth() || root.currYear !== now.getFullYear();
|
||||
}
|
||||
radius: Appearance.rounding.full
|
||||
|
||||
|
||||
@@ -296,7 +296,7 @@ Item {
|
||||
id: controlState
|
||||
|
||||
color: control.canUse ? DynamicColors.palette[`m3on${control.set_color}`] : DynamicColors.palette[`m3on${control.set_color}Container`]
|
||||
disabled: !control.canUse
|
||||
enabled: control.canUse
|
||||
|
||||
onClicked: {
|
||||
control.onClicked();
|
||||
|
||||
Reference in New Issue
Block a user