From 28df050b80f3a1a1a739c0596d07fbbcdd788737 Mon Sep 17 00:00:00 2001 From: pmario Date: Fri, 26 Jan 2024 01:35:22 +0100 Subject: [PATCH] use procedures instead of define --- core/ui/ControlPanel/PaletteLightDarkPicker.tid | 8 +++----- core/wiki/macros/palette-picker.tid | 2 +- core/wiki/paletteswitcher.tid | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/core/ui/ControlPanel/PaletteLightDarkPicker.tid b/core/ui/ControlPanel/PaletteLightDarkPicker.tid index b8125346e..23ac75923 100644 --- a/core/ui/ControlPanel/PaletteLightDarkPicker.tid +++ b/core/ui/ControlPanel/PaletteLightDarkPicker.tid @@ -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 !! <> @@ -20,7 +18,7 @@ title: $:/core/ui/ControlPanel/Palette/LightDarkConfig - + <$reveal type="match" state=<> text="yes" retain="yes" animate="yes"> <> diff --git a/core/wiki/macros/palette-picker.tid b/core/wiki/macros/palette-picker.tid index c625c2a03..12b7b02e2 100644 --- a/core/wiki/macros/palette-picker.tid +++ b/core/wiki/macros/palette-picker.tid @@ -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={{{ [get[text]] }}} > ''{{!!name}}'' - {{!!description}} {{||$:/snippets/currpalettepreview}} diff --git a/core/wiki/paletteswitcher.tid b/core/wiki/paletteswitcher.tid index b3e916d18..c986911cf 100644 --- a/core/wiki/paletteswitcher.tid +++ b/core/wiki/paletteswitcher.tid @@ -3,7 +3,7 @@ title: $:/snippets/paletteswitcher \parameters (palette:"$:/palette" config:"" postFilter:"") \whitespace trim -\define catchActions() +\procedure catchActions() <$action-setfield $tiddler=<> $field=text text=<>/> <$list filter="[!is[blank]]"> <$action-setfield $tiddler=<> text=<>/>