Separate tree column titles

pull/39/head
passivestar 2025-06-26 00:26:33 +07:00
parent 60d1e552cd
commit c945ad7f36
1 changed files with 6 additions and 2 deletions

@ -828,10 +828,14 @@ func _init() -> void:
# make focus indication look not janky when only a part of a dock is highlighted
set_stylebox('focus', 'Tree', base_empty_sb)
# Rounded corners look a little janky in tree titles because there's no way to
# introduce gaps between columns, however not having rounded corners looks even worse
sb = base_sb.duplicate()
sb.bg_color = _get_base_color(-1.2 if dark_theme else -1.8)
# Using a transparent border to separate rounded column titles
sb.border_width_left = int(ceilf(scale))
sb.border_width_right = int(ceilf(scale))
sb.border_color = sb.bg_color * Color(1, 1, 1, 0)
set_stylebox('title_button_hover', 'Tree', sb)
set_stylebox('title_button_normal', 'Tree', sb)
set_stylebox('title_button_pressed', 'Tree', sb)