diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-05-16 00:29:56 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-05-16 00:30:06 +0200 |
commit | 82570dec9032c2ab98da39072c1a964a2b74ca0e (patch) | |
tree | 14bc2d1fb14313a5713cb7cc51d4175a3bd3d27c /editor | |
parent | 9b637faf654d9e9c715f669e1101b40c9d1479a7 (diff) |
Tweak highlight color in the editor Find in Files dialog
The new color is more visible against dark backgrounds.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/find_in_files.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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() { |