mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
f3b5dc530e
There’s not much to making the toolbar button styles switchable: the change to the PageTemplate introduces a new configuration tiddler that controls the button styling. Most of this commit is the user interface for changing that setting, including the translatable text. I think this again demonstrates that we need to be very selective about which configuration options have a UI included in the core. Otherwise, a few dozen more of these settings will start to become a significant fraction of the core.
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
title: $:/core/ui/Buttons/more-tiddler-actions
|
|
tags: $:/tags/ViewToolbar
|
|
caption: {{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}
|
|
description: {{$:/language/Buttons/More/Hint}}
|
|
|
|
\define config-title()
|
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
|
\end
|
|
<$button popup=<<qualify "$:/state/popup/more">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/core/images/down-arrow}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/More/Caption}}/></span>
|
|
</$list>
|
|
</$button><$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes">
|
|
|
|
<div class="tc-drop-down">
|
|
|
|
<$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">
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]" variable="listItem">
|
|
|
|
<$reveal type="match" state=<<config-title>> text="hide">
|
|
|
|
<$transclude tiddler=<<listItem>> mode="inline"/>
|
|
|
|
</$reveal>
|
|
|
|
</$list>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</div>
|
|
|
|
</$reveal> |