mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-13 21:31:23 +00:00
First pass at selectable toolbar button styles
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.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
title: $:/core/buttonstyles/Borderless
|
||||
tags: $:/tags/ToolbarButtonStyle
|
||||
caption: {{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless}}
|
||||
|
||||
tc-btn-invisible
|
||||
@@ -0,0 +1,5 @@
|
||||
title: $:/core/buttonstyles/Boxed
|
||||
tags: $:/tags/ToolbarButtonStyle
|
||||
caption: {{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed}}
|
||||
|
||||
tc-btn-boxed
|
||||
@@ -0,0 +1,5 @@
|
||||
title: $:/core/buttonstyles/Rounded
|
||||
tags: $:/tags/ToolbarButtonStyle
|
||||
caption: {{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded}}
|
||||
|
||||
tc-btn-rounded
|
||||
@@ -0,0 +1,12 @@
|
||||
title: $:/core/ui/ControlPanel/Settings/ToolbarButtonStyle
|
||||
tags: $:/tags/ControlPanel/Settings
|
||||
caption: {{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption}}
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/
|
||||
<$link to="$:/config/Toolbar/ButtonClass"><<lingo "Hint">></$link>
|
||||
|
||||
<$select tiddler="$:/config/Toolbar/ButtonClass">
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]">
|
||||
<option value={{!!text}}>{{!!caption}}</option>
|
||||
</$list>
|
||||
</$select>
|
||||
Reference in New Issue
Block a user