This commit is contained in:
tw-FRed 2024-04-25 23:33:53 +08:00 committed by GitHub
commit baccc7c978
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 6 deletions

View File

@ -1,6 +1,6 @@
title: $:/plugins/tiddlywiki/menubar/config
tags: $:/tags/ControlPanel/Toolbars
caption: Menu Bar
tags: $:/tags/ControlPanel/Toolbars
title: $:/plugins/tiddlywiki/menubar/config
\define config-base() $:/config/plugins/menubar/MenuItems/Visibility/
@ -28,10 +28,20 @@ The breakpoint position between narrow and wide screens. Should include CSS unit
!! Contents Tag
The tag for the ~TableOfContents used in the Contents dropdown
The tag for the ~TableOfContents used in the Contents dropdown.
<$edit-text tiddler="$:/config/plugins/menubar/TableOfContents/Tag" default="" tag="input"/>
Caption of the Contents menu item (stored in the tag's //caption// field):
<$edit-text tiddler={{$:/config/plugins/menubar/TableOfContents/Tag}} field="caption" default="Contents" tag="input" size=50/>
Description of the contents menu item (stored in the tag's //description// field):
<$edit-text tiddler={{$:/config/plugins/menubar/TableOfContents/Tag}} field="description" default="Table of Contents" tag="input" size=50/>
!! Menu Bar Colours
To change the colour of the menu bar, define the colours `menubar-foreground` and `menubar-background` in the currently selected palette

View File

@ -1,8 +1,8 @@
title: $:/plugins/tiddlywiki/menubar/items/contents
caption: Contents
description: Table of Contents
caption: <$list filter="[{$:/config/plugins/menubar/TableOfContents/Tag}has[caption]]" emptyMessage="Contents"><$transclude $field="caption"/></$list>
description: <$text text={{{ [{$:/config/plugins/menubar/TableOfContents/Tag}get[description]else[Table of Contents]] }}}/>
is-dropdown: yes
tags: $:/tags/MenuBar
title: $:/plugins/tiddlywiki/menubar/items/contents
<div class="tc-table-of-contents">