mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Remove image-buttons from type image/svg+xml and add editor-height and stamp button (#5042)
* Add stamp button to image/svg+xml * Add editor-height Button to image/svg+xml * Remove rotate-left button from image/svg+xml * Remove size Button from image/svg+xml * Remove paint Button from image/svg+xml * Remove line-width Button from image/svg+xml * Remove clear Button from image/svg+xml * Remove opacity Button from image/svg+xml
This commit is contained in:
parent
f087a62c99
commit
bb6fee4e1c
@ -3,6 +3,6 @@ tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/erase
|
||||
caption: {{$:/language/Buttons/Clear/Caption}}
|
||||
description: {{$:/language/Buttons/Clear/Hint}}
|
||||
condition: [<targetTiddler>is[image]]
|
||||
condition: [<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]
|
||||
dropdown: $:/core/ui/EditorToolbar/clear-dropdown
|
||||
|
||||
|
@ -4,7 +4,7 @@ icon: $:/core/images/fixed-height
|
||||
custom-icon: yes
|
||||
caption: {{$:/language/Buttons/EditorHeight/Caption}}
|
||||
description: {{$:/language/Buttons/EditorHeight/Hint}}
|
||||
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] +[first[]]
|
||||
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] [<targetTiddler>get[type]match[image/svg+xml]] +[first[]]
|
||||
dropdown: $:/core/ui/EditorToolbar/editor-height-dropdown
|
||||
|
||||
<$reveal tag="span" state="$:/config/TextEditor/EditorHeight/Mode" type="match" text="fixed">
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/line-width
|
||||
caption: {{$:/language/Buttons/LineWidth/Caption}}
|
||||
description: {{$:/language/Buttons/LineWidth/Hint}}
|
||||
condition: [<targetTiddler>is[image]]
|
||||
condition: [<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]
|
||||
dropdown: $:/core/ui/EditorToolbar/line-width-dropdown
|
||||
|
||||
<$text text={{$:/config/BitmapEditor/LineWidth}}/>
|
||||
<$text text={{$:/config/BitmapEditor/LineWidth}}/>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/opacity
|
||||
caption: {{$:/language/Buttons/Opacity/Caption}}
|
||||
description: {{$:/language/Buttons/Opacity/Hint}}
|
||||
condition: [<targetTiddler>is[image]]
|
||||
condition: [<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]
|
||||
dropdown: $:/core/ui/EditorToolbar/opacity-dropdown
|
||||
|
||||
<$text text={{$:/config/BitmapEditor/Opacity}}/>
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/paint
|
||||
caption: {{$:/language/Buttons/Paint/Caption}}
|
||||
description: {{$:/language/Buttons/Paint/Hint}}
|
||||
condition: [<targetTiddler>is[image]]
|
||||
condition: [<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]
|
||||
dropdown: $:/core/ui/EditorToolbar/paint-dropdown
|
||||
|
||||
\define toolbar-paint()
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/rotate-left
|
||||
caption: {{$:/language/Buttons/RotateLeft/Caption}}
|
||||
description: {{$:/language/Buttons/RotateLeft/Hint}}
|
||||
condition: [<targetTiddler>is[image]]
|
||||
condition: [<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-bitmap-operation"
|
||||
|
@ -3,6 +3,6 @@ tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/size
|
||||
caption: {{$:/language/Buttons/Size/Caption}}
|
||||
description: {{$:/language/Buttons/Size/Hint}}
|
||||
condition: [<targetTiddler>is[image]]
|
||||
condition: [<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]
|
||||
dropdown: $:/core/ui/EditorToolbar/size-dropdown
|
||||
|
||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/stamp
|
||||
caption: {{$:/language/Buttons/Stamp/Caption}}
|
||||
description: {{$:/language/Buttons/Stamp/Hint}}
|
||||
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] +[first[]]
|
||||
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] [<targetTiddler>get[type]match[image/svg+xml]] +[first[]]
|
||||
shortcuts: ((stamp))
|
||||
dropdown: $:/core/ui/EditorToolbar/stamp-dropdown
|
||||
text:
|
||||
|
Loading…
Reference in New Issue
Block a user