diff --git a/core/ui/ControlPanel/Palette.tid b/core/ui/ControlPanel/Palette.tid index b885e970e..1703c0ef9 100644 --- a/core/ui/ControlPanel/Palette.tid +++ b/core/ui/ControlPanel/Palette.tid @@ -6,22 +6,19 @@ caption: {{$:/language/ControlPanel/Palette/Caption}} \whitespace trim \procedure paletteEditorButton() -<$reveal type="nomatch" state="$:/state/ShowPaletteEditor" text="yes"> +<% if [{$:/state/ShowPaletteEditor}!match[yes]] %> <$button set="$:/state/ShowPaletteEditor" setTo="yes"><> - -<$reveal type="match" state="$:/state/ShowPaletteEditor" text="yes"> +<% else %> <$button set="$:/state/ShowPaletteEditor" setTo="no"><> {{$:/PaletteManager}} - +<% endif %> \end {{$:/core/ui/ControlPanel/Palette/LightDarkConfig}} -<$list filter="[{$:/config/palette/enable-light-dark-detection}match[yes]]" variable="ignore"> +<% if [{$:/config/palette/enable-light-dark-detection}match[yes]] %> <> - - -<$list filter="[{$:/config/palette/enable-light-dark-detection}!match[yes]]" variable="ignore"> +<% else %> !! <> @@ -29,4 +26,4 @@ caption: {{$:/language/ControlPanel/Palette/Caption}} <> - +<% endif %>