From 1d8bc8edef997544243d66d9761ccfb7a51a8d74 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 26 Jul 2017 12:57:13 -0600 Subject: DelegateBackground color properties --- framework/qml/DelegateBackground.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'framework/qml') 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 { id: root property bool focused: false property bool selected: false + property color highlightColor: Kube.Colors.highlightColor + property color borderColor: Kube.Colors.focusedButtonColor + Rectangle { anchors.fill: parent visible: root.selected - color: Kube.Colors.highlightColor + color: root.highlightColor } Rectangle { anchors.fill: parent visible: root.focused && !root.selected - color: Kube.Colors.highlightColor + color: root.highlightColor opacity: 0.4 } Rectangle { anchors.fill: parent visible: root.focused && root.selected - border.color: Kube.Colors.focusedButtonColor + border.color: root.borderColor border.width: 2 color: "transparent" } -- cgit v1.2.3