Open fkyah3 opened 3 months ago
Seems it's populating the options list based on only the default theme and the project theme, and it was done intentionally like that (lines 452-453): https://github.com/godotengine/godot/blob/a5830f6eb9fe25fbb7e58a723dbea8509aec8a85/scene/gui/control.cpp#L447-L473
I'm not familiar with the Theme code but I'd guess it was done like that for performance reasons, and thus might potentially need some internal rework to change/enhance that.
A simple improvement for now could be mentioning this quirk in the docs (shown as tooltip in the inspector):
I'm not familiar with the Theme code but I'd guess it was done like that for performance reasons
it's done like that, because it's difficult to determine the Theme that should be used for listing variations. Any Control's ancestor might have another Theme assigned or the theme can be changed at runtime etc. The default/project themes are the only reliable option.
There is also this issue on same topic https://github.com/godotengine/godot/issues/80732
Tested versions
v4.3.stable.steam [77dcf97d8]
System information
windows 10
Issue description
When I create a new Type in the theme, it doesn't show up in the Type Variation but I can use the created type manually
Steps to reproduce
"First, create a new theme. Then, within the theme, create a new type under the types category.
Next, select the theme in the PanelContainer node.
After that, look for the newly created type variation under Type Variation.
If it cannot be found, manually entering the new variation name works to apply it."
Minimal reproduction project (MRP)
bug.zip