1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-13 05:19:58 +00:00

use procedures instead of define

This commit is contained in:
pmario 2024-01-26 01:35:22 +01:00
parent 9323fbc893
commit 28df050b80
3 changed files with 5 additions and 7 deletions

View File

@ -1,9 +1,7 @@
title: $:/core/ui/ControlPanel/Palette/LightDarkConfig
\define lingo-base() $:/language/ControlPanel/Palette/
\define config-dark-light() $:/config/palette/enable-light-dark-detection
\procedure lingo-base() $:/language/ControlPanel/Palette/
\procedure config-dark-light() $:/config/palette/enable-light-dark-detection
\whitespace trim
!! <<lingo "Picker/Heading">>
@ -20,7 +18,7 @@ title: $:/core/ui/ControlPanel/Palette/LightDarkConfig
</$link>
</$checkbox>
<!-- This section should be animated, so users do not loose focus -->
<!-- This section is animated, so users do not loose focus -->
<$reveal type="match" state=<<config-dark-light>> text="yes" retain="yes" animate="yes">
<<lingo "Picker/Prompt">>

View File

@ -4,7 +4,7 @@ title: $:/core/macros/palette-picker
\whitespace trim
\procedure palette-info(tiddler)
\define tv-wikilinks() no
\procedure tv-wikilinks() no
<$tiddler tiddler={{{ [<tiddler>get[text]] }}} >
''{{!!name}}'' <span class="tc-tiny-gap">-</span> {{!!description}}
{{||$:/snippets/currpalettepreview}}

View File

@ -3,7 +3,7 @@ title: $:/snippets/paletteswitcher
\parameters (palette:"$:/palette" config:"" postFilter:"")
\whitespace trim
\define catchActions()
\procedure catchActions()
<$action-setfield $tiddler=<<palette>> $field=text text=<<navigateTo>>/>
<$list filter="[<config>!is[blank]]">
<$action-setfield $tiddler=<<config>> text=<<navigateTo>>/>