mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32: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,7 +282,8 @@ class ThemeManager:
|
||||||
app.setPalette(self.default_palette)
|
app.setPalette(self.default_palette)
|
||||||
return
|
return
|
||||||
|
|
||||||
app.setStyle(QStyleFactory.create("fusion")) # type: ignore
|
if not is_mac:
|
||||||
|
app.setStyle(QStyleFactory.create("fusion")) # type: ignore
|
||||||
|
|
||||||
palette = QPalette()
|
palette = QPalette()
|
||||||
text = self.qcolor(colors.FG)
|
text = self.qcolor(colors.FG)
|
||||||
|
|
Loading…
Reference in a new issue