mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-14 13:54:50 +00:00
b97336f171
Give the toolbar buttons for control panel, advanced search and tag manager the selected state when the corresponding tiddlers are open in the story river.
20 lines
860 B
Plaintext
20 lines
860 B
Plaintext
title: $:/core/ui/Buttons/control-panel
|
|
tags: $:/tags/PageControls
|
|
caption: {{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}}
|
|
description: {{$:/language/Buttons/ControlPanel/Hint}}
|
|
|
|
\define control-panel-button(class)
|
|
<$button to="$:/ControlPanel" tooltip={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class="""$(tv-config-toolbar-class)$ $class$""">
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/core/images/options-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/ControlPanel/Caption}}/></span>
|
|
</$list>
|
|
</$button>
|
|
\end
|
|
|
|
<$list filter="[list[$:/StoryList]] +[field:title[$:/ControlPanel]]" emptyMessage=<<control-panel-button>>>
|
|
<<control-panel-button "tc-selected">>
|
|
</$list>
|