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

@@ -776,10 +776,16 @@ void GraphEdit::_top_layer_draw() {
_draw_cos_line(top_layer, pos, topos, col, col);
}
if (box_selecting)
if (box_selecting) {
top_layer->draw_rect(
box_selecting_rect,
get_color("accent_color", "Editor") * Color(1, 1, 1, 0.375));
get_color("box_selection_fill_color", "Editor"));
top_layer->draw_rect(
box_selecting_rect,
get_color("box_selection_stroke_color", "Editor"),
false);
}
}
void GraphEdit::set_selected(Node *p_child) {