1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-29 23:40:45 +00:00
TiddlyWiki5/core/wiki/macros
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
..
colour-picker.tid Introduce text editor toolbar (#2315) 2016-04-22 08:36:29 +01:00
copy-to-clipboard.tid Add copy-to-clipboard macro 2017-12-16 10:58:33 +00:00
CSS.tid tc-body background transparent if background attachment (#3100) 2018-01-23 16:49:24 +00:00
diff.tid Add compareTiddlers macro 2018-04-03 17:50:36 +01:00
dumpvariables.tid Refactor the dumpvariables macro as wikitext 2019-03-30 10:52:49 +00:00
export.tid Use "whitespace trim" to improve spacing and legibility of view toolbar buttons 2017-07-12 16:47:52 +01:00
image-picker.tid Restore ability to use sub-filter with image-picker macro (#2940) 2017-07-24 12:41:50 +01:00
lingo.tid First pass at accessibility improvements for #650 2014-06-14 18:06:56 +01:00
list.tid Fix sticky draggable-placeholders in list macros (firefox) (#3823) 2019-03-10 20:05:18 +00:00
tabs.tid Add support for retaining tab content 2018-04-08 09:47:57 +01:00
tag-picker.tid Add tabindex attributes to edit templates (#3758) 2019-03-02 19:04:27 +01:00
tag.tid Fix tag macros problem with double quotes (#3437) 2018-11-06 21:35:36 +00:00
thumbnails.tid Fix thumbnail macro tiddler title 2015-09-09 17:46:42 +01:00
timeline.tid Remove extraneous text/vnd.tiddlywiki from system tiddlers in light of #2883 2017-06-09 15:42:32 +01:00
toc.tid Restore exclude parameter for selective TOC macros 2019-03-30 12:10:42 +00:00
translink.tid Introduce text editor toolbar (#2315) 2016-04-22 08:36:29 +01:00
tree.tid Tree macro: allow separator to be customised 2019-06-13 08:47:42 +01:00
utils.tid Add/refactor PaletteManager (#3832) 2019-06-26 12:36:13 +01:00