mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
Add check for macOS before setting fusion theme
This commit is contained in:
parent
dcd924e34b
commit
54172670d3
1 changed files with 2 additions and 1 deletions
|
@ -282,6 +282,7 @@ class ThemeManager:
|
||||||
app.setPalette(self.default_palette)
|
app.setPalette(self.default_palette)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not is_mac:
|
||||||
app.setStyle(QStyleFactory.create("fusion")) # type: ignore
|
app.setStyle(QStyleFactory.create("fusion")) # type: ignore
|
||||||
|
|
||||||
palette = QPalette()
|
palette = QPalette()
|
||||||
|
|
Loading…
Reference in a new issue