diff --git a/src/Gui/Widgets.cpp b/src/Gui/Widgets.cpp index 97d80e89bb..e3b618a0c6 100644 --- a/src/Gui/Widgets.cpp +++ b/src/Gui/Widgets.cpp @@ -1356,10 +1356,9 @@ void PropertyListEditor::highlightCurrentLine() if (!isReadOnly()) { QTextEdit::ExtraSelection selection; - QColor lineColor = QColor(Qt::yellow).lighter(160); - selection.format.setBackground(lineColor); - QColor textColor = QColor(Qt::black); - selection.format.setForeground(textColor); + QPalette palette = style()->standardPalette(); + selection.format.setBackground(palette.highlight().color()); + selection.format.setForeground(palette.highlightedText().color()); selection.format.setProperty(QTextFormat::FullWidthSelection, true); selection.cursor = textCursor();