Add colour swatches to palette switcher

This commit is contained in:
Jermolene
2014-02-18 13:59:11 +00:00
parent 3f89d2d0fa
commit e1dfb621f5
4 changed files with 44 additions and 0 deletions
+3
View File
@@ -1,5 +1,8 @@
title: $:/core/ui/PageMacros
\define colour(name)
<$transclude tiddler={{$:/palette}} index="$name$"/>
\end
\define tabs(tabsList,default,state:"$:/state/tab")
<div class="tw-tab-buttons"><$list filter="$tabsList$" variable="currentTab"><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tw-tab-selected"><$transclude tiddler=<<currentTab>> field="caption"><$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/></$transclude> </$button>
</$list>