From 396703c4784e0993e1b85ae7cdb39d4aa4c80d4a Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Sat, 5 Dec 2020 18:38:39 +0100 Subject: [PATCH] An even faster version of the TagPickerTagTemplate (#5207) --- core/ui/TagPickerTagTemplate.tid | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/ui/TagPickerTagTemplate.tid b/core/ui/TagPickerTagTemplate.tid index 43406a565..0588a0698 100644 --- a/core/ui/TagPickerTagTemplate.tid +++ b/core/ui/TagPickerTagTemplate.tid @@ -13,5 +13,11 @@ title: $:/core/ui/TagPickerTagTemplate <$action-setfield $tiddler=<> text="yes"/> <> -<$macrocall $name="tag-pill-inner" tag=<> icon={{{ [get[icon]] }}} colour={{{ [get[color]] }}} fallbackTarget=<> colourA=<> colourB=<> element-tag="span" element-attributes="" actions=<>/> +<$set name="backgroundColor" value={{!!color}}> +<$wikify name="foregroundColor" text="""<$macrocall $name="contrastcolour" target={{!!color}} fallbackTarget=<> colourA=<> colourB=<>/>"""> +>> +<$transclude tiddler={{!!icon}}/><$view field="title" format="text"/> + + +