fix: In color theme, background of local var/global bar/function etc doesn't work.

This commit is contained in:
Roy Qu 2024-04-07 16:55:58 +08:00
parent e98fb56f8d
commit 535ab60027
1 changed files with 2 additions and 1 deletions

View File

@ -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;