0 votes

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.

asked Dec 16, 2019 in Engine by Icaro-Lima (21 points)

1 Answer

0 votes

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.

answered Dec 16, 2019 by Zylann (26,139 points)

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.