From abad8dfd1bc512f1c4c2fe73ec0b0be75c13b53a Mon Sep 17 00:00:00 2001 From: pmario Date: Sat, 16 Mar 2024 17:36:36 +0100 Subject: [PATCH 1/2] sidebar-tools tab new syntax, fix formatting in story river --- core/ui/SideBar/Tools.tid | 45 +++++++++++++----------------- themes/tiddlywiki/vanilla/base.tid | 3 +- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/core/ui/SideBar/Tools.tid b/core/ui/SideBar/Tools.tid index 8a123b1c7..86e4a3a13 100644 --- a/core/ui/SideBar/Tools.tid +++ b/core/ui/SideBar/Tools.tid @@ -2,31 +2,26 @@ title: $:/core/ui/SideBar/Tools tags: $:/tags/SideBar caption: {{$:/language/SideBar/Tools/Caption}} -\define lingo-base() $:/language/ControlPanel/ -\define config-title() -$:/config/PageControlButtons/Visibility/$(listItem)$ -\end +\whitespace trim + +\procedure lingo-base() $:/language/ControlPanel/ +\function config-title() [[$:/config/PageControlButtons/Visibility/$(listItem)$]substitute[]] <> <> -<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$set name="tv-config-toolbar-class" value=""> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem"> - -
encodeuricomponent[]addprefix[tc-btn-]] }}}> - -<$checkbox tiddler=<> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<>/> <$transclude tiddler=<> field="description"/> - -
- - - - - - - - +<$let tv-config-toolbar-icons="yes" + tv-config-toolbar-text="yes" + tv-config-toolbar-class="" +> + <$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem"> +
encodeuricomponent[]addprefix[tc-btn-]] tc-sidebar-tools-item +[join[ ]] }}} + data-title=<> + > + <$checkbox tiddler=<> field="text" checked="show" unchecked="hide" default="show" class="tc-tiny-gap-right"/> + <$transclude tiddler=<>/> + + <$transclude tiddler=<> field="description"/> + +
+ + diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 1ca85c6a7..96d4e4ecd 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -910,7 +910,8 @@ button.tc-btn-invisible.tc-remove-tag-button { font-weight: normal; } -.tc-sidebar-header .tc-sidebar-lists p { +.tc-sidebar-header .tc-sidebar-lists p, +.tc-sidebar-tools-item { margin-top: 3px; margin-bottom: 3px; } From a546eb1f9201455a9c9713b70443a9457f2dcd48 Mon Sep 17 00:00:00 2001 From: pmario Date: Sat, 16 Mar 2024 18:06:06 +0100 Subject: [PATCH 2/2] use transclude widget new $parameter syntax --- core/ui/SideBar/Tools.tid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ui/SideBar/Tools.tid b/core/ui/SideBar/Tools.tid index 86e4a3a13..a285ade5a 100644 --- a/core/ui/SideBar/Tools.tid +++ b/core/ui/SideBar/Tools.tid @@ -18,9 +18,9 @@ caption: {{$:/language/SideBar/Tools/Caption}} data-title=<> > <$checkbox tiddler=<> field="text" checked="show" unchecked="hide" default="show" class="tc-tiny-gap-right"/> - <$transclude tiddler=<>/> + <$transclude $tiddler=<>/> - <$transclude tiddler=<> field="description"/> + <$transclude $tiddler=<> $field="description"/>