From 77b5613cd9da64b92a94e75a87b18c8faba77042 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 26 Aug 2022 07:55:24 +0200 Subject: 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 --- src/plugins/texteditor/fontsettingspage.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/plugins/texteditor/fontsettingspage.cpp') diff --git a/src/plugins/texteditor/fontsettingspage.cpp b/src/plugins/texteditor/fontsettingspage.cpp index 7f863ebb18b..1b356b99066 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) { -- cgit v1.2.3