1
0
Fork 0

Fix disabled appearance of ToggleSwitch

This commit is contained in:
James Turner 2018-09-12 12:04:38 +02:00
parent 43e3d7ef38
commit 47d33b5de3

View file

@ -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