summaryrefslogtreecommitdiff
path: root/scene/gui/graph_edit.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-08-15 22:17:08 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-08-15 22:27:32 +0200
commit108f9646f544076708f1b7418960193950cb6208 (patch)
tree0affe3ad6d1541d4307edbe380b8ed21ceb169cf /scene/gui/graph_edit.cpp
parentde8ce3e625e74833aec6a5d165e7e82100a1dbf3 (diff)
Add an outline to box selection rectangles for better visibility
This also refactors selection box color definitions to avoid repetition.
Diffstat (limited to 'scene/gui/graph_edit.cpp')
-rw-r--r--scene/gui/graph_edit.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp
index 38005f1322..fdffb26cb5 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -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) {