line number area attempts to be dark mode compatible

This commit is contained in:
Axel Kohlmeyer
2024-08-24 02:56:47 -04:00
parent ec0cdb8bdc
commit 72873b0dca
2 changed files with 4 additions and 1 deletions

View File

@ -672,7 +672,7 @@ void CodeEditor::lineNumberAreaPaintEvent(QPaintEvent *event)
if (block.isVisible() && bottom >= event->rect().top()) {
QString number = QString::number(blockNumber + 1) + " ";
if ((highlight == NO_HIGHLIGHT) || (blockNumber != std::abs(highlight))) {
painter.setPen(Qt::black);
painter.setPen(palette().color(QPalette::WindowText));
} else {
number = QString(">") + QString::number(blockNumber + 1) + "<";
if (highlight < 0)