Improve the look of separators

pull/39/head
passivestar 2025-06-03 11:45:51 +07:00
parent 6b1d941a98
commit cf23434744
1 changed files with 16 additions and 0 deletions

@ -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()