The macros for the table of contents are defined in the tiddler 
$:/core/macros/toc 

The macro for toc-selective-expandable is:

\define toc-selective-expandable(tag,sort:"",itemClassFilter)
<ol class="tc-toc toc-selective-expandable">
<$list filter="[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$]">
<$list filter="[all[current]toc-link[no]]" variable="ignore" 
emptyMessage="<<toc-linked-selective-expandable-body tag:'$tag$' 
sort:'$sort$' itemClassFilter:'$itemClassFilter$'>>">
<<toc-unlinked-selective-expandable-body tag:"""$tag$""" sort:"""$sort$""" 
itemClassFilter:"""$itemClassFilter$""">>
</$list>
</$list>
</ol>
\end

which uses the toc-unlinked-selective-expandable-body macro, which is:

\define toc-unlinked-selective-expandable-body(tag,sort:"",itemClassFilter)
<$set name="toc-state" value=<<qualify 
"$:/state/toc/$tag$-$(currentTiddler)$">>>
<$set name="toc-item-class" filter="""$itemClassFilter$""" 
value="toc-item-selected" emptyValue="toc-item">
<li class=<<toc-item-class>>>
<$list filter="[all[current]tagging[]limit[1]]" variable="ignore" 
emptyMessage="<$button 
class='tc-btn-invisible'>{{$:/core/images/blank}}</$button> <$view 
field='caption'><$view field='title'/></$view>">
<$reveal type="nomatch" state=<<toc-state>> text="open">
<$button set=<<toc-state>> setTo="open" class="tc-btn-invisible">
{{$:/core/images/right-arrow}}
<<toc-caption>>
</$button>
</$reveal>
<$reveal type="match" state=<<toc-state>> text="open">
<$button set=<<toc-state>> setTo="close" class="tc-btn-invisible">
{{$:/core/images/down-arrow}}
<<toc-caption>>
</$button>
</$reveal>
</$list>
<$reveal type="match" state=<<toc-state>> text="open">
<$macrocall $name="""toc-selective-expandable""" tag=<<currentTiddler>> 
sort="""$sort$""" itemClassFilter="""$itemClassFilter$"""/>
</$reveal>
</li>
</$set>
</$set>
\end

The line {{$:/core/images/right-arrow}} is the right arrow image used when 
the item isn't expanded, the line {{$:/core/images/down-arrow}} is the down 
arrow used when the item is expanded.

So, to change the images used you can just replace those lines with 
whatever you want it to be. BUT this would be modifying a shadow tiddler 
and there are sometimes updates for the toc macros when the core is 
updated, so it would probably be safer to create a new tiddler, it can have 
any name, and copy the two macros into that tiddler. Rename the first macro 
to something like my-toc-selective-expandable (so the first line would be 
\define my-toc-selective-expandable(tag,sort:"",itemClassFilter) and 
similarly rename the second one to my-toc-unlinked-selective-expandable-body

change the line in the my-toc-selective-expandable macro from 
<<toc-unlinked-selective-expandable-body tag:"""$tag$""" sort:"""$sort$""" 
itemClassFilter:"""$itemClassFilter$""">> to 
<<my-toc-unlinked-selective-expandable-body tag:"""$tag$""" 
sort:"""$sort$""" itemClassFilter:"""$itemClassFilter$""">>

then change the images used in the 
my-toc-unlinked-selective-expandable-body to whatever images you want to 
use. SVG images are probably best to use because they will scale to the 
correct size without trouble, I think that font-awesome has some folder 
icons in it. Font awesome is here 
http://fontawesome.tiddlyspot.com/#GettingStarted

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to