Hi Tones, It's not a problem for me, look at my attempt. I just write the content when user want to change color via config tiddler, so it's not an issue about loaded.
For the moment with the simple macro I can do it, but it's hard coded. I would like to make the choice of colour settings. Ideally with a single button or drop-down list, but doing it in 2 steps can satisfy me too. [image: Capture d’écran 2020-12-17 à 11.45.30.png] Do you see my goal ? I don't know how to use wikify output of $:/n0d1/palettes/n0d1##favicon-color and inject it in my macro. I feel like it's all silly, but it has to be me :D Regards, Sylvain Le jeudi 17 décembre 2020 à 00:50:35 UTC+1, TW Tones a écrit : > The main issue maybe is a $:/favicon which is loaded perhaps before any > other logic is occurring. > > Are you trying to get the favicon icon to convey information according to > its color? Nice Idea. > > Tones > > On Thursday, 17 December 2020 at 06:24:08 UTC+11 [email protected] wrote: > >> Hi Jeremy, >> >> Thanks but I don't worried about type field (because I use my existing >> $:/favicon.ico tiddler, but you're right it's better to be add this). >> >> My concern is about to set color (in the example black) as variable, and >> not hard coded in the macro. >> >> Do you have an idea ? >> >> Thanks :) >> >> Le mercredi 16 décembre 2020 à 18:39:17 UTC+1, Jeremy Ruston a écrit : >> >>> Hi Sylvain >>> >>> Just set the type field to indicate that it is an SVG image: >>> >>> <$button class="" tooltip="Color Favicon" aria-label='Color Favicon'>Add >>> color to $:/favicon.ico >>> <$action-setfield $tiddler="$:/favicon.ico" text=<<favi >>> "black">> type="image/svg+xml"/> >>> </$button> >>> >>> Best wishes >>> >>> Jeremy >>> >>> On 16 Dec 2020, at 17:18, Sylvain Naudin <[email protected]> wrote: >>> >>> \define favi(color) >>> <svg xmlns="http://www.w3.org/2000/svg" width="144.798" height="87.014" >>> viewBox="0 0 38.311 23.022"> >>> <path d="M19.41.004L2.814.88A2.97 2.97 0 00.008 3.634l-.001.023a2.646 >>> 2.646 0 002.45 2.828l3.958.284A1.438 1.438 0 017.75 8.187l.138 11.97a2.866 >>> 2.866 0 002.66 2.824l.01.001a2.45 2.45 0 002.625-2.456L13.12 8.56a3.124 >>> 3.124 0 012.585-3.093l1.328-.233a1.419 1.419 0 011.65 1.2l2.03 14.453a1.401 >>> 1.401 0 002.396.777l3.76-3.905a1.694 1.694 0 012.595.186l3.31 4.606a1.13 >>> 1.13 0 002.027-.447l3.48-18.22a1.67 1.67 0 00-1.12-1.899l-1.274-.417a2.066 >>> 2.066 0 00-2.704 1.815l-.473 6.598a.882.882 0 01-1.621.414l-1.146-1.78a1.39 >>> 1.39 0 00-2.217-.159l-1.908 2.198a.97.97 0 01-1.673-.396l-2.13-8.34A2.551 >>> 2.551 0 0019.409.005z" fill="$color$" /> >>> </svg> >>> \end >>> >>> <$button class="" tooltip="Color Favicon" aria-label='Color Favicon'>Add >>> color to $:/favicon.ico >>> <$action-setfield $tiddler="$:/favicon.ico" text=<<favi >>> "black">> /> >>> </$button> >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a803561e-4c97-4404-ac23-c23e33a4318en%40googlegroups.com.

