summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--framework/qml/DelegateBackground.qml9
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/qml/DelegateBackground.qml b/framework/qml/DelegateBackground.qml
index 190c4803..633a39ca 100644
--- a/framework/qml/DelegateBackground.qml
+++ b/framework/qml/DelegateBackground.qml
@@ -24,21 +24,24 @@ Rectangle {
24 id: root 24 id: root
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
28 property color borderColor: Kube.Colors.focusedButtonColor
29
27 Rectangle { 30 Rectangle {
28 anchors.fill: parent 31 anchors.fill: parent
29 visible: root.selected 32 visible: root.selected
30 color: Kube.Colors.highlightColor 33 color: root.highlightColor
31 } 34 }
32 Rectangle { 35 Rectangle {
33 anchors.fill: parent 36 anchors.fill: parent
34 visible: root.focused && !root.selected 37 visible: root.focused && !root.selected
35 color: Kube.Colors.highlightColor 38 color: root.highlightColor
36 opacity: 0.4 39 opacity: 0.4
37 } 40 }
38 Rectangle { 41 Rectangle {
39 anchors.fill: parent 42 anchors.fill: parent
40 visible: root.focused && root.selected 43 visible: root.focused && root.selected
41 border.color: Kube.Colors.focusedButtonColor 44 border.color: root.borderColor
42 border.width: 2 45 border.width: 2
43 color: "transparent" 46 color: "transparent"
44 } 47 }