set a property that can be accessed from C++ for dark mode

This commit is contained in:
Kovid Goyal 2019-12-08 21:35:40 +05:30
parent c0655e782b
commit 1713740406
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1064,6 +1064,7 @@ class Application(QApplication):
if self.ignore_palette_changes: if self.ignore_palette_changes:
return return
self.is_dark_theme = is_dark_theme() self.is_dark_theme = is_dark_theme()
self.setProperty('is_dark_theme', self.is_dark_theme)
if isosx: if isosx:
self.fix_dark_theme_colors() self.fix_dark_theme_colors()
self.palette_changed.emit() self.palette_changed.emit()