TabContainer selected tab outline properties?

Godot Version

4.4.1

Question

Hi there,
I searched everywhere (well obviously not :laughing: ), but I did not find where to tweak the outline around the selected tab in a TabContainer. The white line you see on this picture :

That’s the TabContainer.tab_focus theme style.

thanks ! Then I still wonder what is the difference between tab_select and tab_focus…

tab_selected is the light-gray background and tab_focus is just the white outline.

Are you sure ? because the BG color of tab_focus has an influence on the color of the inside of the tab… It seems to override tab_selected BG color.

As explained in the tab_focus documentation:

The tab_focus StyleBox is displayed over the base StyleBox of the selected tab, so a partially transparent StyleBox should be used to ensure the base StyleBox remains visible.

So you’ll need to set the bg color to something transparent or disable StyleBoxFlat.draw_center

1 Like