summaryrefslogtreecommitdiffstats
path: root/framework/qml/DelegateBackground.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 13:04:22 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 13:04:22 -0600
commitd3b07cd2025b0ee1ba76b8e92492f035ff447f33 (patch)
treea4b42cb95b3829b7631b5e6a557c64d9175b5672 /framework/qml/DelegateBackground.qml
parent1d8bc8edef997544243d66d9761ccfb7a51a8d74 (diff)
downloadkube-d3b07cd2025b0ee1ba76b8e92492f035ff447f33.tar.gz
kube-d3b07cd2025b0ee1ba76b8e92492f035ff447f33.zip
Bring back the highlight on buttons
Diffstat (limited to 'framework/qml/DelegateBackground.qml')
-rw-r--r--framework/qml/DelegateBackground.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/qml/DelegateBackground.qml b/framework/qml/DelegateBackground.qml
index 633a39ca..4059d69a 100644
--- a/framework/qml/DelegateBackground.qml
+++ b/framework/qml/DelegateBackground.qml
@@ -25,6 +25,7 @@ Rectangle {
25 property bool focused: false 25 property bool focused: false
26 property bool selected: false 26 property bool selected: false
27 property color highlightColor: Kube.Colors.highlightColor 27 property color highlightColor: Kube.Colors.highlightColor
28 property alias highlightOpacity: highlight.opacity
28 property color borderColor: Kube.Colors.focusedButtonColor 29 property color borderColor: Kube.Colors.focusedButtonColor
29 30
30 Rectangle { 31 Rectangle {
@@ -33,6 +34,7 @@ Rectangle {
33 color: root.highlightColor 34 color: root.highlightColor
34 } 35 }
35 Rectangle { 36 Rectangle {
37 id: highlight
36 anchors.fill: parent 38 anchors.fill: parent
37 visible: root.focused && !root.selected 39 visible: root.focused && !root.selected
38 color: root.highlightColor 40 color: root.highlightColor