From cf23434744b67b7354c0442494ecc9f58652bbaa Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Tue, 3 Jun 2025 11:45:51 +0400 Subject: [PATCH] Improve the look of separators --- minimal_theme.tres | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/minimal_theme.tres b/minimal_theme.tres index fdd12e6..3fb34cb 100644 --- a/minimal_theme.tres +++ b/minimal_theme.tres @@ -789,6 +789,22 @@ func _init() -> void: set_stylebox('cursor', 'Tree', sb) set_stylebox('cursor_unfocused', 'Tree', sb) + # Separators + + line_sb = StyleBoxLine.new() + line_sb.color = _get_base_color(0.2, 0.8) + line_sb.grow_begin = base_margin * -1 * scale + line_sb.grow_end = base_margin * -1 * scale + line_sb.thickness = int(ceilf(scale * 2)) + + set_constant('separation', 'HSeparator', int(base_margin * 2 * scale)) + set_constant('separation', 'VSeparator', int(base_margin * 2 * scale)) + + set_stylebox('separator', 'HSeparator', line_sb) + line_sb = line_sb.duplicate() + line_sb.vertical = true + set_stylebox('separator', 'VSeparator', line_sb) + # Sidebars sb = base_sb.duplicate()