On Tuesday, June 9, 2020 at 5:01:44 AM UTC-7, TonyM wrote:
>
> The Following will color the SVG image in the transcluded tiddler
> <span style="fill:blue;">{{$:/core/images/clone-button}}</span>
> Is there a simple way to get the color from the local tiddler's color 
> field?
>

You can use a filter parameter to construct the style definition, like this:
<span style={{{ [{!!color}addprefix[fill:]addsuffix[;]] }}}>
{{$:/core/images/clone-button}}</span>

Note: this can be simplified a bit more by omitting the trailing 
semi-colon, like this:
<span style={{{ [{!!color}addprefix[fill:]] }}}>
{{$:/core/images/clone-button}}</span>

enjoy,
-e

-- 
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/9922ec41-2292-484a-96ea-5f2a4f1749c6o%40googlegroups.com.

Reply via email to