diff options
Diffstat (limited to 'framework/qml/Switch.qml')
-rw-r--r-- | framework/qml/Switch.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/qml/Switch.qml b/framework/qml/Switch.qml index ad24054c..6ed10ecd 100644 --- a/framework/qml/Switch.qml +++ b/framework/qml/Switch.qml | |||
@@ -9,6 +9,8 @@ T.Switch { | |||
9 | implicitWidth: indicator.width | 9 | implicitWidth: indicator.width |
10 | implicitHeight: indicator.height | 10 | implicitHeight: indicator.height |
11 | 11 | ||
12 | Keys.onReturnPressed: root.toggle() | ||
13 | |||
12 | indicator: Item { | 14 | indicator: Item { |
13 | height: Kube.Units.gridUnit | 15 | height: Kube.Units.gridUnit |
14 | width: Kube.Units.gridUnit * 2 | 16 | width: Kube.Units.gridUnit * 2 |
@@ -26,8 +28,10 @@ T.Switch { | |||
26 | x: root.visualPosition * Kube.Units.gridUnit | 28 | x: root.visualPosition * Kube.Units.gridUnit |
27 | radius: 2 | 29 | radius: 2 |
28 | color: Kube.Colors.viewBackgroundColor | 30 | color: Kube.Colors.viewBackgroundColor |
29 | border.width: 1 | 31 | border { |
30 | border.color: Kube.Colors.buttonColor | 32 | width: root.hovered || root.visualFocus ? 2 : 1 |
33 | color: root.hovered || root.visualFocus ? Kube.Colors.highlightColor : Kube.Colors.buttonColor | ||
34 | } | ||
31 | } | 35 | } |
32 | } | 36 | } |
33 | } | 37 | } |