1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00
TiddlyWiki5/core/wiki/paletteeditor.tid

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-02-20 10:00:38 +00:00
title: $:/snippets/paletteeditor
2014-02-20 16:07:03 +00:00
\define lingo-base() $:/language/ControlPanel/Appearance/Palette/Editor/
\define describePaletteColour(colour)
{{$:/language/Docs/PaletteColours/$colour$}}
\end
2014-02-20 10:00:38 +00:00
<$set name="currentTiddler" value={{$:/palette}}>
2014-02-20 16:07:03 +00:00
<<lingo Prompt>> <$link to={{$:/palette}}><$macrocall $name="currentTiddler" $output="text/plain"/></$link>
2014-02-20 10:00:38 +00:00
<$list filter="[all[current]is[shadow]is[tiddler]]" variable="listItem">
2014-02-20 16:07:03 +00:00
<<lingo Prompt/Modified>>
<$button message="tw-delete-tiddler" param={{$:/palette}}><<lingo Reset/Caption>></$button>
2014-02-20 10:00:38 +00:00
</$list>
<$list filter="[all[current]is[shadow]!is[tiddler]]" variable="listItem">
2014-02-20 16:07:03 +00:00
<<lingo Clone/Prompt>>
2014-02-20 10:00:38 +00:00
</$list>
2014-02-20 16:07:03 +00:00
<$button message="tw-new-tiddler" param={{$:/palette}}><<lingo Clone/Caption>></$button>
2014-02-20 10:00:38 +00:00
<table>
<tbody>
<$list filter="[all[current]indexes[]]" variable="colourName">
<tr>
<td>
''<$macrocall $name="describePaletteColour" colour=<<colourName>>/>''<br/>
<$macrocall $name="colourName" $output="text/plain"/>
</td>
<td>
<$edit-text index=<<colourName>> tag="input"/>
<br>
<$edit-text index=<<colourName>> type="color" tag="input"/>
</td>
2014-02-20 10:00:38 +00:00
</tr>
</$list>
</tbody>
</table>
</$set>