Where are instructions on how to make your own themes to add to the theme-list?

107 views
Skip to first unread message

Mark S.

unread,
Apr 15, 2015, 6:13:34 PM4/15/15
to tiddl...@googlegroups.com
I've searched this forum and TiddlyWiki.com, but all I've found are instructions on how to set up your own customized stylesheet or other theme tweaks.

But how do you make your theme that can be selected from the theme list?

Or, if that isn't easy, is there a macro or plugin that will let you quickly switch customized stylesheets?

A typical use case would be if you're using a TW both on a desktop and on a small device. You might want to quickly switch themes (or custom stylesheet) in order to accommodate the particular platform.

Thanks!
Mark

Jeremy Ruston

unread,
Apr 17, 2015, 9:05:51 AM4/17/15
to TiddlyWiki
Hi Mark

But how do you make your theme that can be selected from the theme list?

A theme is just a plugin with its plugin-type field set to "theme". You can find out more about making plugins at http://tiddlywiki.com/dev; the summary is that it's easiest when running TiddlyWiki under Node.js, but several hardy souls have made plugins entirely within the browser.
 
Or, if that isn't easy, is there a macro or plugin that will let you quickly switch customized stylesheets?

Stylesheets in TW are just wikitext, so you can use familiar techniques to hide and show parts of them.

A typical use case would be if you're using a TW both on a desktop and on a small device. You might want to quickly switch themes (or custom stylesheet) in order to accommodate the particular platform.

At the moment, TW tries to cope with the differences between different screen sizes using the media queries provided by CSS. That's how the sidebar gets moved to the top when on a mobile screen.

To automatically switch themes based on screensize would require an extension to TiddlyWiki. I'm not sure that it would perform well, though - bear in mind that when resizing a browser window on the desktop there are many window resize events.

Best wishes

Jeremy.


 

Thanks!
Mark

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/df1ec091-1469-4409-9f68-f9345aaba7e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com
Reply all
Reply to author
Forward
0 new messages