summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-05 15:37:14 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-05 15:37:14 +0200
commitf33a17669bc38bb62ebef0ac0a64bd2f5ed683c0 (patch)
tree12a215d0ffee8a48dea9016f46568a528b8c86f9
parent75117bb742de6bb79e7078da2ff463c260bca517 (diff)
downloadkube-f33a17669bc38bb62ebef0ac0a64bd2f5ed683c0.tar.gz
kube-f33a17669bc38bb62ebef0ac0a64bd2f5ed683c0.zip
Track focused state centrally
-rw-r--r--framework/qml/ListDelegate.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/qml/ListDelegate.qml b/framework/qml/ListDelegate.qml
index 196148cb..4d0290d9 100644
--- a/framework/qml/ListDelegate.qml
+++ b/framework/qml/ListDelegate.qml
@@ -28,6 +28,7 @@ T.ItemDelegate {
28 property alias border: background.border 28 property alias border: background.border
29 property color textColor: highlighted ? Kube.Colors.highlightedTextColor : Kube.Colors.textColor 29 property color textColor: highlighted ? Kube.Colors.highlightedTextColor : Kube.Colors.textColor
30 property color disabledTextColor: highlighted ? Kube.Colors.highlightedTextColor : Kube.Colors.disabledTextColor 30 property color disabledTextColor: highlighted ? Kube.Colors.highlightedTextColor : Kube.Colors.disabledTextColor
31 property bool focused: root.hovered || root.activeFocus
31 32
32 height: Kube.Units.gridUnit * 3 33 height: Kube.Units.gridUnit * 3
33 width: root.ListView.view.width 34 width: root.ListView.view.width
@@ -44,7 +45,7 @@ T.ItemDelegate {
44 border.color: Kube.Colors.buttonColor 45 border.color: Kube.Colors.buttonColor
45 border.width: 1 46 border.width: 1
46 color: Kube.Colors.viewBackgroundColor 47 color: Kube.Colors.viewBackgroundColor
47 focused: root.hovered || root.activeFocus 48 focused: root.focused
48 selected: root.highlighted 49 selected: root.highlighted
49 } 50 }
50} 51}