From 2be23128b15a3dc4e0ddf1a527d8e99f832f5118 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 24 Jul 2019 16:44:35 -0400 Subject: [PATCH] Fix button hover overlay colors --- TODO.md | 1 + src/qml/Base/HBaseButton.qml | 2 +- src/themes/Default.qpl | 7 ++++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index f2059d1c..fdc09830 100644 --- a/TODO.md +++ b/TODO.md @@ -26,6 +26,7 @@ - [hr not working](https://bugreports.qt.io/browse/QTBUG-74342) - UI + - Make invite/left banners look better in column mode - Messages editing - Code highlighting - Support GIF avatars diff --git a/src/qml/Base/HBaseButton.qml b/src/qml/Base/HBaseButton.qml index 7eb4f172..46c4cf5a 100644 --- a/src/qml/Base/HBaseButton.qml +++ b/src/qml/Base/HBaseButton.qml @@ -39,7 +39,7 @@ Button { id: buttonBackgroundOverlay anchors.fill: parent radius: parent.radius - color: "black" + color: theme.controls.button.hoveredOverlay opacity: 0 Behavior on opacity { HNumberAnimation { factor: 0.5 } } diff --git a/src/themes/Default.qpl b/src/themes/Default.qpl index 091d7fba..1c79a975 100644 --- a/src/themes/Default.qpl +++ b/src/themes/Default.qpl @@ -77,9 +77,10 @@ controls: color background: colors.strongBackground button: - color background: colors.inputBackground - color text: colors.text - color disabledText: colors.dimmerText + color background: colors.inputBackground + color hoveredOverlay: hsluv(0, 0, 100) + color text: colors.text + color disabledText: colors.dimmerText interactiveRectangle: color background: "transparent"