summaryrefslogtreecommitdiffstats
path: root/framework/qml/AbstractButton.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 12:55:35 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 12:55:35 -0600
commit4aa457b4daa5b678a6fe0e716c8b495f3f7d5f04 (patch)
treea712ac69ef50c184d3bf09110388ea4a36d5c0d0 /framework/qml/AbstractButton.qml
parent5512fab518bc47ac1d1a2d4d2b9e3873a5a387b7 (diff)
downloadkube-4aa457b4daa5b678a6fe0e716c8b495f3f7d5f04.tar.gz
kube-4aa457b4daa5b678a6fe0e716c8b495f3f7d5f04.zip
Use the DelegateBackground also for buttons
Diffstat (limited to 'framework/qml/AbstractButton.qml')
-rw-r--r--framework/qml/AbstractButton.qml18
1 files changed, 3 insertions, 15 deletions
diff --git a/framework/qml/AbstractButton.qml b/framework/qml/AbstractButton.qml
index 28337681..c49a490b 100644
--- a/framework/qml/AbstractButton.qml
+++ b/framework/qml/AbstractButton.qml
@@ -40,25 +40,13 @@ T.Button {
40 hoverEnabled: true 40 hoverEnabled: true
41 Keys.onReturnPressed: root.clicked() 41 Keys.onReturnPressed: root.clicked()
42 42
43 background: Rectangle { 43 background: DelegateBackground {
44 selected: root.checked
45 focused: root.hovered || root.visualFocus
44 color: root.color 46 color: root.color
45 47
46 Rectangle { 48 Rectangle {
47 anchors.fill: parent 49 anchors.fill: parent
48 visible: root.checked
49 color: Colors.highlightColor
50 }
51
52 Rectangle {
53 anchors.fill: parent
54 visible: root.hovered || root.visualFocus
55 color: "transparent"
56 border.width: 2
57 border.color: Colors.focusedButtonColor
58 }
59
60 Rectangle {
61 anchors.fill: parent
62 visible: root.pressed 50 visible: root.pressed
63 color: Colors.textColor 51 color: Colors.textColor
64 opacity: 0.2 52 opacity: 0.2