From cd0ce0cde511adb1a74a88c5d29a434a88f9de43 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sun, 25 Nov 2018 11:43:13 +0100 Subject: [PATCH] Show tag-icons in tags edittemplate (#3447) --- core/ui/EditTemplate/tags.tid | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/ui/EditTemplate/tags.tid b/core/ui/EditTemplate/tags.tid index 557d1ebdf..a89e99ff5 100644 --- a/core/ui/EditTemplate/tags.tid +++ b/core/ui/EditTemplate/tags.tid @@ -9,17 +9,17 @@ fill:$(foregroundColor)$; color:$(foregroundColor)$; \end -\define tag-body-inner(colour,fallbackTarget,colourA,colourB) +\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon) <$vars foregroundColor=<> backgroundColor="""$colour$"""> > class="tc-tag-label"> -<$view field="title" format="text" /> +<$transclude tiddler="""$icon$"""/> <$view field="title" format="text" /> <$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">× \end -\define tag-body(colour,palette) -<$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}}/> +\define tag-body(colour,palette,icon) +<$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon="""$icon$"""/> \end \define tag-picker-actions() @@ -33,7 +33,7 @@ color:$(foregroundColor)$;
<$fieldmangler> <$list filter="[all[current]tags[]sort[title]]" storyview="pop"> -<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}}/> +<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}}/> <$macrocall $name="tag-picker" actions=<>/>