mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-25 08:26:52 +00:00
make showing the sidebar resizer configurable and hide by default
This commit is contained in:
parent
e217b1a3ba
commit
a94d496172
@ -21,6 +21,7 @@ Settings/BackgroundImageSize: Page background image size
|
|||||||
Settings/BackgroundImageSize/Auto: Auto
|
Settings/BackgroundImageSize/Auto: Auto
|
||||||
Settings/BackgroundImageSize/Cover: Cover
|
Settings/BackgroundImageSize/Cover: Cover
|
||||||
Settings/BackgroundImageSize/Contain: Contain
|
Settings/BackgroundImageSize/Contain: Contain
|
||||||
|
Settings/SidebarResizer: Sidebar resizer
|
||||||
Metrics: Sizes
|
Metrics: Sizes
|
||||||
Metrics/FontSize: Font size
|
Metrics/FontSize: Font size
|
||||||
Metrics/LineHeight: Line height
|
Metrics/LineHeight: Line height
|
||||||
|
@ -5,6 +5,8 @@ list-after: $:/core/ui/PageTemplate/story
|
|||||||
\import $:/core/macros/sidebar-resizer
|
\import $:/core/macros/sidebar-resizer
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
|
|
||||||
|
<%if [{$:/themes/tiddlywiki/vanilla/options/sidebarresizer}match[show]] %>
|
||||||
|
|
||||||
<$eventcatcher tag="div" class="tc-sidebar-resizer-pointerdown-eventcatcher" selector=".tc-sidebar-resizer" matchSelector=".tc-sidebar-resizer" $pointerdown=<<sidebar-resizer-pointerdown-actions>> $pointerup=<<sidebar-resizer-pointercancel-actions>>>
|
<$eventcatcher tag="div" class="tc-sidebar-resizer-pointerdown-eventcatcher" selector=".tc-sidebar-resizer" matchSelector=".tc-sidebar-resizer" $pointerdown=<<sidebar-resizer-pointerdown-actions>> $pointerup=<<sidebar-resizer-pointercancel-actions>>>
|
||||||
|
|
||||||
<%if [{$:/state/sidebar}!match[no]] %>
|
<%if [{$:/state/sidebar}!match[no]] %>
|
||||||
@ -24,3 +26,5 @@ list-after: $:/core/ui/PageTemplate/story
|
|||||||
<% endif %>
|
<% endif %>
|
||||||
|
|
||||||
</$eventcatcher>
|
</$eventcatcher>
|
||||||
|
|
||||||
|
<% endif %>
|
||||||
|
@ -54,6 +54,7 @@ caption: {{$:/language/ThemeTweaks/ThemeTweaks}}
|
|||||||
|<$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/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/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="$:/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="$:/themes/tiddlywiki/vanilla/options/sidebarresizer"><<lingo Settings/SidebarResizer>></$link> |<$select tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarresizer"><option value="hide">{{$:/language/No}}</option><option value="show">{{$:/language/Yes}}</option></$select> |
|
||||||
|
|
||||||
! <<lingo Settings>>
|
! <<lingo Settings>>
|
||||||
|
|
||||||
|
@ -2,4 +2,5 @@ title: $:/themes/tiddlywiki/vanilla/options/
|
|||||||
|
|
||||||
stickytitles: no
|
stickytitles: no
|
||||||
sidebarlayout: fixed-fluid
|
sidebarlayout: fixed-fluid
|
||||||
|
sidebarresizer: hide
|
||||||
codewrapping: pre-wrap
|
codewrapping: pre-wrap
|
||||||
|
Loading…
Reference in New Issue
Block a user