mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-06 18:16:18 +00:00
bc9b67cbc3
Ideally, we’d also rebase the headings within tiddlers so that `! Heading` would be an H3. Hopefully we’ll do that later.
34 lines
1006 B
Plaintext
34 lines
1006 B
Plaintext
title: $:/core/ui/ViewTemplate/title
|
|
tags: $:/tags/ViewTemplate
|
|
|
|
\define title-styles()
|
|
fill:$(foregroundColor)$;
|
|
\end
|
|
<div class="tw-tiddler-title">
|
|
<h2 class="titlebar">
|
|
<span class="tw-tiddler-controls">
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
|
|
</span>
|
|
<$set name="foregroundColor" value={{!!color}}>
|
|
<span style=<<title-styles>>>
|
|
<$transclude tiddler={{!!icon}}/>
|
|
</span>
|
|
</$set>
|
|
<$list filter="[all[current]removeprefix[$:/]]">
|
|
<span class="title" title={{$:/language/SystemTiddler/Tooltip}}>
|
|
<span class="tw-system-title-prefix">$:/</span><$text text=<<currentTiddler>>/>
|
|
</span>
|
|
</$list>
|
|
<$list filter="[all[current]!prefix[$:/]]">
|
|
<span class="title">
|
|
<$view field="title"/>
|
|
</span>
|
|
</$list>
|
|
</h2>
|
|
|
|
<$reveal type="nomatch" text="" default="" state=<<tiddlerInfoState>> class="tw-tiddler-info tw-popup" animate="yes" retain="yes">
|
|
|
|
<$transclude tiddler="$:/core/ui/TiddlerInfo"/>
|
|
|
|
</$reveal>
|
|
</div> |