This website requires JavaScript.
Explore
Main Site
Help
Register
Sign In
mirrors
/
TiddlyWiki5
Watch
1
Star
0
Fork
0
You've already forked TiddlyWiki5
mirror of
https://github.com/Jermolene/TiddlyWiki5
synced
2024-12-26 10:00:34 +00:00
Code
Issues
Releases
Wiki
Activity
4cdbe6540b
TiddlyWiki5
/
core
/
wiki
/
paletteeditor.tid
4 lines
77 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add palette editor
2014-02-20 10:00:38 +00:00
title: $:/snippets/paletteeditor
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 11:36:13 +00:00
<$transclude tiddler="$:/PaletteManager"/>
Reference in New Issue
Copy Permalink