From e9278f111a97df279f26abed9c025fddda92f271 Mon Sep 17 00:00:00 2001 From: Jerakin Date: Mon, 11 Nov 2019 14:17:34 +0100 Subject: [PATCH] Set QScrollBar handle color on pressed to keep the hover color --- qtmodern/resources/style.qss | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qtmodern/resources/style.qss b/qtmodern/resources/style.qss index 1607a73..db4691a 100644 --- a/qtmodern/resources/style.qss +++ b/qtmodern/resources/style.qss @@ -62,7 +62,7 @@ QScrollBar::handle:vertical { margin: 2px 4px 2px 4px; } -QScrollBar::handle:vertical:hover { +QScrollBar::handle:vertical:hover, QScrollBar::handle:horizontal:hover, QScrollBar::handle:vertical:pressed, QScrollBar::handle:horizontal:pressed { background-color:palette(highlight); } @@ -93,9 +93,6 @@ QScrollBar::handle:horizontal { margin: 4px 2px 4px 2px; } -QScrollBar::handle:horizontal:hover { - background-color: palette(highlight); -} QScrollBar::add-line:horizontal { background: none;