1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-06 10:46:57 +00:00

Fix Codemirror colour palette fallbacks

This commit is contained in:
Jeremy Ruston 2025-02-10 17:01:37 +00:00
parent d2204ae72e
commit 92b7819259

View File

@ -28,7 +28,7 @@ name: tiddlywiki
</$wikify>
\end
\define set-selection-background-colours(palette)
<$macrocall $name="set-selection-background-css" colour=<<colour foreground>> colourA=<<colour selection-background>> colourB=<<colour selection-background>> tiddlerEditorBackground=<<colour tiddler-editor-background>>/>
<$macrocall $name="set-selection-background-css" colour=<<colour foreground>> colourA={{{ [function[colour],[selection-background]!match[]else[#073642]] }}} colourB={{{ [function[colour],[selection-background]!match[]else[#eee8d5]] }}} tiddlerEditorBackground=<<colour tiddler-editor-background>>/>
\end
\define set-selection-background()
<$macrocall $name="set-selection-background-colours" palette={{$:/palette}}/>