tweak background color settings

This commit is contained in:
Axel Kohlmeyer
2024-08-24 02:11:18 -04:00
parent c0770715dd
commit ec0cdb8bdc
2 changed files with 4 additions and 0 deletions

View File

@ -218,7 +218,10 @@ CodeEditor::CodeEditor(QWidget *parent) :
help_index.close();
}
setBackgroundRole(QPalette::Light);
lineNumberArea = new LineNumberArea(this);
lineNumberArea->setBackgroundRole(QPalette::Dark);
lineNumberArea->setAutoFillBackground(true);
connect(this, &CodeEditor::blockCountChanged, this, &CodeEditor::updateLineNumberAreaWidth);
connect(this, &CodeEditor::updateRequest, this, &CodeEditor::updateLineNumberArea);
updateLineNumberAreaWidth(0);