I guess I need to make an update to this library :)

Sent from my iPhone

> On Apr 6, 2022, at 1:28 PM, Mark Waddingham via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> On 2022-04-06 18:16, Klaus major-k via use-livecode wrote:
>> Hi all,
>> so sorry, looks like I completely f..... up here.
>> Sorry for the confusion, not may day...
>> See:
>> <https://quality.livecode.com/show_bug.cgi?id=23665>
> 
> Hehe - no worries.
> 
> So in answer to your original query about wanting to be able to color the 
> icons - the drawing library supports the 'currentColor' attribute in SVG - 
> and this is tied to the 'backgroundColor' property of the image object the 
> drawing is set on.
> 
> It would only take a small tweak to Brian's extension to make this work - 
> adding `fill="currentColor"` to the path node it generates.
> 
> Brian's extension works by fetching the path data from the IconSVG library, 
> wrapping it in the necessary SVG XML, and then compiling it with 
> drawingSvgCompile.
> 
> Irksomely, there does not seem to be any support for marking colors in SVGs 
> as 'currentColor' in any SVG editor we've come across (unless its deeply 
> buried in it). So one strategy there is making sure the colors you want to be 
> configurable in the SVG are set to a known unlikely random color (e.g. 
> #ABCDEF), exporting as SVG XML from the editor and then just doing a global 
> find/replace of (e.g.) #ABCDEF with currentColor.
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to