mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 20:10:03 +00:00
f223310d34
Part of #764
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
title: $:/core/ui/ViewTemplate/title
|
|
tags: $:/tags/ViewTemplate
|
|
|
|
\define title-styles()
|
|
fill:$(foregroundColor)$;
|
|
\end
|
|
\define config-title()
|
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
|
\end
|
|
<div class="tc-tiddler-title">
|
|
<h2 class="tc-titlebar">
|
|
<span class="tc-tiddler-controls">
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list>
|
|
</span>
|
|
<$set name="foregroundColor" value={{!!color}}>
|
|
<span style=<<title-styles>>>
|
|
<$transclude tiddler={{!!icon}}/>
|
|
</span>
|
|
</$set>
|
|
<$list filter="[all[current]removeprefix[$:/]]">
|
|
<span class="tc-title" title={{$:/language/SystemTiddler/Tooltip}}>
|
|
<span class="tc-system-title-prefix">$:/</span><$text text=<<currentTiddler>>/>
|
|
</span>
|
|
</$list>
|
|
<$list filter="[all[current]!prefix[$:/]]">
|
|
<span class="tc-title">
|
|
<$view field="title"/>
|
|
</span>
|
|
</$list>
|
|
</h2>
|
|
|
|
<$reveal type="nomatch" text="" default="" state=<<tiddlerInfoState>> class="tc-tiddler-info tc-popup" animate="yes" retain="yes">
|
|
|
|
<$transclude tiddler="$:/core/ui/TiddlerInfo"/>
|
|
|
|
</$reveal>
|
|
</div> |