From 535ab60027e7de2317788b91f4050cd65602a513 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 7 Apr 2024 16:55:58 +0800 Subject: [PATCH] fix: In color theme, background of local var/global bar/function etc doesn't work. --- RedPandaIDE/editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 17191194..2884af30 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -1367,13 +1367,14 @@ void Editor::onPreparePaintHighlightToken(int line, int aChar, const QString &to if (item) { foreground = item->foreground(); - //background = item->background(); + background = item->background(); style.setFlag(QSynedit::FontStyle::fsBold,item->bold()); style.setFlag(QSynedit::FontStyle::fsItalic,item->italic()); style.setFlag(QSynedit::FontStyle::fsUnderline,item->underlined()); style.setFlag(QSynedit::FontStyle::fsStrikeOut,item->strikeout()); } else { foreground = syntaxer()->identifierAttribute()->foreground(); + background = syntaxer()->identifierAttribute()->background(); } if (line == mHoverModifiedLine) { QSynedit::BufferCoord p;