From dcd924e34b4e8b1002b3426d64bff6d0d0aa14aa Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Mon, 16 Jan 2023 10:08:45 +0100 Subject: [PATCH] Add back check for Qt5 to prevent theme issues --- qt/aqt/theme.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/theme.py b/qt/aqt/theme.py index 86c519c08..492a01459 100644 --- a/qt/aqt/theme.py +++ b/qt/aqt/theme.py @@ -270,6 +270,7 @@ 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(