1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-14 13:54:50 +00:00
TiddlyWiki5/core/ui/ControlPanel/Palette.tid

33 lines
1001 B
Plaintext
Raw Normal View History

title: $:/core/ui/ControlPanel/Palette
tags: $:/tags/ControlPanel/Appearance
caption: {{$:/language/ControlPanel/Palette/Caption}}
\procedure lingo-base() $:/language/ControlPanel/Palette/
2024-01-25 15:53:21 +00:00
\whitespace trim
\procedure paletteEditorButton()
2014-02-20 10:00:38 +00:00
<$reveal type="nomatch" state="$:/state/ShowPaletteEditor" text="yes">
<$button set="$:/state/ShowPaletteEditor" setTo="yes"><<lingo ShowEditor/Caption>></$button>
2014-02-20 10:00:38 +00:00
</$reveal>
<$reveal type="match" state="$:/state/ShowPaletteEditor" text="yes">
<$button set="$:/state/ShowPaletteEditor" setTo="no"><<lingo HideEditor/Caption>></$button>
{{$:/PaletteManager}}
2014-02-20 10:00:38 +00:00
</$reveal>
2024-01-25 15:53:21 +00:00
\end
{{$:/core/ui/ControlPanel/Palette/LightDarkConfig}}
<$list filter="[{$:/config/palette/enable-light-dark-detection}match[yes]]" variable="ignore">
<<paletteEditorButton>>
</$list>
<$list filter="[{$:/config/palette/enable-light-dark-detection}!match[yes]]" variable="ignore">
!! <<lingo "Switcher/Heading">>
{{$:/snippets/paletteswitcher}}
<<paletteEditorButton>>
2014-02-20 10:00:38 +00:00
2024-01-25 15:53:21 +00:00
</$list>