I’m not sure that I understand your question but if you want to change the style then …
Create the two styles in Perspective | Styles.
In the Perspective Property Editor select one of the styles in props.style.classes.
Add an expression binding to the props.style.classes. In the example below we change the style from blinking to noBlink depending on the value of tag_x. if({[default]tag_x}, "blinking", "noBlink")
The issue is for example to set a color property on a component, this color property is not in a style class.
I would like to read the value of the color from a style ressource.
OK. You want to apply a color defined in a style to a component that does not accept style classes such as the icon component. (This is sensible as it allows you to maintain the theme.)
I can’t see a way to do that. I’ll have a further think.
I know this thread hasn't been posted to for awhile, but I did discover something that I wanted to document here for anybody who comes across this and specifically needs it.If you are trying to style an SVG component (specifically an embedded one) it will not accept styles by default. However, if you go to a portion of an element that you want to style and has properties that can be contained within a style like this for instance.