title: $:/core/ui/TagTemplate \define tag-styles() background-color:$(backgroundColor)$; fill:$(foregroundColor)$; color:$(foregroundColor)$; \end \define tag-body-inner(colour,fallbackTarget,colourA,colourB) <$set name="foregroundColor" value=<>> <$set name="backgroundColor" value="""$colour$"""> <$button popup=<> class="tc-btn-invisible tc-tag-label" style=<>> <$transclude tiddler={{!!icon}}/> <$view field="title" format="text" /> <$reveal state=<> type="popup" position="below" animate="yes">
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
<$list filter="[all[current]tagging[]]" template="$:/core/ui/ListItemTemplate"/>
\end \define tag-body(colour,palette) <$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}}/> \end <$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}}/>