diff --git a/qt/aqt/theme.py b/qt/aqt/theme.py index 896eac4d4..1eb1812d7 100644 --- a/qt/aqt/theme.py +++ b/qt/aqt/theme.py @@ -124,6 +124,28 @@ QGroupBox { } """ + if not self.macos_dark_mode(): + buf += """ +QScrollBar { background-color: %s; } +QScrollBar::handle { background-color: %s; border-radius: 5px; } + +QScrollBar:horizontal { height: 12px; } +QScrollBar::handle:horizontal { min-width: 50px; } + +QScrollBar:vertical { width: 12px; } +QScrollBar::handle:vertical { min-height: 50px; } + +QScrollBar::add-line { + border: none; + background: none; +} + +QScrollBar::sub-line { + border: none; + background: none; +} +""" % (self.str_color("window-bg"), colors.get("fusion-button-hover-bg")) + # allow addons to modify the styling buf = gui_hooks.style_did_init(buf) diff --git a/qt/ts/scss/webview.scss b/qt/ts/scss/webview.scss index 474094b29..bd2d19d70 100644 --- a/qt/ts/scss/webview.scss +++ b/qt/ts/scss/webview.scss @@ -31,11 +31,11 @@ body.nightMode::-webkit-scrollbar { } body.nightMode::-webkit-scrollbar:horizontal { - height: 10px; + height: 12px; } body.nightMode::-webkit-scrollbar:vertical { - width: 10px; + width: 12px; } body.nightMode::-webkit-scrollbar-thumb { @@ -43,6 +43,14 @@ body.nightMode::-webkit-scrollbar-thumb { border-radius: 8px; } +body.nightMode::-webkit-scrollbar-thumb:horizontal { + min-width: 50px; +} + +body.nightMode::-webkit-scrollbar-thumb:vertical { + min-height: 50px; +} + .nightMode { a { color: vars.$night-link;