mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-26 08:56:52 +00:00
28 lines
822 B
Plaintext
28 lines
822 B
Plaintext
title: $:/core/ui/ControlPanel/Palette
|
|
tags: $:/tags/ControlPanel/Appearance
|
|
caption: {{$:/language/ControlPanel/Palette/Caption}}
|
|
|
|
\define lingo-base() $:/language/ControlPanel/Palette/
|
|
|
|
{{$:/snippets/paletteswitcher}}
|
|
|
|
<$let paletteEditor={{{ [{$:/palette}get[editor]] :else[{$:/palette}get[palette-import]!match[]get[editor]] }}}>
|
|
<%if [<paletteEditor>!match[]] %>
|
|
<$transclude $tiddler=<<paletteEditor>> $mode="block"/>
|
|
<%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>
|
|
|