mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 10:30:28 +00:00
c5ea6628f5
Shout out to the TiddlySpot tiddler macro for being completely broken, but also being completely unused, so no one noticed.
16 lines
611 B
Plaintext
16 lines
611 B
Plaintext
title: $:/core/ui/EditorToolbar/paint
|
|
tags: $:/tags/EditorToolbar
|
|
icon: $:/core/images/paint
|
|
caption: {{$:/language/Buttons/Paint/Caption}}
|
|
description: {{$:/language/Buttons/Paint/Hint}}
|
|
condition: [<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]
|
|
dropdown: $:/core/ui/EditorToolbar/paint-dropdown
|
|
|
|
\define toolbar-paint()
|
|
<div style="display: inline-block; vertical-align: middle; background-color: $(colour-picker-value)$; width: 1em; height: 1em; border-radius: 50%;"/>
|
|
\end
|
|
\whitespace trim
|
|
<$set name="colour-picker-value" value={{$:/config/BitmapEditor/Colour}}>
|
|
<<toolbar-paint>>
|
|
</$set>
|