mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 17:46:19 +00:00
9fbe72a877
By rearranging the `[all[]]` operator we are able to ensure that shadow tiddlers get processed before ordinary tiddlers. This makes it easier to create custom stylesheets that override the core.
10 lines
695 B
Plaintext
10 lines
695 B
Plaintext
title: $:/snippets/paletteswitcher
|
|
|
|
\define lingo-base() $:/language/ControlPanel/Appearance/Palette/
|
|
<<lingo Prompt>> <$view tiddler={{$:/palette}} field="name"/>
|
|
|
|
<$linkcatcher to="$:/palette">
|
|
<div class="tw-chooser"><$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[description]]"><div class="tw-chooser-item"><$link to={{!!title}}><div><$reveal state="$:/palette" type="match" text={{!!title}}>•</$reveal><$reveal state="$:/palette" type="nomatch" text={{!!title}}> </$reveal> ''<$view field="name" format="text"/>'' - <$view field="description" format="text"/></div><$transclude tiddler="$:/snippets/currpalettepreview"/></$link></div>
|
|
</$list>
|
|
</div>
|
|
</$linkcatcher> |