From 8af4c1cc275e20bcc85b27ba7a9c8ab8fe701c30 Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Mon, 16 Jan 2023 11:29:29 +0100 Subject: [PATCH] Do not force scrollbar styles on macOS --- qt/aqt/theme.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qt/aqt/theme.py b/qt/aqt/theme.py index dd2ba2184..b29e150ce 100644 --- a/qt/aqt/theme.py +++ b/qt/aqt/theme.py @@ -253,12 +253,14 @@ class ThemeManager: custom_styles.tabwidget(self), custom_styles.table(self), custom_styles.spinbox(self), - custom_styles.scrollbar(self), custom_styles.slider(self), custom_styles.splitter(self), ] ) + if not is_mac: + buf += custom_styles.scrollbar(self) + # allow addons to modify the styling buf = gui_hooks.style_did_init(buf) @@ -270,7 +272,6 @@ class ThemeManager: if ( aqt.mw.pm.get_widget_style() == AnkiStyles.NATIVE and aqt.mw.pm.theme() == Theme.FOLLOW_SYSTEM - and qtmajor > 5 ): app.setStyle(QStyleFactory.create(self._default_style)) # type: ignore self.default_palette.setColor(