1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-10 20:09:57 +00:00

Update toolbar buttons to use v5.3.2 syntax (#8584)

This commit is contained in:
Leilei332 2024-09-06 01:40:18 +08:00 committed by GitHub
parent d6308f1c74
commit 9a3f1d25e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 113 additions and 155 deletions

View File

@ -5,10 +5,10 @@ description: {{$:/language/Buttons/Cancel/Hint}}
\whitespace trim \whitespace trim
<$button actions=<<cancel-delete-tiddler-actions "cancel">> tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tv-config-toolbar-class>>> <$button actions=<<cancel-delete-tiddler-actions "cancel">> tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/cancel-button}} {{$:/core/images/cancel-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span> <span class="tc-btn-text"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span>
</$list> <%endif%>
</$button> </$button>

View File

@ -5,10 +5,10 @@ description: {{$:/language/Buttons/Delete/Hint}}
\whitespace trim \whitespace trim
<$button actions=<<cancel-delete-tiddler-actions "delete">> tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tv-config-toolbar-class>>> <$button actions=<<cancel-delete-tiddler-actions "delete">> tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/delete-button}} {{$:/core/images/delete-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Delete/Caption}}/></span> <span class="tc-btn-text"><$text text={{$:/language/Buttons/Delete/Caption}}/></span>
</$list> <%endif%>
</$button> </$button>

View File

@ -4,8 +4,7 @@ caption: {{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}
description: {{$:/language/Buttons/Save/Hint}} description: {{$:/language/Buttons/Save/Hint}}
\whitespace trim \whitespace trim
\define save-tiddler-button() \procedure save-tiddler-button()
\whitespace trim
<$fieldmangler> <$fieldmangler>
<$button <$button
tooltip={{$:/language/Buttons/Save/Hint}} tooltip={{$:/language/Buttons/Save/Hint}}
@ -13,12 +12,12 @@ description: {{$:/language/Buttons/Save/Hint}}
class=<<tv-config-toolbar-class>> class=<<tv-config-toolbar-class>>
> >
<<save-tiddler-actions>> <<save-tiddler-actions>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/done-button}} {{$:/core/images/done-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span> <span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span>
</$list> <%endif%>
</$button> </$button>
</$fieldmangler> </$fieldmangler>
\end \end

View File

@ -5,12 +5,12 @@ description: {{$:/language/Buttons/Clone/Hint}}
\whitespace trim \whitespace trim
<$button message="tm-new-tiddler" param=<<currentTiddler>> tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tv-config-toolbar-class>>> <$button message="tm-new-tiddler" param=<<currentTiddler>> tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/clone-button}} {{$:/core/images/clone-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/Clone/Caption}}/> <$text text={{$:/language/Buttons/Clone/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>

View File

@ -5,12 +5,12 @@ description: {{$:/language/Buttons/CloseOthers/Hint}}
\whitespace trim \whitespace trim
<$button message="tm-close-other-tiddlers" param=<<currentTiddler>> tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tv-config-toolbar-class>>> <$button message="tm-close-other-tiddlers" param=<<currentTiddler>> tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/close-others-button}} {{$:/core/images/close-others-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/CloseOthers/Caption}}/> <$text text={{$:/language/Buttons/CloseOthers/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>

View File

@ -5,12 +5,12 @@ description: {{$:/language/Buttons/Close/Hint}}
\whitespace trim \whitespace trim
<$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>> <$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/close-button}} {{$:/core/images/close-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/Close/Caption}}/> <$text text={{$:/language/Buttons/Close/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>

View File

@ -5,12 +5,12 @@ description: {{$:/language/Buttons/Edit/Hint}}
\whitespace trim \whitespace trim
<$button message="tm-edit-tiddler" tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>>> <$button message="tm-edit-tiddler" tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/edit-button}} {{$:/core/images/edit-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/Edit/Caption}}/> <$text text={{$:/language/Buttons/Edit/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>

View File

@ -3,7 +3,4 @@ tags: $:/tags/ViewToolbar
caption: {{$:/core/images/export-button}} {{$:/language/Buttons/ExportTiddler/Caption}} caption: {{$:/core/images/export-button}} {{$:/language/Buttons/ExportTiddler/Caption}}
description: {{$:/language/Buttons/ExportTiddler/Hint}} description: {{$:/language/Buttons/ExportTiddler/Hint}}
\define makeExportFilter() <$transclude $variable="exportButton" exportFilter=`[[$(currentTiddler)$]]` lingoBase="$:/language/Buttons/ExportTiddler/" baseFilename=<<currentTiddler>>/>
[[$(currentTiddler)$]]
\end
<$macrocall $name="exportButton" exportFilter=<<makeExportFilter>> lingoBase="$:/language/Buttons/ExportTiddler/" baseFilename=<<currentTiddler>>/>

View File

@ -6,12 +6,12 @@ description: {{$:/language/Buttons/FoldOthers/Hint}}
\whitespace trim \whitespace trim
<$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=<<tv-config-toolbar-class>>> <$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-fold-other-tiddlers" $param=<<currentTiddler>> foldedStatePrefix="$:/state/folded/"/> <$action-sendmessage $message="tm-fold-other-tiddlers" $param=<<currentTiddler>> foldedStatePrefix="$:/state/folded/"/>
<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/fold-others-button}} {{$:/core/images/fold-others-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/FoldOthers/Caption}}/> <$text text={{$:/language/Buttons/FoldOthers/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>

View File

@ -7,26 +7,26 @@ description: {{$:/language/Buttons/Fold/Hint}}
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" default="show"> <$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" default="show">
<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<<tv-config-toolbar-class>>> <$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/> <$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/fold-button}} {{$:/core/images/fold-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/Fold/Caption}}/> <$text text={{$:/language/Buttons/Fold/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>
</$reveal> </$reveal>
<$reveal type="match" stateTitle=<<folded-state>> text="hide" default="show"> <$reveal type="match" stateTitle=<<folded-state>> text="hide" default="show">
<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<<tv-config-toolbar-class>>> <$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/> <$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/unfold-button}} {{$:/core/images/unfold-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/Unfold/Caption}}/> <$text text={{$:/language/Buttons/Unfold/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>
</$reveal> </$reveal>

View File

@ -4,31 +4,30 @@ caption: {{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}
description: {{$:/language/Buttons/Info/Hint}} description: {{$:/language/Buttons/Info/Hint}}
\whitespace trim \whitespace trim
\define button-content() \procedure button-content()
\whitespace trim <%if [<tv-config-toolbar-icons>match[yes]] %>
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/core/images/info-button}} {{$:/core/images/info-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/Info/Caption}}/> <$text text={{$:/language/Buttons/Info/Caption}}/>
</span> </span>
</$list> <%endif%>
\end \end
<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="popup"> <$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="popup">
<$button popup=<<tiddlerInfoState>> tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> <$button popup=<<tiddlerInfoState>> tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
<$macrocall $name="button-content" mode="inline"/> <$transclude $variable="button-content" $mode="inline"/>
</$button> </$button>
</$reveal> </$reveal>
<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky"> <$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky">
<$reveal state=<<tiddlerInfoState>> type="match" text="" default=""> <$reveal state=<<tiddlerInfoState>> type="match" text="" default="">
<$button set=<<tiddlerInfoState>> setTo="yes" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> <$button set=<<tiddlerInfoState>> setTo="yes" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
<$macrocall $name="button-content" mode="inline"/> <$transclude $variable="button-content" $mode="inline"/>
</$button> </$button>
</$reveal> </$reveal>
<$reveal state=<<tiddlerInfoState>> type="nomatch" text="" default=""> <$reveal state=<<tiddlerInfoState>> type="nomatch" text="" default="">
<$button set=<<tiddlerInfoState>> setTo="" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> <$button set=<<tiddlerInfoState>> setTo="" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
<$macrocall $name="button-content" mode="inline"/> <$transclude $variable="button-content" $mode="inline"/>
</$button> </$button>
</$reveal> </$reveal>
</$reveal> </$reveal>

View File

@ -4,7 +4,6 @@ caption: {{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}
description: {{$:/language/Buttons/More/Hint}} description: {{$:/language/Buttons/More/Hint}}
\whitespace trim \whitespace trim
\define config-title() $:/config/ViewToolbarButtons/Visibility/$(listItem)$
<$button popup=<<qualify "$:/state/popup/more">> <$button popup=<<qualify "$:/state/popup/more">>
tooltip={{$:/language/Buttons/More/Hint}} tooltip={{$:/language/Buttons/More/Hint}}
@ -12,24 +11,22 @@ description: {{$:/language/Buttons/More/Hint}}
class=<<tv-config-toolbar-class>> class=<<tv-config-toolbar-class>>
selectedClass="tc-selected" selectedClass="tc-selected"
> >
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/down-arrow}} {{$:/core/images/down-arrow}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/More/Caption}}/> <$text text={{$:/language/Buttons/More/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>
<$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="belowleft" animate="yes"> <$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="belowleft" animate="yes">
<div class="tc-drop-down"> <div class="tc-drop-down">
<$set name="tv-config-toolbar-icons" value="yes"> <$let tv-config-toolbar-icons="yes" tv-config-toolbar-text="yes" tv-config-toolbar-class="tc-btn-invisible">
<$set name="tv-config-toolbar-text" value="yes">
<$set name="tv-config-toolbar-class" value="tc-btn-invisible">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]" <$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]"
variable="listItem" variable="listItem"
> >
<$reveal type="match" state=<<config-title>> text="hide"> <$reveal type="match" state=`$:/config/ViewToolbarButtons/Visibility/$(listItem)$` text="hide">
<$set name="tv-config-toolbar-class" <$set name="tv-config-toolbar-class"
filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]"
> >
@ -37,8 +34,6 @@ description: {{$:/language/Buttons/More/Hint}}
</$set> </$set>
</$reveal> </$reveal>
</$list> </$list>
</$set> </$let>
</$set>
</$set>
</div> </div>
</$reveal> </$reveal>

View File

@ -4,23 +4,21 @@ caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Captio
description: {{$:/language/Buttons/NewHere/Hint}} description: {{$:/language/Buttons/NewHere/Hint}}
\whitespace trim \whitespace trim
\define newHereActions() \procedure newHereActions()
\whitespace trim
<$set name="tags" filter="[<currentTiddler>] [enlist{$:/config/NewTiddler/Tags}]"> <$set name="tags" filter="[<currentTiddler>] [enlist{$:/config/NewTiddler/Tags}]">
<$action-sendmessage $message="tm-new-tiddler" tags=<<tags>>/> <$action-sendmessage $message="tm-new-tiddler" tags=<<tags>>/>
</$set> </$set>
\end \end
\define newHereButton() \procedure newHereButton()
\whitespace trim
<$button actions=<<newHereActions>> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>> <$button actions=<<newHereActions>> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/new-here-button}} {{$:/core/images/new-here-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/NewHere/Caption}}/> <$text text={{$:/language/Buttons/NewHere/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>
\end \end
<<newHereButton>> <<newHereButton>>

View File

@ -4,29 +4,21 @@ caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalH
description: {{$:/language/Buttons/NewJournalHere/Hint}} description: {{$:/language/Buttons/NewJournalHere/Hint}}
\whitespace trim \whitespace trim
\define journalButtonTags() \procedure journalButton()
[[$(currentTiddlerTag)$]] $(journalTags)$
\end
\define journalButton()
\whitespace trim
<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>> <$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>>
<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<<journalTitleTemplate>>/>"""> <$wikify name="journalTitle" text="""<$transclude $variable="now" format=<<journalTitleTemplate>>/>""">
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalButtonTags>>/> <$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=`[[$(currentTiddlerTag)$]] $(journalTags)$`/>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/new-journal-button}} {{$:/core/images/new-journal-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/> <$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>
</span> </span>
</$list> <%endif%>
</$wikify> </$wikify>
</$button> </$button>
\end \end
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}> <$let journalTitleTemplate={{$:/config/NewJournal/Title}} journalTags={{$:/config/NewJournal/Tags}} currentTiddlerTag=<<currentTiddler>>>
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
<$set name="currentTiddlerTag" value=<<currentTiddler>>>
<<journalButton>> <<journalButton>>
</$set> </$let>
</$set>
</$set>

View File

@ -5,12 +5,12 @@ description: {{$:/language/Buttons/OpenWindow/Hint}}
\whitespace trim \whitespace trim
<$button message="tm-open-window" tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=<<tv-config-toolbar-class>>> <$button message="tm-open-window" tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/open-window}} {{$:/core/images/open-window}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/OpenWindow/Caption}}/> <$text text={{$:/language/Buttons/OpenWindow/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>

View File

@ -5,12 +5,12 @@ description: {{$:/language/Buttons/Permalink/Hint}}
\whitespace trim \whitespace trim
<$button message="tm-permalink" tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tv-config-toolbar-class>>> <$button message="tm-permalink" tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/permalink-button}} {{$:/core/images/permalink-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/Permalink/Caption}}/> <$text text={{$:/language/Buttons/Permalink/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>

View File

@ -5,12 +5,12 @@ description: {{$:/language/Buttons/Permaview/Hint}}
\whitespace trim \whitespace trim
<$button message="tm-permaview" tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tv-config-toolbar-class>>> <$button message="tm-permaview" tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/core/images/permaview-button}} {{$:/core/images/permaview-button}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/language/Buttons/Permaview/Caption}}/> <$text text={{$:/language/Buttons/Permaview/Caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>

View File

@ -8,50 +8,28 @@ description: Generate QR code for this tiddler
\whitespace trim \whitespace trim
<span class="tc-popup-keep"> <span class="tc-popup-keep">
<$button popup=<<qualify "$:/state/popup/qrcode">> tooltip={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!description}} aria-label={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}} class=<<tv-config-toolbar-class>> class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> <$button popup=<<qualify "$:/state/popup/qrcode">> tooltip={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!description}} aria-label={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}} class=<<tv-config-toolbar-class>> class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/plugins/tiddlywiki/qrcode/icon}} {{$:/plugins/tiddlywiki/qrcode/icon}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"> <span class="tc-btn-text">
<$text text={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}}/> <$text text={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}}/>
</span> </span>
</$list> <%endif%>
</$button> </$button>
</span> </span>
<$reveal state=<<qualify "$:/state/popup/qrcode">> type="popup" position="below" animate="yes"> <$reveal state=<<qualify "$:/state/popup/qrcode">> type="popup" position="below" animate="yes">
<div class="tc-drop-down"> <div class="tc-drop-down">
{{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton||description}} {{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton||description}}
<$set name="tv-config-toolbar-icons" value="yes"> <$let tv-config-toolbar-icons="yes" tv-config-toolbar-text="yes" tv-config-toolbar-class="tc-btn-invisible" targetTiddler=<<currentTiddler>>>
<$set name="tv-config-toolbar-text" value="yes">
<$set name="tv-config-toolbar-class" value="tc-btn-invisible">
<$set name="targetTiddler" value=<<currentTiddler>>>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbarButton/QRcode]!has[draft.of]]"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbarButton/QRcode]!has[draft.of]]">
<$button popup=<<qualify "$:/state/popup/qrcode/type">> class="tc-btn-invisible" selectedClass="tc-selected"> <$button popup=<<qualify "$:/state/popup/qrcode/type">> class="tc-btn-invisible" selectedClass="tc-selected">
<$action-sendmessage $message="tm-modal" $param=<<currentTiddler>> currentTiddler=<<targetTiddler>>/> <$action-sendmessage $message="tm-modal" $param=<<currentTiddler>> currentTiddler=<<targetTiddler>>/>
<$transclude field="caption" mode="inline"/> <$transclude field="caption" mode="inline"/>
</$button> </$button>
</$list> </$list>
</$let>
</$set>
</$set>
</$set>
</$set>
</div> </div>
</$reveal> </$reveal>

View File

@ -6,18 +6,18 @@ description: Slice this text tiddler by headings and lists
\whitespace trim \whitespace trim
\define hint() \procedure hint()
Slice this text tiddler into chunks Slice this text tiddler into chunks
\end \end
<$list filter="[<currentTiddler>!is[image]!is[binary]]" variable="ignore"> <$list filter="[<currentTiddler>!is[image]!is[binary]]" variable="ignore">
<$button tooltip=<<hint>> aria-label=<<hint>> class=<<tv-config-toolbar-class>>> <$button tooltip=<<hint>> aria-label=<<hint>> class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-modal" $param="$:/plugins/tiddlywiki/text-slicer/ui/slice-modal" currentTiddler=<<currentTiddler>>/> <$action-sendmessage $message="tm-modal" $param="$:/plugins/tiddlywiki/text-slicer/ui/slice-modal" currentTiddler=<<currentTiddler>>/>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}} {{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}}
</$list> <%endif%>
<$list filter="[<tv-config-toolbar-text>match[yes]]"> <%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text">Slice tiddler</span> <span class="tc-btn-text">Slice tiddler</span>
</$list> <%endif%>
</$button> </$button>
</$list> </$list>