1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-24 02:27:19 +00:00

Get rid of the old setstyle widget

And fix up the colouring of tiddler icons
This commit is contained in:
Jeremy Ruston 2013-10-15 08:36:19 +01:00
parent 20cd398e88
commit 933afee996
2 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,6 @@ Temporary shim widgets
var Widget = require("$:/core/modules/new_widgets/widget.js").widget; var Widget = require("$:/core/modules/new_widgets/widget.js").widget;
exports.linkcatcher = Widget; exports.linkcatcher = Widget;
exports.setstyle = Widget;
exports["import"] = Widget; exports["import"] = Widget;
})(); })();

View File

@ -1,9 +1,12 @@
title: $:/core/ui/ViewTemplate/title title: $:/core/ui/ViewTemplate/title
tags: $:/tags/ViewTemplate tags: $:/tags/ViewTemplate
<div class="tw-tiddler-title"><div class="title"><$setstyle name="fill" value={{!!color}}><span class="tw-tiddler-controls"><$button popup="$:/state/tiddlerInfo" qualifyTiddlerTitles="yes" class="btn-invisible" selectedClass="tw-selected">{{$:/core/images/info-button}}</$button><$button message="tw-edit-tiddler" class="btn-invisible">{{$:/core/images/edit-button}}</$button><$button message="tw-close-tiddler" class="btn-invisible">{{$:/core/images/close-button}}</$button> \define title-styles()
fill:$(foregroundColor)$;
\end
<div class="tw-tiddler-title"><div class="title"><span class="tw-tiddler-controls"><$button popup="$:/state/tiddlerInfo" qualifyTiddlerTitles="yes" class="btn-invisible" selectedClass="tw-selected">{{$:/core/images/info-button}}</$button><$button message="tw-edit-tiddler" class="btn-invisible">{{$:/core/images/edit-button}}</$button><$button message="tw-close-tiddler" class="btn-invisible">{{$:/core/images/close-button}}</$button>
</span><$transclude title={{!!icon}}/> <$view field="title"/></$setstyle></div> </span><$setvariable name="foregroundColor" value={{!!color}}><span style=<<title-styles>>><$transclude title={{!!icon}}/></span></$setvariable> <$view field="title"/></div>
<$reveal type="nomatch" text="" default="" state="$:/state/tiddlerInfo" qualifyTiddlerTitles="yes" class="tw-tiddler-info" animate="yes"> <$reveal type="nomatch" text="" default="" state="$:/state/tiddlerInfo" qualifyTiddlerTitles="yes" class="tw-tiddler-info" animate="yes">