2
0
Fork 0

Tweak highlight color in the editor Find in Files dialog

The new color is more visible against dark backgrounds.
4.0
Hugo Locurcio 2021-05-16 00:29:56 +07:00
parent 9b637faf65
commit 82570dec90
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
1 changed files with 4 additions and 2 deletions

@ -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() {