Fix tab container corner radii

This commit is contained in:
passivestar 2025-01-11 00:08:11 +04:00
parent 6a2a89b741
commit c2108cd591

View File

@ -659,8 +659,16 @@ func _init() -> void:
sb = base_sb.duplicate() sb = base_sb.duplicate()
sb.set_content_margin_all(increased_margin * 1.5 * scale) sb.set_content_margin_all(increased_margin * 1.5 * scale)
sb.set_corner_radius_all(0) sb.set_corner_radius_all(0)
sb.corner_radius_bottom_right = int(corner_radius * scale)
sb.corner_radius_bottom_left = int(corner_radius * scale)
set_stylebox('panel', 'TabContainer', sb) set_stylebox('panel', 'TabContainer', sb)
sb = base_sb.duplicate()
sb.bg_color = _get_base_color(-1.0)
sb.set_content_margin_all(0)
sb.set_corner_radius_all(0)
set_stylebox('tabbar_background', 'TabContainer', sb)
# Tree # Tree
set_color('drop_position_color', 'Tree', mono_color * Color(1, 1, 1, 0.4)) set_color('drop_position_color', 'Tree', mono_color * Color(1, 1, 1, 0.4))