summaryrefslogtreecommitdiffstats
path: root/editor/plugins/node_3d_editor_plugin.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-05-09 01:56:22 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-07-30 14:20:54 +0200
commite92297cc3d9e0b8cccbc390b3ac7316d76a683c4 (patch)
treebbb6a8cb27734b80f66c797de447090b7dc72078 /editor/plugins/node_3d_editor_plugin.cpp
parent6d5c1086c3cc5442b4b8f7c752c941a0ce3150c5 (diff)
downloadredot-engine-e92297cc3d9e0b8cccbc390b3ac7316d76a683c4.tar.gz
Make the focus outline translucent for editor viewports
This makes the focus outline less distracting on the 2D and 3D editor viewports.
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.cpp')
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp
index a278b5a37f..5eb549d58c 100644
--- a/editor/plugins/node_3d_editor_plugin.cpp
+++ b/editor/plugins/node_3d_editor_plugin.cpp
@@ -2871,7 +2871,7 @@ void Node3DEditorViewport::_draw() {
if (surface->has_focus()) {
Size2 size = surface->get_size();
Rect2 r = Rect2(Point2(), size);
- get_theme_stylebox(SNAME("Focus"), SNAME("EditorStyles"))->draw(surface->get_canvas_item(), r);
+ get_theme_stylebox(SNAME("FocusViewport"), SNAME("EditorStyles"))->draw(surface->get_canvas_item(), r);
}
if (cursor.region_select) {