More stupid PyQt enums

This commit is contained in:
Kovid Goyal 2020-12-20 12:43:51 +05:30
parent 867dafa244
commit a098cbb38d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -479,7 +479,7 @@ class HTMLDisplay(QTextBrowser):
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)