<div dir="ltr"><div><br></div><div>Hi all,</div><div><br></div><div>From the beginning, the handling of SVG files in Sugar rely on Entity fields in the header of files. Something like:<br></div><div><pre><code><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "<a href="http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd</a>" [
        <!ENTITY stroke_color "#000000">
        <!ENTITY fill_color "#999999">
]></code></pre></div><div>This mechanism is described on [1]. Sugarizer rely on the same mechanism to colorize icons.</div><div><br></div><div>Because this "hack" has some drawbacks - specifically on performance - I think to change it in a future version of Sugarizer to use native SVG/CSS features instead. I've done a detailed study here [2] to explain how it could work.</div><div><br></div><div>Of course it will generate compatibility issues but it would be nice to see if the same thing could be done in Python too. I'm not a Python/Gtk specialist but will be happy to help on it.</div><div><br></div><div>Regards.</div><div><br></div><div>            Lionel.<br></div><br><div><br></div><div>[1] <a href="https://wiki.sugarlabs.org/go/Development_Team/Almanac/Making_Icons">https://wiki.sugarlabs.org/go/Development_Team/Almanac/Making_Icons</a></div><div>[2] <a href="https://github.com/llaske/svgstudy">https://github.com/llaske/svgstudy</a></div></div>