1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

add new-child core image

This commit is contained in:
pmario 2024-07-30 11:14:26 +02:00
parent 0b8d3e6d3b
commit 9c32e53772
2 changed files with 13 additions and 2 deletions

12
core/images/new-child.tid Normal file
View File

@ -0,0 +1,12 @@
tags: $:/tags/Image
title: $:/core/images/new-child
\parameters (size:"22pt")
<svg class="tc-image-edit-button tc-image-button" viewBox="0 0 128 128" width=<<size>> height=<<size>>>
<path d="M6.9 27.9a6.72 6.96 0 1 0 0 13.9h41a6.72 6.96 0 1 0 0-13.9z"
transform="translate(13.6 62.5)" />
<path d="M27.3 4.57a6.72 6.96 0 0 0-6.64 7.05v46.5a6.72 6.96 0 1 0 13.4 0v-46.5a6.72 6.96 0 0 0-6.81-7.05z"
transform="translate(13.6 62.5)" />
<path d="M60.5 58.1c-3.75-.055-6.82 3.08-6.82 6.96s3.07 7.01 6.82 6.96h46.1c3.75.055 6.82-3.08 6.82-6.96s-3.07-7.01-6.82-6.96zM20.5 28.4c-3.75-.055-6.82 3.08-6.82 6.96s3.07 7.01 6.82 6.96h86.1c3.75.055 6.82-3.08 6.82-6.96s-3.07-7.01-6.82-6.96z"/>
</svg>

View File

@ -49,14 +49,13 @@ The very first toc macro is _not_ reused. So it can be used as a simple referenc
>
<% if [<_mode>match[tocpMode]] %>
<$action-sendmessage $message="tm-new-tiddler" $name=<<field>> $value=<<currentTiddler>>/>
{{$:/wikilabs/images/new-child-alone}}
{{$:/core/images/new-child}}
<% else %>
<$action-sendmessage $message="tm-new-tiddler" $name=<<field>> $value={{{[<currentTiddler>format:titlelist[]]}}}/>
{{$:/core/images/new-here-button}}
<% endif %>
</$button>
\end _newChild
<% if [<tv-toc-show-new-child>match[yes]] %>
<% if [<_mode>match[tagMode]] %>
<span class="tc-small-gap-left tc-toc-new-child-tag"><$macrocall $name="_newChild" field="tags"/></span>