Good evening, I take the liberty of picking up this thread, I think you might be able to help me. In my quest to make the colour of the favicon in SVG format customizable, I'm coming up with this simple macro for now:
\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> Now I've tried to make the colour configurable, ideally one that could be chosen beforehand (I already have the code to add this in the palette). So I would like to refer to a variable that would look for the value in the index $:/n0d1/palettes/n0d1##favicon-color Have try different methods, but don't succeed (wikify ?, var, other ?). Thanks, Sylvain Le mercredi 2 décembre 2020 à 10:14:50 UTC+1, Mohammad a écrit : > Thanks Nico! > > > On Wednesday, December 2, 2020 at 11:59:51 AM UTC+3:30 Nicolas Petton > wrote: > >> Mohammad <[email protected]> writes: >> >> Hi Mohammad, >> >> > Welcome back. >> >> Thanks :) >> >> > Off topic: >> > >> > I know your Project Manager plugin and more specific the Notebook >> > theme and palette (https://nicolas.petton.fr/tw/project-manager.html) >> have >> > a lot of fans! You may put the code on GitHub lets user send their >> issue >> > and idea there. >> >> Yes, that's exactly what I'm planning to do. I resumed work on both >> projects. >> >> > I use Notebook on mobile and its amazing! Thank you Nico. >> >> Glad you like it! >> >> Cheers, >> Nico >> > -- 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/424a0aa1-cef4-4799-905c-d46219dae006n%40googlegroups.com.

