aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/fontsettingspage.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2020-11-16 19:12:26 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2020-11-17 12:54:26 +0000
commitbf852d8fede40c23e2b6bb780115342e0f7a9765 (patch)
tree4cff605e835a097b4e76dbfddf1614577d537524 /src/plugins/texteditor/fontsettingspage.cpp
parent96ed848bf490d6a4ef70243117f24dbc397e5ed5 (diff)
TextEditor: Better default background colors for C_SEARCH_RESULT_ALT1|2
C_SEARCH_RESULT_ALT1: Give it a bluish tint. C_SEARCH_RESULT_ALT2: Black on red is quite sneaky on many people's eyes. This changes the red background to a brighter and less saturated red. Change-Id: Id1000119583bf05d47206d877a791ccc42323753 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/texteditor/fontsettingspage.cpp')
-rw-r--r--src/plugins/texteditor/fontsettingspage.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/texteditor/fontsettingspage.cpp b/src/plugins/texteditor/fontsettingspage.cpp
index 0e35cade04..d2b3dd3ae4 100644
--- a/src/plugins/texteditor/fontsettingspage.cpp
+++ b/src/plugins/texteditor/fontsettingspage.cpp
@@ -311,6 +311,10 @@ QColor FormatDescription::defaultBackground(TextStyle id)
return Utils::Theme::initialPalette().window().color();
} else if (id == C_SEARCH_RESULT) {
return QColor(0xffef0b);
+ } else if (id == C_SEARCH_RESULT_ALT1) {
+ return QColor(0xb6, 0xcc, 0xff);
+ } else if (id == C_SEARCH_RESULT_ALT2) {
+ return QColor(0xff, 0xb6, 0xcc);
} else if (id == C_PARENTHESES) {
return QColor(0xb4, 0xee, 0xb4);
} else if (id == C_PARENTHESES_MISMATCH) {
@@ -340,9 +344,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 || id == C_SEARCH_RESULT_ALT1) {
+ } else if (id == C_OCCURRENCES) {
return QColor(180, 180, 180);
- } else if (id == C_OCCURRENCES_RENAME || id == C_SEARCH_RESULT_ALT2) {
+ } else if (id == C_OCCURRENCES_RENAME) {
return QColor(255, 100, 100);
} else if (id == C_DISABLED_CODE) {
return QColor(239, 239, 239);