From 1b5889f0170250d343534dbd90f2d6d8bf6216c2 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sun, 27 Oct 2024 09:37:04 +0100 Subject: [PATCH] only use sidebarresizer if theme explicitly sets option to show --- core/ui/PageTemplate/sidebar-resizer.tid | 2 +- core/wiki/functions/themes.tid | 2 + themes/tiddlywiki/centralised/options.multids | 3 + themes/tiddlywiki/example/options.multids | 3 + themes/tiddlywiki/heavier/options.multids | 3 + themes/tiddlywiki/readonly/options.multids | 3 + themes/tiddlywiki/seamless/options.multids | 3 + themes/tiddlywiki/snowwhite/options.multids | 3 + themes/tiddlywiki/starlight/options.multids | 3 + .../tiddlywiki/tight-heavier/options.multids | 3 + themes/tiddlywiki/tight/options.multids | 3 + themes/tiddlywiki/vanilla/sidebar-resizer.tid | 192 +++++++++--------- 12 files changed, 128 insertions(+), 95 deletions(-) create mode 100644 themes/tiddlywiki/centralised/options.multids create mode 100644 themes/tiddlywiki/example/options.multids create mode 100644 themes/tiddlywiki/heavier/options.multids create mode 100644 themes/tiddlywiki/readonly/options.multids create mode 100644 themes/tiddlywiki/seamless/options.multids create mode 100644 themes/tiddlywiki/snowwhite/options.multids create mode 100644 themes/tiddlywiki/starlight/options.multids create mode 100644 themes/tiddlywiki/tight-heavier/options.multids create mode 100644 themes/tiddlywiki/tight/options.multids diff --git a/core/ui/PageTemplate/sidebar-resizer.tid b/core/ui/PageTemplate/sidebar-resizer.tid index c94696d75..6da19fd9a 100644 --- a/core/ui/PageTemplate/sidebar-resizer.tid +++ b/core/ui/PageTemplate/sidebar-resizer.tid @@ -5,7 +5,7 @@ list-after: $:/core/ui/PageTemplate/story \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]] %> +<%if [match[show]] %> <$let tv-set-storywidth-storyright=<> diff --git a/core/wiki/functions/themes.tid b/core/wiki/functions/themes.tid index 8ecbfc97e..365a60874 100644 --- a/core/wiki/functions/themes.tid +++ b/core/wiki/functions/themes.tid @@ -45,6 +45,8 @@ tags: $:/tags/Global \function get.theme.option(option) [function[get.base.theme.option],,