1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-03-13 06:58:09 +00:00

Fix some old-style palette references

This commit is contained in:
Jeremy Ruston 2025-01-08 16:00:29 +00:00
parent 2cbd1080fa
commit bd4b3e4107
3 changed files with 8 additions and 8 deletions

View File

@ -34,9 +34,9 @@ color:$(foregroundColor)$;
tag=<<__tag__>>
icon=<<__icon__>>
colour=<<__colour__>>
fallbackTarget={{$palette$##tag-background}}
colourA={{$palette$##foreground}}
colourB={{$palette$##background}}
fallbackTarget=<<colour tag-background>>
colourA=<<colour foreground>>
colourB=<<colour background>>
element-tag=<<__element-tag__>>
element-attributes=<<__element-attributes__>>
actions=<<__actions__>>

View File

@ -10,7 +10,7 @@ name: tiddlywiki
</$set>
\end
\define set-fat-cursor-background-colours(palette)
<$macrocall $name="set-fat-cursor-background-css" colour={{$palette$##foreground}} colourA="#77ee77" colourB="#586e75"/>
<$macrocall $name="set-fat-cursor-background-css" colour=<<colour foreground>> colourA="#77ee77" colourB="#586e75"/>
\end
\define set-fat-cursor-background()
<$macrocall $name="set-fat-cursor-background-colours" palette={{$:/palette}}/>
@ -28,7 +28,7 @@ name: tiddlywiki
</$wikify>
\end
\define set-selection-background-colours(palette)
<$macrocall $name="set-selection-background-css" colour={{$palette$##foreground}} colourA={{{ [{$palette$##selection-background}!match[]!prefix[<<]!suffix[>>]] ~#073642 }}} colourB={{{ [{$palette$##selection-background}!match[]!prefix[<<]!suffix[>>]] ~#eee8d5 }}} tiddlerEditorBackground={{$palette$##tiddler-editor-background}}/>
<$macrocall $name="set-selection-background-css" colour=<<colour foreground>> colourA=<<colour selection-background>> colourB=<<colour selection-background>> tiddlerEditorBackground=<<colour tiddler-editor-background>>/>
\end
\define set-selection-background()
<$macrocall $name="set-selection-background-colours" palette={{$:/palette}}/>

View File

@ -45,9 +45,9 @@ color:$(foregroundColor)$;
tag=<<__tag__>>
icon=<<__icon__>>
colour=<<__colour__>>
fallbackTarget={{$palette$##tag-background}}
colourA={{$palette$##foreground}}
colourB={{$palette$##background}}
fallbackTarget=<<colour tag-background>>
colourA=<<colour foreground>>
colourB=<<colour background>>
element-tag=<<__element-tag__>>
element-attributes=<<__element-attributes__>>
actions=<<__actions__>>