From f791315b281b990966af7b6b66a61b559e34a2f1 Mon Sep 17 00:00:00 2001 From: Giganzo <158825920+Giganzo@users.noreply.github.com> Date: Tue, 4 Feb 2025 03:32:46 +0100 Subject: [PATCH] Fix Tree item_margin for low spacing values in Editor Theme --- editor/themes/editor_theme_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/themes/editor_theme_manager.cpp b/editor/themes/editor_theme_manager.cpp index fb7dab8d76e..4099874e80c 100644 --- a/editor/themes/editor_theme_manager.cpp +++ b/editor/themes/editor_theme_manager.cpp @@ -966,7 +966,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref &p_the p_theme->set_constant("v_separation", "Tree", p_config.separation_margin); p_theme->set_constant("h_separation", "Tree", (p_config.increased_margin + 2) * EDSCALE); p_theme->set_constant("guide_width", "Tree", p_config.border_width); - p_theme->set_constant("item_margin", "Tree", 3 * p_config.increased_margin * EDSCALE); + p_theme->set_constant("item_margin", "Tree", MAX(3 * p_config.increased_margin * EDSCALE, 12 * EDSCALE)); p_theme->set_constant("inner_item_margin_top", "Tree", p_config.separation_margin); p_theme->set_constant("inner_item_margin_bottom", "Tree", p_config.separation_margin); p_theme->set_constant("inner_item_margin_left", "Tree", p_config.increased_margin * EDSCALE);