From ac783946d00c07c81053668937352a03faf705a1 Mon Sep 17 00:00:00 2001 From: SuslikV Date: Mon, 17 Sep 2018 14:29:29 +0200 Subject: [PATCH] UI: Fix scrollbar handle alignment for Dark theme Fixes an issue when it was hard to drag by mouse the scroll handle in Dark theme if scroll handle size is close to full size (https://obsproject.com/mantis/view.php?id=466) or close to minimal size. Also, the mouse pointer was misaligned to the scroll handle when moving: the scroll handle always moves faster than mouse pointer itself and finishes first. --- UI/data/themes/Dark.qss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/data/themes/Dark.qss b/UI/data/themes/Dark.qss index 2d0e8a48a..7014ff340 100644 --- a/UI/data/themes/Dark.qss +++ b/UI/data/themes/Dark.qss @@ -150,6 +150,7 @@ QGroupBox { QScrollBar:vertical { background-color: rgb(58,57,58); /* dark */ width: 14px; + margin: 0px; } QScrollBar::handle:vertical { @@ -178,6 +179,7 @@ QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical, QScrollBar::add- QScrollBar:horizontal { background-color: rgb(58,57,58); /* dark */ height: 14px; + margin: 0px; } QScrollBar::handle:horizontal { -- GitLab