summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 12:57:13 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 12:57:13 -0600
commit1d8bc8edef997544243d66d9761ccfb7a51a8d74 (patch)
tree55a3d7b8e0cc33b75c20020d0a0567fb6d1d87a9 /framework
parent4aa457b4daa5b678a6fe0e716c8b495f3f7d5f04 (diff)
downloadkube-1d8bc8edef997544243d66d9761ccfb7a51a8d74.tar.gz
kube-1d8bc8edef997544243d66d9761ccfb7a51a8d74.zip
DelegateBackground color properties
Diffstat (limited to 'framework')
-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 }