From 4376bc1e3979a6cfb7a3a431207a4ca6694ad501 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 10 Sep 2020 14:33:14 +0200 Subject: [PATCH] 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 --- share/qtcreator/styles/creator-dark.xml | 2 ++ share/qtcreator/styles/dark.xml | 2 ++ share/qtcreator/styles/default_classic.xml | 2 ++ share/qtcreator/styles/inkpot.xml | 2 ++ .../styles/modnokai_night_shift_v2.xml | 2 ++ share/qtcreator/styles/solarized-dark.xml | 2 ++ share/qtcreator/styles/solarized-light.xml | 2 ++ .../coreplugin/find/searchresultcolor.h | 29 ++++++++++++++-- .../coreplugin/find/searchresultitem.h | 3 ++ .../coreplugin/find/searchresulttreemodel.cpp | 12 +++---- .../coreplugin/find/searchresulttreemodel.h | 4 +-- .../coreplugin/find/searchresulttreeview.cpp | 6 ++-- .../coreplugin/find/searchresulttreeview.h | 5 +-- .../coreplugin/find/searchresultwidget.cpp | 8 +++-- .../coreplugin/find/searchresultwidget.h | 8 ++--- .../coreplugin/find/searchresultwindow.cpp | 34 ++++++------------- .../coreplugin/find/searchresultwindow.h | 13 ++++--- src/plugins/cpptools/cppfindreferences.cpp | 22 ++++++++---- src/plugins/texteditor/fontsettings.cpp | 2 ++ src/plugins/texteditor/fontsettingspage.cpp | 4 +-- .../texteditor/texteditorconstants.cpp | 2 ++ src/plugins/texteditor/texteditorconstants.h | 2 ++ src/plugins/texteditor/texteditorplugin.cpp | 17 +++++++--- src/plugins/texteditor/texteditorsettings.cpp | 8 +++++ 24 files changed, 128 insertions(+), 65 deletions(-) diff --git a/share/qtcreator/styles/creator-dark.xml b/share/qtcreator/styles/creator-dark.xml index d5bd74a7fb9..45c372494ef 100644 --- a/share/qtcreator/styles/creator-dark.xml +++ b/share/qtcreator/styles/creator-dark.xml @@ -5,6 +5,8 @@