1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-15 14:57:42 +00:00

Fix palette switcher used in the sidebar

by adding a new "thumbnails" parameter to the template
This commit is contained in:
Jeremy Ruston
2025-01-09 14:51:48 +00:00
parent 55d9e92032
commit c75f50e99a
4 changed files with 24 additions and 22 deletions

View File

@@ -4,11 +4,18 @@ caption: {{$:/language/ControlPanel/Palette/Caption}}
\define lingo-base() $:/language/ControlPanel/Palette/
{{$:/snippets/paletteswitcher}}
<$transclude $tiddler="$:/snippets/paletteswitcher" thumbnails="yes"/>
<$let paletteEditor={{{ [{$:/palette}get[editor]] :else[{$:/palette}get[palette-import]!match[]get[editor]] }}}>
{{$:/snippets/palettetests}}
<$let
paletteEditor={{{ [{$:/palette}get[editor]] :else[{$:/palette}get[palette-import]!match[]get[editor]] }}}
>
<%if [<paletteEditor>!match[]] %>
<$transclude $tiddler=<<paletteEditor>> $mode="block"/>
<div>
<<lingo CustomEditor/Prompt>>
<$transclude $tiddler=<<paletteEditor>> $mode="block"/>
</div>
<%endif%>
</$let>