2014-02-17 12:09:10 +00:00
|
|
|
title: $:/snippets/paletteswitcher
|
|
|
|
|
2025-01-09 14:51:48 +00:00
|
|
|
\parameters (thumbnails)
|
|
|
|
|
2022-04-01 07:10:29 -04:00
|
|
|
\whitespace trim
|
2024-11-09 16:15:33 +00:00
|
|
|
\procedure actions()
|
|
|
|
<$transclude $variable="actions-switch-colour-palette" paletteTitle=<<navigateTo>>/>
|
|
|
|
\end actions
|
|
|
|
|
|
|
|
<$linkcatcher actions=<<actions>>>
|
2025-01-09 14:51:48 +00:00
|
|
|
<div class={{{ tc-chooser [<thumbnails>match[yes]then[tc-chooser-cards]] +[join[ ]] }}}>
|
2024-11-04 18:12:00 +00:00
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]">
|
2024-12-27 12:00:50 +00:00
|
|
|
<div class={{{ [<currentTiddler>match{$:/palette}then[tc-chosen]] tc-chooser-item +[join[ ]] }}}>
|
|
|
|
<$link to={{!!title}} aria-label=`${[[$:/language/ControlPanel/Palette/Caption]get[text]]}$ - ${[all[current]get[name]]}$. ${[all[current]get[description]]}$`>
|
2025-01-09 14:51:48 +00:00
|
|
|
<%if [<thumbnails>match[yes]] %>
|
|
|
|
{{||$:/snippets/currpalettepreview}}
|
|
|
|
<%endif%>
|
|
|
|
''<$view field="name" format="text"/>''
|
|
|
|
<br>
|
|
|
|
<$view field="description" format="text"/>
|
2024-12-27 12:00:50 +00:00
|
|
|
</$link>
|
|
|
|
</div>
|
2024-11-04 18:12:00 +00:00
|
|
|
</$list>
|
|
|
|
</div>
|
2019-03-12 10:48:34 +01:00
|
|
|
</$linkcatcher>
|