mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 01:46:14 +01:00
More stupid PyQt enums
This commit is contained in:
parent
867dafa244
commit
a098cbb38d
1 changed files with 1 additions and 1 deletions
|
|
@ -479,7 +479,7 @@ def palette_changed(self):
|
|||
if app.is_dark_theme:
|
||||
pal = app.palette()
|
||||
col = pal.color(QPalette.ColorRole.Link)
|
||||
self.default_css = 'a { color: %s }\n\n' % col.name(col.HexRgb)
|
||||
self.default_css = 'a { color: %s }\n\n' % col.name(QColor.NameFormat.HexRgb)
|
||||
else:
|
||||
self.default_css = ''
|
||||
self.document().setDefaultStyleSheet(self.default_css + self.external_css)
|
||||
|
|
|
|||
Loading…
Reference in a new issue