Better port handling connection for GraphEdit

(cherry picked from commit 61904d56ea)
This commit is contained in:
Yuri Roubinsky 2021-08-11 17:43:05 +03:00 committed by Rémi Verschelde
parent 4e68f089e0
commit b36b81cbdd
No known key found for this signature in database
GPG key ID: C3336907360768E1
4 changed files with 36 additions and 14 deletions

View file

@ -888,7 +888,8 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_constant("bezier_len_neg", "GraphEdit", 160 * scale);
// Visual Node Ports
theme->set_constant("port_grab_distance_horizontal", "GraphEdit", 48 * scale);
theme->set_constant("port_grab_distance_horizontal", "GraphEdit", 24 * scale);
theme->set_constant("port_grab_distance_vertical", "GraphEdit", 6 * scale);
theme->set_stylebox("bg", "GraphEditMinimap", make_flat_stylebox(Color(0.24, 0.24, 0.24), 0, 0, 0, 0));