mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
Add back check for Qt5 to prevent theme issues
This commit is contained in:
parent
fd06714928
commit
dcd924e34b
1 changed files with 1 additions and 0 deletions
|
@ -270,6 +270,7 @@ class ThemeManager:
|
||||||
if (
|
if (
|
||||||
aqt.mw.pm.get_widget_style() == AnkiStyles.NATIVE
|
aqt.mw.pm.get_widget_style() == AnkiStyles.NATIVE
|
||||||
and aqt.mw.pm.theme() == Theme.FOLLOW_SYSTEM
|
and aqt.mw.pm.theme() == Theme.FOLLOW_SYSTEM
|
||||||
|
and qtmajor > 5
|
||||||
):
|
):
|
||||||
app.setStyle(QStyleFactory.create(self._default_style)) # type: ignore
|
app.setStyle(QStyleFactory.create(self._default_style)) # type: ignore
|
||||||
self.default_palette.setColor(
|
self.default_palette.setColor(
|
||||||
|
|
Loading…
Reference in a new issue