1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00
TiddlyWiki5/core/wiki
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
..
config Performance Instrumentation: Track execution times for individual filters 2019-05-10 15:56:01 +01:00
macros Add/refactor PaletteManager (#3832) 2019-06-26 12:36:13 +01:00
tags Modularize the sidebar 2018-08-02 13:22:21 +01:00
advancedsearch.tid First pass at an advanced search tiddler 2013-12-31 13:11:01 +00:00
allfields.tid Yet more "tw-*" -> "tc-*" 2014-08-28 19:41:29 +01:00
currpalettepreview.tid Improve styling and reusability of palette, language, and theme switchers (#1954) 2018-04-06 17:26:54 +01:00
DefaultTiddlers.tid Simpler default defaulttiddlers 2014-08-18 10:27:48 +01:00
download-wiki-button.tid Force filenames for downloading empty and full wikis 2014-12-19 15:20:07 +00:00
language.tid Ensure we have a default language in empty.html 2014-08-14 12:00:07 +01:00
languageswitcher.tid Improve styling and reusability of palette, language, and theme switchers (#1954) 2018-04-06 17:26:54 +01:00
minilanguageswitcher.tid Use the select widget in the various switchers 2014-05-31 18:38:17 +01:00
minithemeswitcher.tid Remove "advanced" and "appearance" from control panel tab titles 2014-09-03 12:46:22 +01:00
modules.tid First pass at refactoring filter execution 2014-04-03 20:49:16 +01:00
palette.tid First pass at switchable colour palettes 2014-02-17 12:09:10 +00:00
paletteeditor.tid Add/refactor PaletteManager (#3832) 2019-06-26 12:36:13 +01:00
palettepreview.tid Improve styling and reusability of palette, language, and theme switchers (#1954) 2018-04-06 17:26:54 +01:00
paletteswitcher.tid Palette manager: sort palettes by name, not description (#3853) 2019-03-12 09:48:34 +00:00
peek-stylesheets.tid Fix control panel stylesheets tab to use $:/state/... instead of $:/config/... 2019-06-03 13:28:59 +01:00
search.tid Use temporary tiddler for search text 2012-11-11 15:08:46 +00:00
themeswitcher.tid Improve styling and reusability of palette, language, and theme switchers (#1954) 2018-04-06 17:26:54 +01:00
title.tid Remove extraneous text/vnd.tiddlywiki from system tiddlers in light of #2883 2017-06-09 15:42:32 +01:00
view.tid Retract inadvertant change from previous commit 2014-05-26 22:56:58 +01:00
viewswitcher.tid Improve styling and reusability of palette, language, and theme switchers (#1954) 2018-04-06 17:26:54 +01:00