summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cambré <david.cambre@gmail.com>2021-12-29 18:53:11 +0100
committerDavid Cambré <david.cambre@gmail.com>2021-12-29 19:14:28 +0100
commit38ad72af44173fdc98e61664192b02ad63fe7324 (patch)
treedacb256a0dee2c3a514efe9d2484cf8e615f0ee0
parent9f058674acebf9a7a0704cdbc26dc9f6d853b16e (diff)
Update default port_grab_distance_vertical
-rw-r--r--doc/classes/GraphEdit.xml2
-rw-r--r--scene/resources/default_theme/default_theme.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/GraphEdit.xml b/doc/classes/GraphEdit.xml
index c432410d3b..9650118e7e 100644
--- a/doc/classes/GraphEdit.xml
+++ b/doc/classes/GraphEdit.xml
@@ -346,7 +346,7 @@
<theme_item name="port_grab_distance_horizontal" data_type="constant" type="int" default="24">
The horizontal range within which a port can be grabbed (on both sides).
</theme_item>
- <theme_item name="port_grab_distance_vertical" data_type="constant" type="int" default="6">
+ <theme_item name="port_grab_distance_vertical" data_type="constant" type="int" default="26">
The vertical range within which a port can be grabbed (on both sides).
</theme_item>
<theme_item name="layout" data_type="icon" type="Texture2D">
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index a1d76ef352..bb06e7b667 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -994,7 +994,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
// Visual Node Ports
theme->set_constant("port_grab_distance_horizontal", "GraphEdit", 24 * scale);
- theme->set_constant("port_grab_distance_vertical", "GraphEdit", 6 * scale);
+ theme->set_constant("port_grab_distance_vertical", "GraphEdit", 26 * scale);
theme->set_stylebox("bg", "GraphEditMinimap", make_flat_stylebox(Color(0.24, 0.24, 0.24), 0, 0, 0, 0));
Ref<StyleBoxFlat> style_minimap_camera = make_flat_stylebox(Color(0.65, 0.65, 0.65, 0.2), 0, 0, 0, 0);