2014-02-17 12:09:10 +00:00
|
|
|
title: $:/snippets/paletteswitcher
|
|
|
|
|
2024-01-25 15:53:21 +00:00
|
|
|
\parameters (palette:"$:/palette" config:"" postFilter:"")
|
2022-04-01 11:10:29 +00:00
|
|
|
\whitespace trim
|
2024-01-25 15:53:21 +00:00
|
|
|
|
|
|
|
\define catchActions()
|
|
|
|
<$action-setfield $tiddler=<<palette>> $field=text text=<<navigateTo>>/>
|
|
|
|
<$list filter="[<config>!is[blank]]">
|
|
|
|
<$action-setfield $tiddler=<<config>> text=<<navigateTo>>/>
|
|
|
|
</$filter>
|
|
|
|
\end
|
|
|
|
|
|
|
|
<$linkcatcher actions=<<catchActions>>>
|
|
|
|
<div class="tc-chooser">
|
|
|
|
<$let pre={{{ [<palette>get[text]] }}} >
|
|
|
|
<$list filter=`[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]] $(postFilter)$`>
|
|
|
|
<$set name="class" filter="[all[current]prefix<pre>]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
|
|
|
<div class=<<class>> >
|
|
|
|
<$link to={{!!title}}>
|
|
|
|
''<$view field="name" format="text"/>''
|
|
|
|
 - 
|
2024-01-25 19:42:00 +00:00
|
|
|
<$view field="color-scheme" format="text"/>
|
|
|
|
 - 
|
2024-01-25 15:53:21 +00:00
|
|
|
<$view field="description" format="text"/>
|
|
|
|
{{||$:/snippets/currpalettepreview}}
|
|
|
|
</$link>
|
|
|
|
</div>
|
|
|
|
</$set>
|
|
|
|
</$list>
|
|
|
|
</$let>
|
|
|
|
</div>
|
2019-03-12 09:48:34 +00:00
|
|
|
</$linkcatcher>
|