-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different skins for TBTabContainer #18
Comments
This should work today i think: Other possible solutions: A bug: I noticed TBTabLayout::OnChildAdded always override the skin for TBButton, so any attempt to set the skin attibute directly on a specific tab will currently fail. |
Could you write a little example of skin for additional skin, please. For example I want to change background of layout and backgrounds of tab buttons. |
In your ui resource:
In your skin override (assuming you override the default skin):
This will add the strong-override section to the default "TBTabContainer.tab_top" skin so the TBTabContainer.ducky_tab skin will be used instead if any ancestor has skin "duck", which the TBTabContainer has. There's some limitations for what you can change in an override skin, since they can only add to the override/strong-override/child/overlay lists (and not replace in them). So some things requires changing the base skin. |
The example won't look pretty, but at least it shows how conditions can be used :) |
It working! Thank you! |
Great! |
Cool! Thanks! :) |
Now I can't create tab containers with different visual. Need support for skin attribute for tab container :)
The text was updated successfully, but these errors were encountered: