forked from qt-creator/qt-creator
TextEditor: Define default foreground colors for C_SEARCH_RESULT_ALT1|2
Since the background colors were defined, also the foreground colors need to be defined to make sure that both light and dark schemes which do not define C_SEARCH_RESULT_ALT1|2 have a legible contrast. Change-Id: Ic954852bdc66d3534f664658b914af1a30795a7d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -299,6 +299,10 @@ QColor FormatDescription::defaultForeground(TextStyle id)
|
||||
return QColor(Qt::red);
|
||||
} else if (id == C_AUTOCOMPLETE) {
|
||||
return QColor(Qt::darkBlue);
|
||||
} else if (id == C_SEARCH_RESULT_ALT1) {
|
||||
return QColor(0x00, 0x00, 0x33);
|
||||
} else if (id == C_SEARCH_RESULT_ALT2) {
|
||||
return QColor(0x33, 0x00, 0x00);
|
||||
}
|
||||
return QColor();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user