diff options
Diffstat (limited to 'resources/qml/ToggleButton.qml')
-rw-r--r-- | resources/qml/ToggleButton.qml | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/resources/qml/ToggleButton.qml b/resources/qml/ToggleButton.qml index f3bd5cce..f48fcb68 100644 --- a/resources/qml/ToggleButton.qml +++ b/resources/qml/ToggleButton.qml @@ -46,24 +46,20 @@ Switch { name: "off" PropertyChanges { - border.color: "#767676" - target: track + track.border.color: "#767676" } PropertyChanges { - target: handle - x: 0 + handle.x: 0 } }, State { name: "on" PropertyChanges { - border.color: palette.highlight - target: track + track.border.color: palette.highlight } PropertyChanges { - target: handle - x: indicatorItem.width - handle.width + handle.x: indicatorItem.width - handle.width } } ] |