From 54172670d3e7b904e81981740343b65f80d24f3b Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Mon, 16 Jan 2023 10:47:13 +0100 Subject: [PATCH] Add check for macOS before setting fusion theme --- qt/aqt/theme.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/aqt/theme.py b/qt/aqt/theme.py index 492a01459..dd2ba2184 100644 --- a/qt/aqt/theme.py +++ b/qt/aqt/theme.py @@ -282,7 +282,8 @@ class ThemeManager: app.setPalette(self.default_palette) return - app.setStyle(QStyleFactory.create("fusion")) # type: ignore + if not is_mac: + app.setStyle(QStyleFactory.create("fusion")) # type: ignore palette = QPalette() text = self.qcolor(colors.FG)