1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-08 15:10:02 +00:00

Palette editors no longer need to manually recompile the palette

This commit is contained in:
Jeremy Ruston 2025-01-25 11:05:13 +00:00
parent 7513e4426c
commit 3ea7cd3bf7
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
title: $:/palette-editors/TwentyTwenties
\procedure entry(name,description)
<$text text=<<description>>/>: <$edit-text tiddler={{$:/palette}} index=<<name>> type="color" tag="input" default={{{ [function[colour],<name>] }}} inputActions=<<actions-recompile-current-palette>>/>
<$text text=<<description>>/>: <$edit-text tiddler={{$:/palette}} index=<<name>> type="color" tag="input" default={{{ [function[colour],<name>] }}}/>
\end entry
<<entry name:"base-paper" description:"Paper">>

View File

@ -22,7 +22,7 @@ title: $:/PaletteManager
\whitespace trim
<$edit-text index=<<colourName>> tag="input" placeholder=<<edit-colour-placeholder>> default=""/>
<br>
<$edit-text index=<<colourName>> type="color" tag="input" class="tc-palette-manager-colour-input" inputActions=<<actions-recompile-current-palette>>/>
<$edit-text index=<<colourName>> type="color" tag="input" class="tc-palette-manager-colour-input"/>
<$list filter="[<currentTiddler>getindex<colourName>removeprefix[<<]removesuffix[>>]] [<currentTiddler>getindex<colourName>removeprefix[<$]removesuffix[/>]]" variable="ignore">
<$set name="state" value={{{ [[$:/state/palettemanager/]addsuffix<currentTiddler>addsuffix[/]addsuffix<colourName>] }}}>
<$wikify name="newColourName" text="""<$macrocall $name="resolve-colour" macrocall={{{ [<currentTiddler>getindex<colourName>] }}}/>""">