1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-08 01:38:06 +00:00

Refactor the sidebar items into separate tiddlers

With some better styling too
This commit is contained in:
Jermolene
2016-11-27 22:34:46 +00:00
parent e5af022bd3
commit 117bf0a0de
7 changed files with 106 additions and 37 deletions

View File

@@ -0,0 +1,15 @@
title: $:/Manager/ItemSidebar/Colour
tags: $:/tags/Manager/ItemSidebar
caption: Colour
\define swatch-styles()
height: 1em;
background-color: $(colour)$
\end
<$vars colour={{!!color}}>
<p style=<<swatch-styles>>/>
</$vars>
<p>
<$edit-text field="color" tag="input" type="color"/> / <$edit-text field="color" tag="input" type="text" size="9"/>
</p>

View File

@@ -0,0 +1,9 @@
title: $:/Manager/ItemSidebar/Icon
tags: $:/tags/Manager/ItemSidebar
caption: Icon
<p>
<$macrocall $name="image-picker-dropdown" image-tiddler={{!!icon}} fallback="(none)" actions="""
<$action-setfield $field="icon" $value=<<imageTitle>>/>
"""/>
</p>

View File

@@ -0,0 +1,16 @@
title: $:/Manager/ItemSidebar/Tags
tags: $:/tags/Manager/ItemSidebar
caption: Tags
<p>
<$list filter="[is[current]tags[]] [list[$:/config/Manager/RecentTags]] +[sort[title]] " variable="tag">
<div>
<$checkbox tiddler=<<currentTiddler>> tag=<<tag>> actions=<<tag-checkbox-actions>>>
<$macrocall $name="tag-pill" tag=<<tag>>/>
</$checkbox>
</div>
</$list>
</p>
<p>
<$macrocall $name="tag-picker" actions=<<tag-picker-actions>>/>
</p>

View File

@@ -0,0 +1,10 @@
title: $:/Manager/ItemSidebar/Tools
tags: $:/tags/Manager/ItemSidebar
caption: Tools
<p>
<$button to=<<currentTiddler>>>{{$:/core/images/link}} open</$button>
</p>
<p>
<$button message="tm-edit-tiddler" param=<<currentTiddler>>>{{$:/core/images/edit-button}} edit</$button>
</p>