summaryrefslogtreecommitdiffstats
path: root/scene/resources/default_theme/default_theme.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-07-24 18:02:10 -0300
committerGitHub <noreply@github.com>2018-07-24 18:02:10 -0300
commit2e67fc57e6df5151506665108240d10ca366e56c (patch)
tree5c995b5742c0e87b80204475a3ce01fb720d3626 /scene/resources/default_theme/default_theme.cpp
parent62f2a8aadb28572f6d6a1fd382312e788fada3bc (diff)
parent85670726fdf840da22d3ab1fe55de4162e9289df (diff)
downloadredot-engine-2e67fc57e6df5151506665108240d10ca366e56c.tar.gz
Merge pull request #18867 from fire/better_vx_us_rebase_02
Improve VisualScript UX
Diffstat (limited to 'scene/resources/default_theme/default_theme.cpp')
-rw-r--r--scene/resources/default_theme/default_theme.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index fe12e2f5f6..601f6fb558 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -883,6 +883,10 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_icon("logo", "Icons", make_icon(logo_png));
+ // Visual Node Ports
+ theme->set_constant("port_grab_distance_horizontal", "GraphEdit", 48 * scale);
+ theme->set_constant("port_grab_distance_vertical", "GraphEdit", 6 * scale);
+
// Theme
default_icon = make_icon(error_icon_png);