diff options
-rw-r--r-- | framework/qml/AbstractButton.qml | 18 |
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 |