1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-11 04:19:56 +00:00
TiddlyWiki5/core/ui/ControlPanel/Palette.tid

40 lines
999 B
Plaintext
Raw Normal View History

title: $:/core/ui/ControlPanel/Palette
tags: $:/tags/ControlPanel/Appearance
caption: {{$:/language/ControlPanel/Palette/Caption}}
\define lingo-base() $:/language/ControlPanel/Palette/
2024-01-25 15:53:21 +00:00
\whitespace trim
2024-01-25 15:53:21 +00:00
\define 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>
2014-02-20 10:00:38 +00:00
<$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>