summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--framework/qml/Button.qml8
-rw-r--r--framework/qml/PositiveButton.qml8
2 files changed, 8 insertions, 8 deletions
diff --git a/framework/qml/Button.qml b/framework/qml/Button.qml
index 4f3dd776..181cf58b 100644
--- a/framework/qml/Button.qml
+++ b/framework/qml/Button.qml
@@ -34,13 +34,13 @@ T.Button {
34 hoverEnabled: true 34 hoverEnabled: true
35 35
36 background: Rectangle { 36 background: Rectangle {
37 color: root.pressed ? Colors.highlightColor : Colors.buttonColor 37 color: Colors.buttonColor
38 38
39 Rectangle { 39 Rectangle {
40 anchors.fill: parent 40 anchors.fill: parent
41 visible: root.hovered 41 visible: root.hovered || root.pressed
42 color: Colors.viewBackgroundColor 42 color: root.pressed ? Colors.textColor : Colors.viewBackgroundColor
43 opacity: 0.1 43 opacity: 0.2
44 } 44 }
45 } 45 }
46 46
diff --git a/framework/qml/PositiveButton.qml b/framework/qml/PositiveButton.qml
index 534d48cd..7c00a212 100644
--- a/framework/qml/PositiveButton.qml
+++ b/framework/qml/PositiveButton.qml
@@ -34,13 +34,13 @@ T.Button {
34 hoverEnabled: true 34 hoverEnabled: true
35 35
36 background: Rectangle { 36 background: Rectangle {
37 color: root.pressed ? Colors.highlightColor : Colors.positiveColor 37 color: Colors.positiveColor
38 38
39 Rectangle { 39 Rectangle {
40 anchors.fill: parent 40 anchors.fill: parent
41 visible: root.hovered 41 visible: root.hovered || root.pressed
42 color: Colors.viewBackgroundColor 42 color: root.pressed ? Colors.textColor : Colors.viewBackgroundColor
43 opacity: 0.1 43 opacity: 0.2
44 } 44 }
45 } 45 }
46 46