mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-11 04:19:56 +00:00
eaf8558595
* Let PageControls buttons use v5.3.2 syntax * Rewrite buttons and actions * Omit whitespace & use function to avoid duplicating * Omit whitespace in conditional syntax * Define tf.get-tags function to avoid duplicated text substitution * Rewrite advanced search button * Add space in join operator * Rewrite buttons in plugins * Remove tf prefix in new-journal.tid * Remove tf prefix in new-tiddler.tid
24 lines
900 B
Plaintext
24 lines
900 B
Plaintext
title: $:/core/ui/Buttons/theme
|
|
tags: $:/tags/PageControls
|
|
caption: {{$:/core/images/theme-button}} {{$:/language/Buttons/Theme/Caption}}
|
|
description: {{$:/language/Buttons/Theme/Hint}}
|
|
|
|
\whitespace trim
|
|
<span class="tc-popup-keep">
|
|
<$button popup=<<qualify "$:/state/popup/theme">> tooltip={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
|
<%if [<tv-config-toolbar-icons>match[yes]] %>
|
|
{{$:/core/images/theme-button}}
|
|
<%endif%>
|
|
<%if [<tv-config-toolbar-text>match[yes]] %>
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Theme/Caption}}/></span>
|
|
<%endif%>
|
|
</$button>
|
|
</span>
|
|
<$reveal state=<<qualify "$:/state/popup/theme">> type="popup" position="below" animate="yes">
|
|
<div class="tc-drop-down">
|
|
<$linkcatcher to="$:/theme">
|
|
{{$:/snippets/themeswitcher}}
|
|
</$linkcatcher>
|
|
</div>
|
|
</$reveal>
|