From 3faf9bae5c0dfd4f45d2e5de6fe181ab5fe1c356 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 14 Nov 2024 17:40:58 +0000 Subject: [PATCH] Fix previews of filtered palettes --- core/wiki/currpalettepreview.tid | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/core/wiki/currpalettepreview.tid b/core/wiki/currpalettepreview.tid index 25a82ff7a..56d301ec8 100644 --- a/core/wiki/currpalettepreview.tid +++ b/core/wiki/currpalettepreview.tid @@ -3,14 +3,15 @@ title: $:/snippets/currpalettepreview \whitespace trim \procedure colour-div-filtered(class,styleName,styleColour) -\function colour(name) [getindex] :else[get[palette-import]getindex] :else[[none]] :map[subfilter] -<$let colour-filter={{{ [getindex] }}}> - - <$let colour-result={{{ [subfilterjoin[ ]] }}}> -
> style={{{ [addsuffix[:]addsuffixaddsuffix[;]] }}}> - <$slot $name="ts-raw" $depth="2"/> -
- +\function colour(name) [getindex] :else[get[palette-import]getindex] :else[[none]] :map[subfilter] +[join[ ]] + +<$let + colour-palette=<> + colour-result={{{ [function[colour],] +[join[ ]] }}} +> +
> style={{{ [addsuffix[:]addsuffixaddsuffix[;]] }}}> + <$slot $name="ts-raw" $depth="2"/> +
\end colour-div-filtered