From 118e19263906c7ea5ee260ba19fc5ed7b3735b03 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Wed, 12 Nov 2025 10:21:58 +1100 Subject: [PATCH] Whoops, QColor --- bouquin/markdown_highlighter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bouquin/markdown_highlighter.py b/bouquin/markdown_highlighter.py index 6bbb664..36c6d04 100644 --- a/bouquin/markdown_highlighter.py +++ b/bouquin/markdown_highlighter.py @@ -69,7 +69,9 @@ class MarkdownHighlighter(QSyntaxHighlighter): else: # Light mode: keep the existing light gray 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.setForeground(fg)