From abb3ed57b0249bf46f71a6b230a265284fff2a0d Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Tue, 11 Apr 2017 12:35:33 +0200 Subject: make hover effect stronger and darken button background instead of making it blue on clicked --- framework/qml/Button.qml | 8 ++++---- framework/qml/PositiveButton.qml | 8 ++++---- 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 { hoverEnabled: true background: Rectangle { - color: root.pressed ? Colors.highlightColor : Colors.buttonColor + color: Colors.buttonColor Rectangle { anchors.fill: parent - visible: root.hovered - color: Colors.viewBackgroundColor - opacity: 0.1 + visible: root.hovered || root.pressed + color: root.pressed ? Colors.textColor : Colors.viewBackgroundColor + opacity: 0.2 } } 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 { hoverEnabled: true background: Rectangle { - color: root.pressed ? Colors.highlightColor : Colors.positiveColor + color: Colors.positiveColor Rectangle { anchors.fill: parent - visible: root.hovered - color: Colors.viewBackgroundColor - opacity: 0.1 + visible: root.hovered || root.pressed + color: root.pressed ? Colors.textColor : Colors.viewBackgroundColor + opacity: 0.2 } } -- cgit v1.2.3