AnsweredAssumed Answered

How to change SVG Fill Color in QML

Question asked by les.vegetables on Jul 3, 2019
Latest reply on Jul 5, 2019 by les.vegetables

How would one go about changing the fill color of an SVG image used in a tool button or elsewhere in QML? In all of the examples I've seen, an SVG asset is referenced as a value or an image source property, and I've not seen a property to change the fill color for the SVG. 

 

I suppose one could write some logic to open the SVG file, locate the fill color property (or properties in the case of a multi-path SVG) and change the color value but it seems like it should be a lot easier than that.

Outcomes