From 357f20c64c8c1fbd85cef510e48fe5d39f5334e2 Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Mon, 27 Jan 2025 04:06:24 +0400 Subject: [PATCH] Use opaque background for trees to prevent overlay problems --- minimal_theme.tres | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/minimal_theme.tres b/minimal_theme.tres index 3147c62..3398da9 100644 --- a/minimal_theme.tres +++ b/minimal_theme.tres @@ -697,7 +697,9 @@ func _init() -> void: set_constant('relationship_line_width', 'Tree', 0) set_constant('v_separation', 'Tree', int(base_margin * 0.25 * scale)) - set_stylebox('panel', 'Tree', base_empty_margin_sb) + sb = base_sb.duplicate() + sb.set_content_margin_all(base_margin * 2 * scale) + set_stylebox('panel', 'Tree', sb) # Leaving focus empty for trees and scroll containers because there's no way to # make focus indication look not janky when only a part of a dock is highlighted