From c0c0ef9fe876152c3e894031d17b646bbfa10ad0 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Thu, 13 Aug 2020 22:34:20 -0400 Subject: [PATCH] Improve button hover effect for checked buttons --- src/gui/styles/base/basestyle.qss | 2 +- src/gui/styles/dark/darkstyle.qss | 2 +- src/gui/styles/light/lightstyle.qss | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/styles/base/basestyle.qss b/src/gui/styles/base/basestyle.qss index 5eea9f90c..012c7cd0e 100644 --- a/src/gui/styles/base/basestyle.qss +++ b/src/gui/styles/base/basestyle.qss @@ -8,7 +8,7 @@ QPushButton:!default:hover { background: palette(mid); } -PasswordGeneratorWidget QPushButton:checked { +QPushButton:checked { background: palette(highlight); color: palette(highlighted-text); } diff --git a/src/gui/styles/dark/darkstyle.qss b/src/gui/styles/dark/darkstyle.qss index 922de993c..a9aef28af 100644 --- a/src/gui/styles/dark/darkstyle.qss +++ b/src/gui/styles/dark/darkstyle.qss @@ -13,7 +13,7 @@ QPushButton:!default:hover { background: #252528; } -QPushButton:default:hover { +QPushButton:default:hover, QPushButton:checked:hover { /* Using slightly lighter shade from palette(highlight) */ background: #2E582E; } diff --git a/src/gui/styles/light/lightstyle.qss b/src/gui/styles/light/lightstyle.qss index bee8415d3..5a8fe64a2 100644 --- a/src/gui/styles/light/lightstyle.qss +++ b/src/gui/styles/light/lightstyle.qss @@ -8,7 +8,7 @@ EntryPreviewWidget QLineEdit:disabled, EntryPreviewWidget QTextEdit:disabled { background-color: #EDEDED; } -QPushButton:default:hover { +QPushButton:default:hover, QPushButton:checked:hover { /* Using slightly lighter shade from palette(highlight) */ background: #568821; }