From 1d5e76cb63cfc126dd589fa4c47cd10421aa4e29 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sun, 27 Oct 2024 08:30:43 +0100 Subject: [PATCH] make use of get.current.theme --- core/language/en-GB/ThemeTweaks.multids | 2 +- core/ui/PageTemplate/sidebar-resizer.tid | 2 +- themes/tiddlywiki/vanilla/ThemeTweaks.tid | 4 ++-- themes/tiddlywiki/vanilla/sidebar-resizer.tid | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/language/en-GB/ThemeTweaks.multids b/core/language/en-GB/ThemeTweaks.multids index 0cd332d8a..651455cd8 100644 --- a/core/language/en-GB/ThemeTweaks.multids +++ b/core/language/en-GB/ThemeTweaks.multids @@ -1,7 +1,7 @@ title: $:/language/ThemeTweaks/ ThemeTweaks: Theme Tweaks -ThemeTweaks/Hint: You can tweak certain aspects of the ''<$text text={{{ [{$:/theme}get[name]] :else[[current]] }}}/>'' theme. +ThemeTweaks/Hint: You can tweak certain aspects of the ''<$text text={{{ [get[name]] :else[[current]] }}}/>'' theme. Options: Options Options/SidebarLayout: Sidebar layout Options/SidebarLayout/Fixed-Fluid: Fixed story, fluid sidebar diff --git a/core/ui/PageTemplate/sidebar-resizer.tid b/core/ui/PageTemplate/sidebar-resizer.tid index cfbcf0853..c94696d75 100644 --- a/core/ui/PageTemplate/sidebar-resizer.tid +++ b/core/ui/PageTemplate/sidebar-resizer.tid @@ -2,7 +2,7 @@ title: $:/core/ui/PageTemplate/sidebar-resizer tags: $:/tags/PageTemplate list-after: $:/core/ui/PageTemplate/story -\import [function[get.base.functions.theme],{$:/theme}first[]!is[missing]] :else[function[get.base.functions.theme],{$:/theme}first[]is[shadow]] :else[[$:/themes/tiddlywiki/vanilla/functions]] [[$:/core/macros/sidebar-resizer]] +\import [function[get.base.functions.theme],first[]!is[missing]] :else[function[get.base.functions.theme],first[]is[shadow]] :else[[$:/themes/tiddlywiki/vanilla/functions]] [[$:/core/macros/sidebar-resizer]] \whitespace trim <%if [match[show]] %> diff --git a/themes/tiddlywiki/vanilla/ThemeTweaks.tid b/themes/tiddlywiki/vanilla/ThemeTweaks.tid index e8297fd9f..e81d62626 100644 --- a/themes/tiddlywiki/vanilla/ThemeTweaks.tid +++ b/themes/tiddlywiki/vanilla/ThemeTweaks.tid @@ -52,8 +52,8 @@ caption: {{$:/language/ThemeTweaks/ThemeTweaks}} |<$link to="$:/themes/tiddlywiki/vanilla/options/sidebarlayout"><> |<$select tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout"> | |<$link to="$:/themes/tiddlywiki/vanilla/options/stickytitles"><>
//<>// |<$select tiddler="$:/themes/tiddlywiki/vanilla/options/stickytitles"> | |<$link to="$:/themes/tiddlywiki/vanilla/options/codewrapping"><> |<$select tiddler="$:/themes/tiddlywiki/vanilla/options/codewrapping"> | -|<$link to={{{ [function[get.base.theme.option],{$:/theme},[sidebarposition]first[]] }}}><> |<$select tiddler={{{ [function[get.base.theme.option],{$:/theme},[sidebarposition]first[]] }}}> | -|<$link to={{{ [function[get.base.theme.option],{$:/theme},[sidebarresizer]first[]] }}}><> |<$select tiddler={{{ [function[get.base.theme.option],{$:/theme},[sidebarresizer]first[]] }}}> | +|<$link to={{{ [function[get.base.theme.option],,[sidebarposition]first[]] }}}><> |<$select tiddler={{{ [function[get.base.theme.option],,[sidebarposition]first[]] }}}> | +|<$link to={{{ [function[get.base.theme.option],,[sidebarresizer]first[]] }}}><> |<$select tiddler={{{ [function[get.base.theme.option],,[sidebarresizer]first[]] }}}> | ! <> diff --git a/themes/tiddlywiki/vanilla/sidebar-resizer.tid b/themes/tiddlywiki/vanilla/sidebar-resizer.tid index 64e55e133..932c5569c 100644 --- a/themes/tiddlywiki/vanilla/sidebar-resizer.tid +++ b/themes/tiddlywiki/vanilla/sidebar-resizer.tid @@ -2,7 +2,7 @@ title: $:/themes/tiddlywiki/vanilla/sidebar-resizer tags: [[$:/tags/Stylesheet]] code-body: yes -\import [function[get.base.functions.theme],{$:/theme}first[]!is[missing]] :else[function[get.base.functions.theme],{$:/theme}first[]is[shadow]] :else[[$:/themes/tiddlywiki/vanilla/functions]] +\import [function[get.base.functions.theme],first[]!is[missing]] :else[function[get.base.functions.theme],first[]is[shadow]] :else[[$:/themes/tiddlywiki/vanilla/functions]] \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock conditional