mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
36c7e82cc0
* add PaletteManager * add hint for "external" palette-names * macro utility, for local \import only this tiddler is never meant to be tagged $:/tags/Macro contains only a colour macro which allows to call `<<colour "...">>` within a tiddler and get the parameter-name instead of the resolved color used in the PaletteManager to reveal the original color below the color that just uses its color with the colour macrocall example: ``` \define get-real-index(string) \import $:/core/macros/utils <$wikify $name="result" text="""$string$"""> <- does the "colour" macrocall, but the one that returns the parameter name <<result>> </$wikify> \end <$set name="color" value={{{ [{$:/palette}getindex[color-of-interest]] }}}> -> <<colour primary>> <$wikify name="real-color-index" text="""<$macrocall $name="get-real-index" string=<<color>>/>"""> <<real-color-index>> -> primary ... ``` * transclude PaletteManager in snippets/paletteeditor * transclude PaletteManager in core/ui/ControlPanel/Palette * Update ControlPanel.multids * add style for color inputs in PaletteManager * Update PaletteManager.tid * Update PaletteManager.tid * add tooltips & aria-labels * Update ControlPanel.multids * Update PaletteManager.tid * Update PaletteManager.tid * Update PaletteManager.tid
22 lines
596 B
Plaintext
22 lines
596 B
Plaintext
title: $:/core/ui/ControlPanel/Palette
|
|
tags: $:/tags/ControlPanel/Appearance
|
|
caption: {{$:/language/ControlPanel/Palette/Caption}}
|
|
|
|
\define lingo-base() $:/language/ControlPanel/Palette/
|
|
|
|
{{$:/snippets/paletteswitcher}}
|
|
|
|
<$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>
|
|
|