Change fixed selection colors to style based palette. Issue #16454
GUI: Merged cherry-picked 6afc6c7757 to 1.0 branch
This commit is contained in:
+3
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user