Customizable styles for templates

This feature request is borderline greedy :slight_smile:

I’m starting to use both Templates and customizable styles. Would like to marry both approaches.

What I’d like to do is: define a Template Parameter such as “style” (integer), and then define a number of Internal Properties such as foregroundColor, backgroundColor, etc.

Then, I’d like to use customizable styles so that when the parameter “style” changes to 0, 1, 2, those properties change too. Kind of what you’d do with any other component and customizable styles.

Currently I can do this in two ways, but neither is ideal:

  • define all as Template Parameters (no internal properties) and customize styles on each instance of the template (so changes don’t propagate)
  • bind the internal properties using expressions with if or switch (not very elegant)

Cheers
Ivan