You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Improve the VisualShader/VisualScript editor UI
This commit is contained in:
@@ -686,6 +686,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
graphnode_breakpoint->set_border_color(Color(0.9, 0.29, 0.3));
|
||||
Ref<StyleBoxFlat> graphnode_position = make_flat_stylebox(style_pressed_color, 18, 42, 18, 12, 6, true, 4);
|
||||
graphnode_position->set_border_color(Color(0.98, 0.89, 0.27));
|
||||
Ref<StyleBoxEmpty> graphnode_slot = make_empty_stylebox(0, 0, 0, 0);
|
||||
|
||||
theme->set_stylebox("frame", "GraphNode", graphnode_normal);
|
||||
theme->set_stylebox("selected_frame", "GraphNode", graphnode_selected);
|
||||
@@ -693,6 +694,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
theme->set_stylebox("comment_focus", "GraphNode", graphnode_comment_selected);
|
||||
theme->set_stylebox("breakpoint", "GraphNode", graphnode_breakpoint);
|
||||
theme->set_stylebox("position", "GraphNode", graphnode_position);
|
||||
theme->set_stylebox("slot", "GraphNode", graphnode_slot);
|
||||
|
||||
theme->set_icon("port", "GraphNode", icons["graph_port"]);
|
||||
theme->set_icon("close", "GraphNode", icons["close"]);
|
||||
@@ -704,6 +706,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
theme->set_constant("separation", "GraphNode", 2 * scale);
|
||||
theme->set_constant("title_offset", "GraphNode", 26 * scale);
|
||||
theme->set_constant("close_offset", "GraphNode", 22 * scale);
|
||||
theme->set_constant("close_h_offset", "GraphNode", 22 * scale);
|
||||
theme->set_constant("port_offset", "GraphNode", 0);
|
||||
|
||||
// Tree
|
||||
|
||||
Reference in New Issue
Block a user