1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00
TiddlyWiki5/themes/tiddlywiki
Simon Huber 36c7e82cc0 Add/refactor PaletteManager (#3832)
* 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
2019-06-26 12:36:13 +01:00
..
centralised Don't mark the centralised theme as experimental 2016-01-07 16:49:14 +00:00
heavier Make "Heavier" theme heavier 2016-11-14 15:14:47 +00:00
readonly Improve read-only logic 2017-08-15 15:49:25 +01:00
seamless Consistent plugin descriptions 2015-02-17 10:28:54 +00:00
snowwhite Remove the text-editor box-shadow (reverting) (#3615) 2018-12-03 09:05:52 +00:00
starlight Consistent plugin descriptions 2015-02-17 10:28:54 +00:00
tight Tweaks to "Tight" theme 2015-10-12 17:54:17 +01:00
tight-heavier Add tight-heavier theme that combines "tight" and "heavier" 2017-01-09 12:46:20 +00:00
vanilla Add/refactor PaletteManager (#3832) 2019-06-26 12:36:13 +01:00