How do I provide this for custom types I’ve created e.g. I have my ‘class_name MyThing extends Control’ etc et.al. What do I need to do to provide options any time that type is placed into a theme WITHOUT having to copy each and every item per theme? I want to provide sensible themes for a class and not sure what to do.
As far as I’m aware, default theme properties aren’t available to scripting. You’ll need to manually add them using the field below next to the Add button or in Manage Items.... You can import them from other themes in Manage Items... → Import Items → Another Theme
It actually doesn’t matter that number of variations needed, it is a process issue of needing to do thing instead of scripting the thing.
I have a theme type: MyThing from class_name MyThing
type MyThing has X number of colors, X number of consts, a font and size, X number of icons, and X number of styleboxes.
I see I can import from another theme, but that is still another imposition where every time I need to locate a theme and import it by hand. I should just be able to attach all these theme items to the class in that class’s script and eliminate the headache of doing it by hand. Its not as much of pain as hand entering each one, but its still the pain of not doing it one and done via code. Its yet another thing that has to be managed by hand.
I use it all the time and it’s fantastic for all the built-in objects. Hacking support in for custom theme objects takes a bit of learning, but is achievable (e.g. support for StyleboxStack and similar)