One of my toolbar commands is not like the others

44 views
Skip to first unread message

stone1343

unread,
Jan 12, 2010, 5:22:23 PM1/12/10
to TiddlyWiki
Here's a protion of my ViewTemplate:

<div class='toolbar' macro='toolbar
[[ToolbarCommands::ViewToolbar]]'></div>
<div class='toolbar' macro='tiddler RefreshTiddler'></div>
<div class='toolbar' macro='newHere label:"new here"'></div>
<div class='toolbar' macro='tagger label:"tags"'></div>

The second one is doesn't look like the others when you hover on it, I
think it uses the link class somehow, even though I've specified
toolbar?

Måns

unread,
Jan 12, 2010, 5:38:00 PM1/12/10
to TiddlyWiki
Hi Stone1343

macro='tiddler RefreshTiddler'> is the tiddlermacro at play.
You can write this in a tiddler:
<<tiddler RefreshTiddler>> same thing going on.

Have a look inside the RefreshTiddler tiddler - It has this content:
<script label="refresh" title="redisplay tiddler content">some script</
script>
You can change the label (refresh) to your own liking...

regards Måns Mårtensson

stone1343

unread,
Jan 12, 2010, 6:08:33 PM1/12/10
to TiddlyWiki
But then I don't get refresh automatically in all tiddlers, do I? I
was thinking more like defining a toolbar tiddlerlink css class so
refresh can be in the toolbar, but consistent CSS.

Tack,
Jeff

stone1343

unread,
Jan 12, 2010, 7:12:50 PM1/12/10
to TiddlyWiki
Maybe the question should be re-phrased, I want to use the
RefreshTiddler transclusion in my toolbar and have it look the same as
the other toolbar commands. Is that possible, and is it just a CSS
job?

Måns

unread,
Jan 12, 2010, 7:56:39 PM1/12/10
to TiddlyWiki
Hi again

> Maybe the question should be re-phrased, I want to use the
> RefreshTiddler transclusion in my toolbar and have it look the same as
> the other toolbar commands. Is that possible, and is it just a CSS
> job?

i don't know how to do that - but you can change all toolbarbuttons
and use icons instead - even the refreshTiddlerbutton
Check Elnois out vertical at http://files.dropbox.com/u/55061/TW/TW.html

Also checkout Eric Shulmans site tiddlytools.com - it uses icons as
well..

regards Måns Mårtensson

stone1343

unread,
Jan 12, 2010, 7:57:21 PM1/12/10
to TiddlyWiki
Solved. I found RefreshTiddlerPlugin at http://solo.dc3.com/tw/
Thanks.

Tobias Beer

unread,
Jan 12, 2010, 11:12:51 PM1/12/10
to TiddlyWiki
Though the subject is solved, as you said, I guess that - quite
possibly - you could always wrap your container with the corresponding
css class like so:

{{button{<<someTiddlerContainingACommand>>}}}

Måns

unread,
Jan 15, 2010, 8:48:04 PM1/15/10
to TiddlyWiki
Hi Tobias

I tried:
> {{button{<<someTiddlerContainingACommand>>}}}

Here http://lektie.tiddlyspot.com/#TopMenu

I even did: {{floatrightt{{{small button{<<tiddler NyLektieKnap with:
-DD/MM-YY\nuge\nWW\nkl.\nhh.mm.ss [[ny Lektie]]>>}}}}}} with a little
help from Erics StyleSheetShortcuts ...

For some reason it is positioned differently and the script label is
still blue...

Regards Måns Mårtensson

Message has been deleted

FND

unread,
Jan 20, 2010, 12:06:54 PM1/20/10
to tiddl...@googlegroups.com
> For some reason it is positioned differently and the script label is
> still blue...

I'm not entirely sure what the goal is, but it sounds like a CSS
specificity issue - that is, you might want more specific selectors:
.button a {
color: #F00;
}


-- F.

Mike

unread,
Jan 20, 2010, 3:49:02 PM1/20/10
to TiddlyWiki
I played with this before, and never could figure out where to make
the CSS changes
Decided to play in FireBug and see if I could figure anything out

I found
element.style {
cursor: auto;
}

Haven't played with it yet, and by no means am I a CSS or FireBug
expert - but this might be a starting point

The default toolbar style from StyleSheetColors

.toolbar {color:[[ColorPalette::PrimaryMid]];}
.toolbar a {color:[[ColorPalette::TertiaryLight]];}
.selected .toolbar a {color:[[ColorPalette::TertiaryMid]];}
.selected .toolbar a:hover {color:[[ColorPalette::Foreground]];}


Like many others I also have some scripts in my toolbar, and it would
be nice to be able to make the macros & scripts look consistent.

Any other ideas?

Mike

Mike

unread,
Feb 2, 2010, 5:46:27 PM2/2/10
to TiddlyWiki
Reply all
Reply to author
Forward
0 new messages