Change fixed selection colors to style based palette. Issue #16454

GUI: Merged cherry-picked 6afc6c7757 to 1.0 branch
This commit is contained in:
Frank Martinez
2024-09-20 08:11:53 -05:00
committed by Chris Hennes
parent ae7fe1bc2e
commit 6d5c7ea855
+3 -1
View File
@@ -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);