summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-21 12:28:45 +0200
committerGitHub <noreply@github.com>2021-05-21 12:28:45 +0200
commitedd88949be15641f27eedddc0ea2bf02b9c3c3d9 (patch)
treee43acd15da4b1d298c3def6d181d5a0bfeee8064 /editor
parent31246a58e0a92c0d9b074de4bb2d83e0407ece68 (diff)
parent82570dec9032c2ab98da39072c1a964a2b74ca0e (diff)
Merge pull request #48747 from Calinou/editor-find-in-files-tweak-highlight-color
Tweak highlight color in the editor Find in Files dialog
Diffstat (limited to 'editor')
-rw-r--r--editor/find_in_files.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/find_in_files.cpp b/editor/find_in_files.cpp
index 322dfc13a9..d9b956ed08 100644
--- a/editor/find_in_files.cpp
+++ b/editor/find_in_files.cpp
@@ -763,8 +763,10 @@ void FindInFilesPanel::draw_result_text(Object *item_obj, Rect2 rect) {
match_rect.position.y += 1 * EDSCALE;
match_rect.size.y -= 2 * EDSCALE;
- _results_display->draw_rect(match_rect, Color(0, 0, 0, 0.5));
- // Text is drawn by Tree already
+ // Use the inverted accent color to help match rectangles stand out even on the currently selected line.
+ _results_display->draw_rect(match_rect, get_theme_color("accent_color", "Editor").inverted() * Color(1, 1, 1, 0.5));
+
+ // Text is drawn by Tree already.
}
void FindInFilesPanel::_on_item_edited() {