mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-13 11:40:27 +00:00
2adf09129d
Tada!
43 lines
955 B
Plaintext
43 lines
955 B
Plaintext
title: $:/core/ui/EditorToolbar/line-width-dropdown
|
|
|
|
\define lingo-base() $:/language/Buttons/LineWidth/
|
|
|
|
\define toolbar-line-width-inner()
|
|
<$button tag="a" tooltip="""$(line-width)$""">
|
|
|
|
<$action-setfield
|
|
$tiddler="$:/config/BitmapEditor/LineWidth"
|
|
$value="$(line-width)$"
|
|
/>
|
|
|
|
<$action-deletetiddler
|
|
$tiddler=<<dropdown-state>>
|
|
/>
|
|
|
|
<div style="display: inline-block; margin: 4px calc(80px - $(line-width)$); background-color: #000; width: calc(100px + $(line-width)$ * 2); height: $(line-width)$; border-radius: 120px; vertical-align: middle;"/>
|
|
|
|
<span style="margin-left: 8px;">
|
|
|
|
<$text text="""$(line-width)$"""/>
|
|
|
|
<$reveal state="$:/config/BitmapEditor/LineWidth" type="match" text="""$(line-width)$""" tag="span">
|
|
|
|
<$entity entity=" "/>
|
|
|
|
<$entity entity="✓"/>
|
|
|
|
</$reveal>
|
|
|
|
</span>
|
|
|
|
</$button>
|
|
\end
|
|
|
|
''<<lingo Hint>>''
|
|
|
|
<$list filter={{$:/config/BitmapEditor/LineWidths}} variable="line-width">
|
|
|
|
<<toolbar-line-width-inner>>
|
|
|
|
</$list>
|