forked from qt-creator/qt-creator
Core: Allow different highlight colors in search result window
... and make use of that in CppTool's "Find Usages" by assigning different colors to read and write accesses. Fixes: QTCREATORBUG-12734 Change-Id: I067db2c8d693bb2c5be44249931ee4f0269f7e52 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -340,9 +340,9 @@ QColor FormatDescription::defaultBackground(TextStyle id)
|
||||
return col;
|
||||
} else if (id == C_SELECTION) {
|
||||
return Utils::Theme::initialPalette().color(QPalette::Highlight);
|
||||
} else if (id == C_OCCURRENCES) {
|
||||
} else if (id == C_OCCURRENCES || id == C_SEARCH_RESULT_ALT1) {
|
||||
return QColor(180, 180, 180);
|
||||
} else if (id == C_OCCURRENCES_RENAME) {
|
||||
} else if (id == C_OCCURRENCES_RENAME || id == C_SEARCH_RESULT_ALT2) {
|
||||
return QColor(255, 100, 100);
|
||||
} else if (id == C_DISABLED_CODE) {
|
||||
return QColor(239, 239, 239);
|
||||
|
||||
Reference in New Issue
Block a user