mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
set a property that can be accessed from C++ for dark mode
This commit is contained in:
parent
c0655e782b
commit
1713740406
@ -1064,6 +1064,7 @@ class Application(QApplication):
|
||||
if self.ignore_palette_changes:
|
||||
return
|
||||
self.is_dark_theme = is_dark_theme()
|
||||
self.setProperty('is_dark_theme', self.is_dark_theme)
|
||||
if isosx:
|
||||
self.fix_dark_theme_colors()
|
||||
self.palette_changed.emit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user