Different theme for each Tab of a TabContainer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Icaro-Lima

Is it possible to put a different theme for each tab?

So far I can only put one theme that modifies the whole TabContainer:
enter image description here

I need the Hello tab to be blue and the World tab to be red for example.

:bust_in_silhouette: Reply From: Zylann

Putting different Theme is not possible, but tabs can have different styleboxes depending on their state, I think the latter is what you want?

Select your TabContainer, look in the Custom Styles section in the inspector: here you can choose which style will be used for each state of the tabs. Tab Fg is for the selected tab, and Tab Bg is for other tabs.

However if you want every tab to have a different color regardless of their state, you’ll probably need to make a custom control.

What I want is for each tab to have its own color. I chose to leave as is, thanks!

Icaro-Lima | 2019-12-16 22:55