For once I can answer a post of yours! At least it is one way to do it
Apply a span class in or around the button, and then use this in the CSS:
html body.tc-body .MYSPANCLASS .tc-image-open-window {stroke: white;fill:
#43f;}
Dave
On Sunday, November 15, 2020 at 7:43:31 PM UTC-6 TW Tones wrote:
> Folks,
>
>
> - I just noticed (by mistake) if a button tiddler, rather than an icon
> tiddler, is provided to a button as the icon eg
> "$:/core/ui/Buttons/new-here" rather than say
> "$:/core/images/new-here-button" the icon is still displayed and the
> "$:/core/ui/Buttons/new-here" activated on click.
> - This could have interesting possibilities.
>
> Tones
> On Monday, 16 November 2020 at 12:04:12 UTC+11 TW Tones wrote:
>
>> Folks,
>>
>> For some reason I always forget how to add color to an icon used in a
>> button? It is just not intuitive!
>>
>> - I do not want to modify the SVG icon
>> - I understand you can use CSS to provide the fill parameter.
>> - I want to color an icon inside a the $button widget. In this case
>> inline rather than block
>>
>> Question
>>
>> - Can anyone share one or more methods by which to achieve this?
>>
>> I will share back a macro to display the current tiddlers icon in the
>> icon field with the color in the color field.
>>
>> Thanks in advance
>> Tones
>>
>
--
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/94d7f577-ac47-4080-b938-147259a9db23n%40googlegroups.com.