1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Make GraphEdit toolbar more customizable

Also adds a semi-transparent background
to make the toolbar stand out in front of nodes.
This commit is contained in:
Yuri Sizov
2023-10-02 13:43:08 +02:00
parent 5e19247c72
commit b07c664af9
14 changed files with 284 additions and 88 deletions

View File

@@ -1960,6 +1960,9 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
// GraphEdit
theme->set_stylebox("panel", "GraphEdit", style_tree_bg);
Ref<StyleBoxFlat> graph_toolbar_style = make_flat_stylebox(dark_color_1 * Color(1, 1, 1, 0.6), 4, 2, 4, 2, 3);
theme->set_stylebox("menu_panel", "GraphEdit", graph_toolbar_style);
if (dark_theme) {
theme->set_color("grid_major", "GraphEdit", Color(1.0, 1.0, 1.0, 0.1));
theme->set_color("grid_minor", "GraphEdit", Color(1.0, 1.0, 1.0, 0.05));