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