Whoops, QColor
This commit is contained in:
parent
8d5f8b6951
commit
118e192639
1 changed files with 3 additions and 1 deletions
|
|
@ -69,7 +69,9 @@ class MarkdownHighlighter(QSyntaxHighlighter):
|
||||||
else:
|
else:
|
||||||
# Light mode: keep the existing light gray
|
# Light mode: keep the existing light gray
|
||||||
bg = QColor(245, 245, 245)
|
bg = QColor(245, 245, 245)
|
||||||
fg = pal.color(0, 0, 0) # avoiding using QPalette.Text as it can be white on macOS
|
fg = QColor(
|
||||||
|
0, 0, 0
|
||||||
|
) # avoiding using QPalette.Text as it can be white on macOS
|
||||||
self.code_block_format.setBackground(bg)
|
self.code_block_format.setBackground(bg)
|
||||||
self.code_block_format.setForeground(fg)
|
self.code_block_format.setForeground(fg)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue