mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
More stupid PyQt enums
This commit is contained in:
parent
867dafa244
commit
a098cbb38d
@ -479,7 +479,7 @@ class HTMLDisplay(QTextBrowser):
|
|||||||
if app.is_dark_theme:
|
if app.is_dark_theme:
|
||||||
pal = app.palette()
|
pal = app.palette()
|
||||||
col = pal.color(QPalette.ColorRole.Link)
|
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:
|
else:
|
||||||
self.default_css = ''
|
self.default_css = ''
|
||||||
self.document().setDefaultStyleSheet(self.default_css + self.external_css)
|
self.document().setDefaultStyleSheet(self.default_css + self.external_css)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user