summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-10-04 13:37:18 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-10-04 13:37:18 +0200
commit1aacdc7ec2e4e21bd5141db0533b8d17ca160950 (patch)
tree607efddad317a8e67ae9c24fb406c27b26861c76
parentb4c951ac9397eda3a380489dafbed7cb4b96bd25 (diff)
downloadkube-1aacdc7ec2e4e21bd5141db0533b8d17ca160950.tar.gz
kube-1aacdc7ec2e4e21bd5141db0533b8d17ca160950.zip
make switch a little more pretty
-rw-r--r--framework/qml/Switch.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/qml/Switch.qml b/framework/qml/Switch.qml
index 2803c84a..ad24054c 100644
--- a/framework/qml/Switch.qml
+++ b/framework/qml/Switch.qml
@@ -16,17 +16,15 @@ T.Switch {
16 Rectangle { 16 Rectangle {
17 width: parent.width 17 width: parent.width
18 height: parent.height 18 height: parent.height
19 radius: 5
20 color: root.checked ? Kube.Colors.highlightColor : Kube.Colors.buttonColor 19 color: root.checked ? Kube.Colors.highlightColor : Kube.Colors.buttonColor
20 radius: 2
21 } 21 }
22 22
23 Rectangle { 23 Rectangle {
24 height: parent.height 24 height: parent.height
25 width: height 25 width: height
26
27 x: root.visualPosition * Kube.Units.gridUnit 26 x: root.visualPosition * Kube.Units.gridUnit
28 27 radius: 2
29 radius: 5
30 color: Kube.Colors.viewBackgroundColor 28 color: Kube.Colors.viewBackgroundColor
31 border.width: 1 29 border.width: 1
32 border.color: Kube.Colors.buttonColor 30 border.color: Kube.Colors.buttonColor