mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More pyqt6 nonsense
This commit is contained in:
parent
a4b1c8286c
commit
79013ef7d7
@ -114,7 +114,7 @@ class TemplateHighlighter(QSyntaxHighlighter):
|
||||
config["%sfontbold" % name] = bold
|
||||
config["%sfontitalic" % name] = italic
|
||||
base_format = QTextCharFormat()
|
||||
base_format.setFontFamily(config["fontfamily"])
|
||||
base_format.setFontFamilies([config["fontfamily"]])
|
||||
config["fontsize"] = size
|
||||
base_format.setFontPointSize(config["fontsize"])
|
||||
|
||||
|
@ -880,7 +880,7 @@ class PythonHighlighter(QSyntaxHighlighter): # {{{
|
||||
@classmethod
|
||||
def initializeFormats(cls):
|
||||
baseFormat = QTextCharFormat()
|
||||
baseFormat.setFontFamily('monospace')
|
||||
baseFormat.setFontFamilies(['monospace'])
|
||||
p = QApplication.instance().palette()
|
||||
for name, color, bold, italic in (
|
||||
("normal", None, False, False),
|
||||
|
Loading…
x
Reference in New Issue
Block a user