Using the instructions in the TW5
page and tiddler layout customisation page I have created a new View Toolbar icon which generates a new draft tiddler from a template. It all works fine, except that the new icon does not display correctly in Control Panel > Appearance > Toolbars > View Toolbar.
Here is the tiddler defining the button and associated macro:
\define newTiddlerButton()
<$button class=<<tv-config-toolbar-class>>
tooltip=<<iconTooltip>>>
<!-- Create new tiddler from tiddler titled "$param" -->
<$action-sendmessage
$message="tm-new-tiddler"
$param="$(templateTitle)$"
title="$(tiddlerTitle)$"
/>
<!-- Add as toolbar button -->
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$(iconTitle)$}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text="$(iconCaption)$"/></span>
</$list>
</$button>
\end
<$vars
iconCaption="Create a new tiddler from a template"
iconTitle="Template Icon Showing a Green Form Regions"
iconTooltip="Create new tiddler from 'User Standard Tiddler Template'"
templateTitle="User Standard Tiddler Template"
tiddlerTitle="Tiddler Title" >
<<newTiddlerButton>>
</$vars>
As I said, this mechanism works fine, except for the appearance of the button in the View Toolbar button list in the Control Panel (see image below with a red arrow showing the new button) -- it does not display the icon's image (an svg formatted image tiddler), caption or tooltip (assuming those are the values that display for each icon. [Note: Because the image displays quite smaller than its actual resolution, I have attached it as well, but it is the same image.]
The button's appearance in the Control Panel is not a huge problem, but it is annoying. Are there any alterations I can make to the macro/button tiddler to fix the Control Panel display, or do the changes need to be made elsewhere?