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.
This commit is contained in:
SuslikV 2018-09-17 14:29:29 +02:00 committed by GitHub
parent 31561b3231
commit ac783946d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {