mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 04:09:09 +00:00
c75f50e99a
by adding a new "thumbnails" parameter to the template
35 lines
944 B
Plaintext
35 lines
944 B
Plaintext
title: $:/core/ui/ControlPanel/Palette
|
|
tags: $:/tags/ControlPanel/Appearance
|
|
caption: {{$:/language/ControlPanel/Palette/Caption}}
|
|
|
|
\define lingo-base() $:/language/ControlPanel/Palette/
|
|
|
|
<$transclude $tiddler="$:/snippets/paletteswitcher" thumbnails="yes"/>
|
|
|
|
{{$:/snippets/palettetests}}
|
|
|
|
<$let
|
|
paletteEditor={{{ [{$:/palette}get[editor]] :else[{$:/palette}get[palette-import]!match[]get[editor]] }}}
|
|
>
|
|
<%if [<paletteEditor>!match[]] %>
|
|
<div>
|
|
<<lingo CustomEditor/Prompt>>
|
|
<$transclude $tiddler=<<paletteEditor>> $mode="block"/>
|
|
</div>
|
|
<%endif%>
|
|
</$let>
|
|
|
|
<$reveal type="nomatch" state="$:/state/ShowPaletteEditor" text="yes">
|
|
|
|
<$button set="$:/state/ShowPaletteEditor" setTo="yes"><<lingo ShowEditor/Caption>></$button>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state="$:/state/ShowPaletteEditor" text="yes">
|
|
|
|
<$button set="$:/state/ShowPaletteEditor" setTo="no"><<lingo HideEditor/Caption>></$button>
|
|
{{$:/PaletteManager}}
|
|
|
|
</$reveal>
|
|
|