diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-26 13:04:22 -0600 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-26 13:04:22 -0600 |
commit | d3b07cd2025b0ee1ba76b8e92492f035ff447f33 (patch) | |
tree | a4b42cb95b3829b7631b5e6a557c64d9175b5672 /framework/qml/AbstractButton.qml | |
parent | 1d8bc8edef997544243d66d9761ccfb7a51a8d74 (diff) | |
download | kube-d3b07cd2025b0ee1ba76b8e92492f035ff447f33.tar.gz kube-d3b07cd2025b0ee1ba76b8e92492f035ff447f33.zip |
Bring back the highlight on buttons
Diffstat (limited to 'framework/qml/AbstractButton.qml')
-rw-r--r-- | framework/qml/AbstractButton.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/qml/AbstractButton.qml b/framework/qml/AbstractButton.qml index c49a490b..d55176ea 100644 --- a/framework/qml/AbstractButton.qml +++ b/framework/qml/AbstractButton.qml | |||
@@ -26,6 +26,8 @@ T.Button { | |||
26 | 26 | ||
27 | property color color: Colors.buttonColor | 27 | property color color: Colors.buttonColor |
28 | property color textColor: Colors.textColor | 28 | property color textColor: Colors.textColor |
29 | property alias highlightColor: background.highlightColor | ||
30 | property alias highlightOpacity: background.highlightOpacity | ||
29 | property alias horizontalAlignment: label.horizontalAlignment | 31 | property alias horizontalAlignment: label.horizontalAlignment |
30 | property alias verticalAlignment: label.verticalAlignment | 32 | property alias verticalAlignment: label.verticalAlignment |
31 | 33 | ||
@@ -41,6 +43,7 @@ T.Button { | |||
41 | Keys.onReturnPressed: root.clicked() | 43 | Keys.onReturnPressed: root.clicked() |
42 | 44 | ||
43 | background: DelegateBackground { | 45 | background: DelegateBackground { |
46 | id: background | ||
44 | selected: root.checked | 47 | selected: root.checked |
45 | focused: root.hovered || root.visualFocus | 48 | focused: root.hovered || root.visualFocus |
46 | color: root.color | 49 | color: root.color |