mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-10-23 19:57:38 +00:00
Start making themes switchable
Separately switch in ordinary plugins and themes. Change the convention for plugin information to use dashes rather than camel case.
This commit is contained in:
@@ -89,8 +89,10 @@ exports.startup = function() {
|
||||
document.addEventListener("tw-clear-password",function(event) {
|
||||
$tw.crypto.setPassword(null);
|
||||
});
|
||||
// Unpack the current theme tiddlers
|
||||
$tw.wiki.unpackPluginTiddlers("theme");
|
||||
// Apply stylesheets
|
||||
var stylesheetTiddlers = $tw.wiki.filterTiddlers("[tag[$:/tags/stylesheet]]");
|
||||
var stylesheetTiddlers = $tw.wiki.filterTiddlers("[is[shadow]tag[$:/tags/stylesheet]]");
|
||||
$tw.utils.each(stylesheetTiddlers,function(title,index) {
|
||||
// Stylesheets don't refresh, yet
|
||||
var parser = $tw.wiki.parseTiddler(title),
|
||||
|
||||
Reference in New Issue
Block a user