diff --git a/src/osltoy/codeeditor.cpp b/src/osltoy/codeeditor.cpp index d70ccc810..c831258b5 100644 --- a/src/osltoy/codeeditor.cpp +++ b/src/osltoy/codeeditor.cpp @@ -177,8 +177,10 @@ CodeEditor::highlightCurrentLine() QTextEdit::ExtraSelection selection; QColor lineColor = QColor(Qt::yellow).lighter(160); + QColor textColor = QColor(Qt::black); selection.format.setBackground(lineColor); + selection.format.setForeground(textColor); selection.format.setProperty(QTextFormat::FullWidthSelection, true); selection.cursor = textCursor(); selection.cursor.clearSelection();