mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 10:34:53 +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.
56 lines
1.2 KiB
Plaintext
56 lines
1.2 KiB
Plaintext
title: $:/core/ui/PageTemplate
|
|
|
|
\define containerClasses()
|
|
tc-page-container tc-page-view-$(themeTitle)$ tc-language-$(languageTitle)$
|
|
\end
|
|
|
|
<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">
|
|
|
|
<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}>
|
|
|
|
<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}>
|
|
|
|
<$set name="tv-config-toolbar-class" value={{$:/config/Toolbar/ButtonClass}}>
|
|
|
|
<$set name="themeTitle" value={{$:/view}}>
|
|
|
|
<$set name="currentTiddler" value={{$:/language}}>
|
|
|
|
<$set name="languageTitle" value={{!!name}}>
|
|
|
|
<$set name="currentTiddler" value="">
|
|
|
|
<div class=<<containerClasses>>>
|
|
|
|
<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}}>
|
|
|
|
<$dropzone>
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]" variable="listItem">
|
|
|
|
<$transclude tiddler=<<listItem>>/>
|
|
|
|
</$list>
|
|
|
|
</$dropzone>
|
|
|
|
</$navigator>
|
|
|
|
</div>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$importvariables>
|