From 7c347ff6c1ba931f9f341cb1450923a511d76c56 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Mon, 3 Aug 2026 16:07:43 +0200 Subject: [PATCH] fix(gui): remove TextEdit color property for syntax highlighting Qt5's TextEdit 'color' property can override inline styles from RichText, breaking syntax highlighting colors. Remove the property so inline color spans from KSyntaxHighlighting are respected. Default text color should come from the application palette. --- gui/main.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/main.qml b/gui/main.qml index 82442ea..0190c04 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -930,7 +930,8 @@ property bool blockExpanded: { wrapMode: TextEdit.Wrap font.family: theme.fontFamily || Qt.application.font.family font.pointSize: theme.fontSize > 0 ? theme.fontSize : 12 - color: theme.textColor + // Note: don't set 'color' here — it can override inline styles from + // syntax highlighting in Qt5. The HTML content should set colors. } } }