Add an outline to box selection rectangles for better visibility

This also refactors selection box color definitions
to avoid repetition.
This commit is contained in:
Hugo Locurcio
2019-08-15 22:17:08 +02:00
parent de8ce3e625
commit 108f9646f5
5 changed files with 33 additions and 15 deletions

View File

@ -351,6 +351,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
theme->set_color("dark_color_3", "Editor", dark_color_3);
theme->set_color("contrast_color_1", "Editor", contrast_color_1);
theme->set_color("contrast_color_2", "Editor", contrast_color_2);
theme->set_color("box_selection_fill_color", "Editor", accent_color * Color(1, 1, 1, 0.3));
theme->set_color("box_selection_stroke_color", "Editor", accent_color * Color(1, 1, 1, 0.8));
theme->set_color("font_color", "Editor", font_color);
theme->set_color("highlighted_font_color", "Editor", font_color_hl);