aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/fontsettingspage.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-08-26 07:55:24 +0200
committerDavid Schulz <david.schulz@qt.io>2022-09-06 08:13:29 +0000
commit77b5613cd9da64b92a94e75a87b18c8faba77042 (patch)
tree74fdc2cf830f0854a9587490a34255fbd38b73c9 /src/plugins/texteditor/fontsettingspage.cpp
parent6955841afd1524714f319848cdfb88eaa87150ec (diff)
Editor: do not hardcode default colors for function search result
Using white and black as the defaults results in unpleasant colors in a dark color scheme. Instead rely on the fallback to the colors of C_TEXT that are used in the SearchResultColor constructor. Change-Id: I110aadbae9f07f59fefac07c7ef8fa2af2f3b596 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/texteditor/fontsettingspage.cpp')
-rw-r--r--src/plugins/texteditor/fontsettingspage.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/texteditor/fontsettingspage.cpp b/src/plugins/texteditor/fontsettingspage.cpp
index 7f863ebb18..1b356b9906 100644
--- a/src/plugins/texteditor/fontsettingspage.cpp
+++ b/src/plugins/texteditor/fontsettingspage.cpp
@@ -350,8 +350,6 @@ QColor FormatDescription::defaultForeground(TextStyle id)
return QColor(0x00, 0x00, 0x33);
} else if (id == C_SEARCH_RESULT_ALT2) {
return QColor(0x33, 0x00, 0x00);
- } else if (id == C_SEARCH_RESULT_CONTAINING_FUNCTION) {
- return Qt::black;
}
return QColor();
}
@@ -368,8 +366,6 @@ QColor FormatDescription::defaultBackground(TextStyle id)
return QColor(0xb6, 0xcc, 0xff);
} else if (id == C_SEARCH_RESULT_ALT2) {
return QColor(0xff, 0xb6, 0xcc);
- } else if (id == C_SEARCH_RESULT_CONTAINING_FUNCTION) {
- return Qt::white;
} else if (id == C_PARENTHESES) {
return QColor(0xb4, 0xee, 0xb4);
} else if (id == C_PARENTHESES_MISMATCH) {