Fix some nested tabbars

4.6
passivestar 2025-10-04 15:53:27 +07:00
parent cbfcd503e0
commit 8d14231cf0
1 changed files with 3 additions and 1 deletions

@ -834,6 +834,7 @@ func _init() -> void:
sb.corner_radius_top_right = int(corner_radius * scale)
set_stylebox('tab_selected', 'TabBar', sb)
set_stylebox('tab_selected', 'TabContainer', sb)
set_stylebox('ThemeEditorPreviewFG', 'EditorStyles', sb)
sb = sb.duplicate()
sb.bg_color = color_surface_base
@ -844,11 +845,12 @@ func _init() -> void:
set_stylebox('tab_focus', 'TabContainerOdd', focus_sb)
sb = sb.duplicate()
sb.bg_color = Color.TRANSPARENT
sb.bg_color = color_surface_lowest
sb.set_border_width_all(0)
set_stylebox('tab_unselected', 'TabBar', sb)
set_stylebox('tab_unselected', 'TabContainer', sb)
set_stylebox('tab_unselected', 'TabContainerOdd', sb)
set_stylebox('ThemeEditorPreviewBG', 'EditorStyles', sb)
set_stylebox('tab_disabled', 'TabBar', sb)
set_stylebox('tab_disabled', 'TabContainer', sb)
set_stylebox('tab_disabled', 'TabContainerOdd', sb)