Increase tree vertical separation at higher base spacing values

pull/39/head
passivestar 2025-07-27 15:16:09 +07:00
parent b2b8af2a29
commit 5d72fb3386
1 changed files with 3 additions and 1 deletions

@ -815,7 +815,9 @@ func _init() -> void:
set_constant('inner_item_margin_right', 'Tree', int(base_margin * scale))
set_constant('parent_hl_line_width', 'Tree', int(ceilf(scale)))
set_constant('relationship_line_width', 'Tree', 0)
set_constant('v_separation', 'Tree', int(base_margin * 0.25 * scale))
var tree_v_separation : int = int(pow(base_margin * 0.2 * scale, 3))
set_constant('v_separation', 'Tree', tree_v_separation)
# Using empty stylebox for trees to avoid drawing unnecessary borders in docks.
# Note that using opaque color that is the same as dock background