From af8c0c6811c0bba688b33953b848f2df6202eb99 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 8 May 2019 13:26:10 -0400 Subject: [PATCH] HButton: reduce hover/press overlay opacity --- harmonyqml/components/Base/HButton.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/harmonyqml/components/Base/HButton.qml b/harmonyqml/components/Base/HButton.qml index b3aadced..7fc5daf8 100644 --- a/harmonyqml/components/Base/HButton.qml +++ b/harmonyqml/components/Base/HButton.qml @@ -106,7 +106,7 @@ Button { onClicked: button.clicked() onDoubleClicked: button.doubleClicked() onEntered: { - overlayOpacity = checked ? 0 : 0.3 + overlayOpacity = checked ? 0 : 0.2 button.entered() } onExited: { @@ -115,12 +115,12 @@ Button { } onPressAndHold: button.pressAndHold() onPressed: { - overlayOpacity += 0.3 + overlayOpacity += 0.2 button.pressed() } onReleased: { if (checkable) { checked = ! checked } - overlayOpacity = checked ? 0 : 0.3 + overlayOpacity = checked ? 0 : 0.2 button.released() } }