summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/CheckBox.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/framework/qml/CheckBox.qml b/framework/qml/CheckBox.qml
index ca76c06d..17654536 100644
--- a/framework/qml/CheckBox.qml
+++ b/framework/qml/CheckBox.qml
@@ -26,6 +26,8 @@ T.CheckBox {
26 implicitWidth: indicator.width 26 implicitWidth: indicator.width
27 implicitHeight: indicator.width 27 implicitHeight: indicator.width
28 28
29 Keys.onReturnPressed: root.toggle()
30
29 indicator: Rectangle { 31 indicator: Rectangle {
30 width: Kube.Units.gridUnit 32 width: Kube.Units.gridUnit
31 height: Kube.Units.gridUnit 33 height: Kube.Units.gridUnit
@@ -34,6 +36,14 @@ T.CheckBox {
34 border.width: 1 36 border.width: 1
35 border.color: Kube.Colors.buttonColor 37 border.color: Kube.Colors.buttonColor
36 38
39 Rectangle {
40 id: highlight
41 anchors.fill: parent
42 visible: root.hovered || root.visualFocus
43 color: Kube.Colors.highlightColor
44 opacity: 0.4
45 }
46
37 Kube.Icon { 47 Kube.Icon {
38 anchors.centerIn: parent 48 anchors.centerIn: parent
39 height: Kube.Units.gridUnit 49 height: Kube.Units.gridUnit