Re: [tw5] Using <> inside SVG icon definition

2021-05-13 Thread Frédéric Demers
Brilliant! At least one of the solutions above works, I'll play around with the other solutions as well. Thanks everyone! On Thu, 13 May 2021 at 12:34, Jeremy Ruston wrote: > Hi Fred > > The easiest way to accomplish what you require is simply to edit the SVG > image to remove the fill="xx"

Re: [tw5] Using <> inside SVG icon definition

2021-05-13 Thread Jeremy Ruston
Hi Fred The easiest way to accomplish what you require is simply to edit the SVG image to remove the fill="xx" attributes entirely; the default fill colour will then be inherited, or can be set via CSS. If you are interested in templating SVG images, there's an example I did here to make the

Re: [tw5] Using <> inside SVG icon definition

2021-05-13 Thread Mohammad Rahmani
On Thu, May 13, 2021 at 4:34 PM Thomas Elmiger wrote: > Hi, > > Not sure if this helps, but in some situations there is a better solution > to give an icon the same colour as the surrounding text – which might be > the case if you use the TW foreground colour. In your SVG you can use > >

Re: [tw5] Using <> inside SVG icon definition

2021-05-13 Thread Mohammad Rahmani
On Thu, May 13, 2021 at 3:37 PM Frédéric Demers wrote: > Hi Mohammad, not quite what I am after. I'll try to express myself better > below. > > The code I have in my original post works (just as well as the changes you > proposed), but it uses a fixed value represented by the "#c8ced8" string =>

Re: [tw5] Using <> inside SVG icon definition

2021-05-13 Thread Thomas Elmiger
Hi, Not sure if this helps, but in some situations there is a better solution to give an icon the same colour as the surrounding text – which might be the case if you use the TW foreground colour. In your SVG you can use fill="currentColor" Simple as that. Another good way could be to

Re: [tw5] Using <> inside SVG icon definition

2021-05-13 Thread Frédéric Demers
Hi Mohammad, not quite what I am after. I'll try to express myself better below. The code I have in my original post works (just as well as the changes you proposed), but it uses a fixed value represented by the "#c8ced8" string => I'd like to change this hard coded value to <>. Trying to

Re: [tw5] Using <> inside SVG icon definition

2021-05-12 Thread Mohammad Rahmani
Use this example in tiddlywiki.com See the answer below, remove extra quotation marks! On Thu, May 13, 2021 at 7:05 AM Frédéric Demers wrote: > Hello everyone, > > probably an easy answer, but have been banging my head against this one > for a while... > > I imported an SVG icon ( >

[tw5] Using <> inside SVG icon definition

2021-05-12 Thread Frédéric Demers
Hello everyone, probably an easy answer, but have been banging my head against this one for a while... I imported an SVG icon (https://morosanuae.github.io/tw-icons/#$:/images/icon-park/edit/list-checkbox-outline) and am trying to simply change the stroke/fill colour to the generic <> so