From 8d5f8b69519d8f0515bf6e45b0e6a8f7d51c7a98 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Wed, 12 Nov 2025 10:21:12 +1100 Subject: [PATCH] One more fix for code blocks in dark system mode on macOS --- bouquin/markdown_highlighter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bouquin/markdown_highlighter.py b/bouquin/markdown_highlighter.py index 34c8324..6bbb664 100644 --- a/bouquin/markdown_highlighter.py +++ b/bouquin/markdown_highlighter.py @@ -69,7 +69,7 @@ class MarkdownHighlighter(QSyntaxHighlighter): else: # Light mode: keep the existing light gray bg = QColor(245, 245, 245) - fg = pal.color(QPalette.Text) + fg = pal.color(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)