mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-20 14:45:59 +00:00
![Jermolene](/assets/img/avatar_default.png)
Previously, the standard toolbar buttons exhibited uneven spacing due to the vestigial whitespace.
33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
title: $:/core/ui/Buttons/info
|
|
tags: $:/tags/ViewToolbar
|
|
caption: {{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}
|
|
description: {{$:/language/Buttons/Info/Hint}}
|
|
|
|
\whitespace trim
|
|
\define button-content()
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/core/images/info-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text">
|
|
<$text text={{$:/language/Buttons/Info/Caption}}/>
|
|
</span>
|
|
</$list>
|
|
\end
|
|
<$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">
|
|
<$macrocall $name="button-content" mode="inline"/>
|
|
</$button>
|
|
</$reveal>
|
|
<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky">
|
|
<$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">
|
|
<$macrocall $name="button-content" mode="inline"/>
|
|
</$button>
|
|
</$reveal>
|
|
<$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">
|
|
<$macrocall $name="button-content" mode="inline"/>
|
|
</$button>
|
|
</$reveal>
|
|
</$reveal> |