mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-23 15:36:52 +00:00
90 lines
5.7 KiB
Plaintext
90 lines
5.7 KiB
Plaintext
title: $:/themes/tiddlywiki/vanilla/themetweaks
|
|
tags: $:/tags/ControlPanel/Appearance
|
|
caption: {{$:/language/ThemeTweaks/ThemeTweaks}}
|
|
|
|
\function get.theme-tweaks.metric() [get.theme<metric>]
|
|
|
|
\procedure get-theme-tweaks-lingo() <$transclude $variable="lingo" title=`Metrics/$(metricName)$`/>
|
|
|
|
\procedure get-theme-tweaks-lingo-hint() <$transclude $variable="lingo" title=`Metrics/$(metricName)$/Hint`/>
|
|
|
|
\define lingo-base() $:/language/ThemeTweaks/
|
|
|
|
\define replacement-text()
|
|
[img[$(imageTitle)$]]
|
|
\end
|
|
|
|
\define backgroundimage-dropdown()
|
|
<div class="tc-drop-down-wrapper">
|
|
<$set name="state" value=<<qualify "$:/state/popup/themetweaks/backgroundimage">>>
|
|
<$button popup=<<state>> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button>
|
|
<$reveal state=<<state>> type="popup" position="belowleft" text="" default="" class="tc-popup-keep">
|
|
<div class="tc-drop-down" style="text-align:center;">
|
|
<$macrocall $name="image-picker" actions="""
|
|
|
|
<$action-setfield
|
|
$tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimage"
|
|
$value=<<imageTitle>>
|
|
/>
|
|
|
|
<$action-deletetiddler $tiddler=<<state>>/>
|
|
|
|
"""/>
|
|
</div>
|
|
</$reveal>
|
|
</$set>
|
|
</div>
|
|
\end
|
|
|
|
\define backgroundimageattachment-dropdown()
|
|
<$select tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment" default="scroll">
|
|
<option value="scroll"><<lingo Settings/BackgroundImageAttachment/Scroll>></option>
|
|
<option value="fixed"><<lingo Settings/BackgroundImageAttachment/Fixed>></option>
|
|
</$select>
|
|
\end
|
|
|
|
\define backgroundimagesize-dropdown()
|
|
<$select tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize" default="scroll">
|
|
<option value="auto"><<lingo Settings/BackgroundImageSize/Auto>></option>
|
|
<option value="cover"><<lingo Settings/BackgroundImageSize/Cover>></option>
|
|
<option value="contain"><<lingo Settings/BackgroundImageSize/Contain>></option>
|
|
</$select>
|
|
\end
|
|
|
|
\whitespace trim
|
|
|
|
<<lingo ThemeTweaks/Hint>>
|
|
|
|
! <<lingo Options>>
|
|
|
|
|<$link to="$:/themes/tiddlywiki/vanilla/options/sidebarlayout"><<lingo Options/SidebarLayout>></$link> |<$select tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout"><option value="fixed-fluid"><<lingo Options/SidebarLayout/Fixed-Fluid>></option><option value="fluid-fixed"><<lingo Options/SidebarLayout/Fluid-Fixed>></option></$select> |
|
|
|<$link to="$:/themes/tiddlywiki/vanilla/options/stickytitles"><<lingo Options/StickyTitles>></$link><br>//<<lingo Options/StickyTitles/Hint>>// |<$select tiddler="$:/themes/tiddlywiki/vanilla/options/stickytitles"><option value="no">{{$:/language/No}}</option><option value="yes">{{$:/language/Yes}}</option></$select> |
|
|
|<$link to="$:/themes/tiddlywiki/vanilla/options/codewrapping"><<lingo Options/CodeWrapping>></$link> |<$select tiddler="$:/themes/tiddlywiki/vanilla/options/codewrapping"><option value="pre">{{$:/language/No}}</option><option value="pre-wrap">{{$:/language/Yes}}</option></$select> |
|
|
|<$link to={{{ [function[get.base.theme.option],<get.current.theme>,[sidebarposition]first[]] }}}><<lingo Options/SidebarPosition>></$link> |<$select tiddler={{{ [function[get.base.theme.option],<get.current.theme>,[sidebarposition]first[]] }}}><option value="right">{{$:/language/Right}}</option><option value="left">{{$:/language/Left}}</option></$select> |
|
|
|<$link to={{{ [function[get.base.theme.option],<get.current.theme>,[sidebarresizer]first[]] }}}><<lingo Options/SidebarResizer>></$link> |<$select tiddler={{{ [function[get.base.theme.option],<get.current.theme>,[sidebarresizer]first[]] }}}><option value="hide">{{$:/language/No}}</option><option value="show">{{$:/language/Yes}}</option></$select> |
|
|
|
|
! <<lingo Settings>>
|
|
|
|
|<$link to="$:/themes/tiddlywiki/vanilla/settings/fontfamily"><<lingo Settings/FontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/fontfamily" default="" tag="input"/> | |
|
|
|<$link to="$:/themes/tiddlywiki/vanilla/settings/codefontfamily"><<lingo Settings/CodeFontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/codefontfamily" default="" tag="input"/> | |
|
|
|<$link to="$:/themes/tiddlywiki/vanilla/settings/editorfontfamily"><<lingo Settings/EditorFontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/editorfontfamily" default="" tag="input"/> | |
|
|
|<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimage"><<lingo Settings/BackgroundImage>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" default="" tag="input"/> |<<backgroundimage-dropdown>> |
|
|
|<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment"><<lingo Settings/BackgroundImageAttachment>></$link> |<<backgroundimageattachment-dropdown>> | |
|
|
|<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize"><<lingo Settings/BackgroundImageSize>></$link> |<<backgroundimagesize-dropdown>> | |
|
|
|
|
! <<lingo Metrics>>
|
|
|
|
<<lingo Metrics/SidebarResizer/Hint>>
|
|
|
|
<table>
|
|
<tbody>
|
|
<$list filter="FontSize LineHeight BodyFontSize BodyLineHeight StoryLeft StoryTop StoryRight StoryWidth StoryMinWidth StoryPaddingLeft StoryPaddingRight TiddlerWidth SidebarBreakpoint SidebarWidth SidebarPadding SliderOpacity SliderOpacityHover PreviewSliderWidth :except[<get.theme.option sidebarlayout>match[fluid-fixed]then[StoryRight StoryWidth TiddlerWidth]enlist-input[]] :except[<get.theme.option sidebarlayout>match[fixed-fluid]then[SidebarWidth]]" variable="metricName" counter="counter">
|
|
<$set name="metric" value={{{ [<metricName>lowercase[]] }}}>
|
|
<tr class={{{ [<counter>remainder[2]match[0]then[oddRow]] :else[[evenRow]] }}}>
|
|
<td><$link to=<<get.theme-tweaks.metric>>><<get-theme-tweaks-lingo>></$link><br>//<<get-theme-tweaks-lingo-hint>>// </td><td><$edit-text tiddler=<<get.theme-tweaks.metric>> default="" tag="input"/> </td>
|
|
</tr>
|
|
</$set>
|
|
</$list>
|
|
</tbody>
|
|
</table>
|