1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-16 14:54:51 +00:00
TiddlyWiki5/themes/tiddlywiki/vanilla
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
..
base.tid Add/refactor PaletteManager (#3832) 2019-06-26 12:36:13 +01:00
metrics.multids Introduce fluid story/fixed sidebar mode 2015-05-04 19:19:40 +01:00
options.multids Fix word wrapping in code blocks 2016-04-04 17:27:55 +01:00
plugin.info Add plugin-priority fields for core plugins (#3113) 2018-03-20 21:05:07 +00:00
reset.tid Update to latest version of normalize.css and fix tab styling 2014-03-12 20:05:34 +00:00
settings.multids Fix Snow White default fonts according to GitHub's advice 2018-02-28 11:42:08 +00:00
sticky.tid Fix sticky titles dropdown overlap 2019-02-06 14:20:34 +00:00
ThemeTweaks.tid Make editor font configurable, so user can easily change it to eg monospace font (#2867) 2017-06-29 16:55:49 +01:00