From aa5183a08e4cb60dcc25c8547e4ad34612f2ff21 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Mon, 14 Nov 2022 18:42:17 +0100 Subject: [PATCH] Add indentation to $:/TagManager (#6923) --- core/ui/TagManager.tid | 138 ++++++++++++++++++++++------------------- 1 file changed, 75 insertions(+), 63 deletions(-) diff --git a/core/ui/TagManager.tid b/core/ui/TagManager.tid index 3f972a157..e2d6d2fa8 100644 --- a/core/ui/TagManager.tid +++ b/core/ui/TagManager.tid @@ -3,89 +3,101 @@ icon: $:/core/images/tag-button color: #bbb \define lingo-base() $:/language/TagManager/ + \define iconEditorTab(type) \whitespace trim <$link to=""><> <$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]"> -<$link to={{!!title}}> -<$transclude/> <$view field="title"/> - + <$link to={{!!title}}> + <$transclude/> <$view field="title"/> + \end + \define iconEditor(title) \whitespace trim
-<$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}} -<$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} type="popup" position="belowleft" text="" default=""> -
-<$linkcatcher actions="""<$action-setfield $tiddler=<<__title__>> icon=<>/>"""> -<> -
-<> - -
- + <$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} class="tc-btn-invisible tc-btn-dropdown"> + {{$:/core/images/down-arrow}} + + <$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} type="popup" position="belowleft" text="" default=""> +
+ <$linkcatcher actions="""<$action-setfield $tiddler=<<__title__>> icon=<>/>"""> + <> +
+ <> + +
+
\end + \define toggleButton(state) \whitespace trim <$reveal stateTitle=<<__state__>> type="match" text="closed" default="closed"> -<$button setTitle=<<__state__>> setTo="open" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected"> -{{$:/core/images/info-button}} - + <$button setTitle=<<__state__>> setTo="open" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected"> + {{$:/core/images/info-button}} + <$reveal stateTitle=<<__state__>> type="match" text="open" default="closed"> -<$button setTitle=<<__state__>> setTo="closed" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected"> -{{$:/core/images/info-button}} - + <$button setTitle=<<__state__>> setTo="closed" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected"> + {{$:/core/images/info-button}} + \end + \whitespace trim - - - - - - - -<$list filter="[tags[]!is[system]sort[title]]"> - - - - - - - - - - - - - - - - - - - + + + + + + + + <$list filter="[tags[]!is[system]sort[title]]"> + + + + + + + + + + + + + + + + + + +
<><><><><>
<$edit-text field="color" tag="input" type="color"/>{{||$:/core/ui/TagTemplate}}<$count filter="[all[current]tagging[]]"/> -<$macrocall $name="iconEditor" title={{!!title}}/> - -<$macrocall $name="toggleButton" state={{{ [[$:/state/tag-manager/]addsuffix] }}} /> -
-<$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix] }}} type="match" text="open" default=""> - - - - - -
<><$edit-text field="color" tag="input" type="text" size="9"/>
<><$edit-text field="icon" tag="input" size="45"/>
- -
-{{$:/core/ui/UntaggedTemplate}} - -<$count filter="[untagged[]!is[system]] -[tags[]]"/> -
<><><><><>
<$edit-text field="color" tag="input" type="color"/>{{||$:/core/ui/TagTemplate}}<$count filter="[all[current]tagging[]]"/> + <$macrocall $name="iconEditor" title={{!!title}}/> + + <$macrocall $name="toggleButton" state={{{ [[$:/state/tag-manager/]addsuffix] }}} /> +
+ <$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix] }}} type="match" text="open" default=""> + + + + + + + + + + + +
<><$edit-text field="color" tag="input" type="text" size="9"/>
<><$edit-text field="icon" tag="input" size="45"/>
+ +
+ {{$:/core/ui/UntaggedTemplate}} + + <$count filter="[untagged[]!is[system]] -[tags[]]"/> +