浏览代码

Update default port_grab_distance_vertical

(cherry picked from commit 38ad72af44173fdc98e61664192b02ad63fe7324)
David Cambré 3 年之前
父节点
当前提交
dd9121040e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      doc/classes/GraphEdit.xml
  2. 1 1
      scene/resources/default_theme/default_theme.cpp

+ 1 - 1
doc/classes/GraphEdit.xml

@@ -283,7 +283,7 @@
 		<theme_item name="port_grab_distance_horizontal" data_type="constant" type="int" default="24">
 		<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).
 			The horizontal range within which a port can be grabbed (on both sides).
 		</theme_item>
 		</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).
 			The vertical range within which a port can be grabbed (on both sides).
 		</theme_item>
 		</theme_item>
 		<theme_item name="minimap" data_type="icon" type="Texture">
 		<theme_item name="minimap" data_type="icon" type="Texture">

+ 1 - 1
scene/resources/default_theme/default_theme.cpp

@@ -903,7 +903,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
 	// Visual Node Ports
 	// Visual Node Ports
 
 
 	theme->set_constant("port_grab_distance_horizontal", "GraphEdit", 24 * scale);
 	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));
 	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);
 	Ref<StyleBoxFlat> style_minimap_camera = make_flat_stylebox(Color(0.65, 0.65, 0.65, 0.2), 0, 0, 0, 0);