From 82570dec9032c2ab98da39072c1a964a2b74ca0e Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 16 May 2021 00:29:56 +0200 Subject: Tweak highlight color in the editor Find in Files dialog The new color is more visible against dark backgrounds. --- editor/find_in_files.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'editor') diff --git a/editor/find_in_files.cpp b/editor/find_in_files.cpp index 47079a92b7..baaa5d21bf 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() { -- cgit v1.2.3