Skip to content

Commit 478e919

Browse files
committed
Merge pull request godotengine#102438 from Giganzo/tree-item-margin-low-spacing
Fix Tree `item_margin` for low spacing values in Editor Theme
2 parents d3967e9 + f791315 commit 478e919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/themes/editor_theme_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
966966
p_theme->set_constant("v_separation", "Tree", p_config.separation_margin);
967967
p_theme->set_constant("h_separation", "Tree", (p_config.increased_margin + 2) * EDSCALE);
968968
p_theme->set_constant("guide_width", "Tree", p_config.border_width);
969-
p_theme->set_constant("item_margin", "Tree", 3 * p_config.increased_margin * EDSCALE);
969+
p_theme->set_constant("item_margin", "Tree", MAX(3 * p_config.increased_margin * EDSCALE, 12 * EDSCALE));
970970
p_theme->set_constant("inner_item_margin_top", "Tree", p_config.separation_margin);
971971
p_theme->set_constant("inner_item_margin_bottom", "Tree", p_config.separation_margin);
972972
p_theme->set_constant("inner_item_margin_left", "Tree", p_config.increased_margin * EDSCALE);

0 commit comments

Comments
 (0)