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.

in Engine by (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.

by (27,170 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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories