mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 21:39:57 +00:00
f59809e9a4
Previously, the standard toolbar buttons exhibited uneven spacing due to the vestigial whitespace.
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
title: $:/plugins/tiddlywiki/qrcode/ViewToolbarButton
|
|
tags: $:/tags/ViewToolbar
|
|
list-before: $:/core/ui/Buttons/close
|
|
caption: {{$:/plugins/tiddlywiki/qrcode/icon}}
|
|
short-caption: QR code
|
|
description: Generate QR code for this tiddler
|
|
|
|
\whitespace trim
|
|
<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">
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/plugins/tiddlywiki/qrcode/icon}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text">
|
|
<$text text=" "/>
|
|
<$text text={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}}/>
|
|
</span>
|
|
</$list>
|
|
</$button>
|
|
</span>
|
|
<$reveal state=<<qualify "$:/state/popup/qrcode">> type="popup" position="below" animate="yes">
|
|
|
|
<div class="tc-drop-down">
|
|
|
|
{{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton||description}}
|
|
|
|
<$set name="tv-config-toolbar-icons" value="yes">
|
|
|
|
<$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]]">
|
|
|
|
<$button popup=<<qualify "$:/state/popup/qrcode/type">> class="tc-btn-invisible" selectedClass="tc-selected">
|
|
|
|
<$action-sendmessage $message="tm-modal" $param=<<currentTiddler>> currentTiddler=<<targetTiddler>>/>
|
|
|
|
<$transclude field="caption" mode="inline"/>
|
|
|
|
</$button>
|
|
|
|
</$list>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</div>
|
|
|
|
</$reveal>
|