Fix disabled appearance of ToggleSwitch
This commit is contained in:
parent
43e3d7ef38
commit
47d33b5de3
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ Item {
|
|||
height: radius * 2
|
||||
radius: Style.roundRadius
|
||||
|
||||
color: (checked && enabled) ? Style.frameColor : Style.minorFrameColor
|
||||
color: (checked && root.enabled) ? Style.frameColor : Style.minorFrameColor
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: Style.margin
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
@ -41,7 +41,7 @@ Item {
|
|||
radius: Style.roundRadius * 1.5
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: enabled && (checked | mouseArea.containsMouse) ? Style.themeColor : "white"
|
||||
color: root.enabled && (checked | mouseArea.containsMouse) ? Style.themeColor : "white"
|
||||
border.width: 1
|
||||
border.color: Style.inactiveThemeColor
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue