In a UI theme, how do I select what style to use for an asset in the editor?

Godot Version

4.4 Mono

Question

I’m trying to wrap my head around the UI theme system and can’t seem to figure this out. I have multiple types of panels that I want to all look different. I have created a theme, and in that theme, under the type Panel I’ve created several styles of panel. I add the theme to a panel in the editor and under the resources I can see the styles I’ve created, but I cant seem too find a way to set that panel to use a certain style. How is this done in the editor?


r?

1 - only the first node needs a theme, all the children and children of children will inherit the same theme. knowing this can save you a lot of time.
2 - for making a button that is different you have to create a variation. you press the + button and type a name that doesn’t exist, like "red_button" then in the wrench tab you set what type of node this has to be. for example button.
then in the inspector, in theme, there’s a type variation box, there you type the name of the variation (click the pencil icon). if the names match the button will be changed to that variation and you will see it in editor and game.

Thank you, this solved it. I think the flow is a bit unintuitive, but i guess thats the way it is!

I opened an Issue in proposals:

if this doesn’t get solved I will try to do it myself. It’s just takes a lot of time and work to download the source code and then compile, find a solution and then test the changes, but I’ve done it before (once). the most difficult part is creating a fork in github.