summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_edit.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-03-29 14:19:44 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-03-31 23:54:46 +0200
commitd59b210aeccf5de8454a37ef5da5e9f631302f25 (patch)
tree95d355a46759ad0d62fc0dbe25dc148307dba3b9 /scene/gui/graph_edit.cpp
parent472c8a7ba1c7090679b6cc2da1abf02f621848e4 (diff)
downloadredot-engine-d59b210aeccf5de8454a37ef5da5e9f631302f25.tar.gz
Use the editor theme's accent color for 2D/3D selections and rotations
Diffstat (limited to 'scene/gui/graph_edit.cpp')
-rw-r--r--scene/gui/graph_edit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp
index 68e734502b..30ad81bb2e 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -770,7 +770,9 @@ void GraphEdit::_top_layer_draw() {
}
if (box_selecting)
- top_layer->draw_rect(box_selecting_rect, Color(0.7, 0.7, 1.0, 0.3));
+ top_layer->draw_rect(
+ box_selecting_rect,
+ get_color("accent_color", "Editor") * Color(1, 1, 1, 0.375));
}
void GraphEdit::set_selected(Node *p_child) {