A thread from Feb 2008, referenced below contained a solution to the above problem. However this was for V2.3.1.
I have tried this exact soln with v2.5.3 but have not been able to get it to work. The only change I made was to the color value for dirty which I have changed to #700. Can anyone offer any suggestions to help narrow down where I may have gone wrong! Thanks, James http://groups.google.com/group/tiddlywiki/browse_thread/thread/3c559d93d720ffe9/e754abc984746068?lnk=gst&q=a+theme+super+hack#e754abc984746068 > Using the IsDirty plug-in ( http://tiddlywiki.bidix.info/#IsDirtyPlugin > ) is it possible to have the background color of the theme title area > change? I'm not sure about the IsDirty plugin, but you could use TiddlyWiki's new theme-switching functionality. (N.B.: There a still a few quirks with that feature right now; those will most likely be ironed out in the upcoming 2.3.1 release - so I'd hold off on this until then.) Create a tiddler tagged with "systemConfig" with the following contents: --------------- //{{{ // hijack setDirty() to add theme switching setDirty_DirtyStyle = TiddlyWiki.prototype.setDirty; TiddlyWiki.prototype.setDirty = function() { setDirty_DirtyStyle.apply(this, arguments); if(this.dirty) story.switchTheme("DirtyTheme"); else story.switchTheme("CleanTheme"); }; //}}} --------------- Then create two theme tiddlers, [[CleanTheme]] and [[DirtyTheme]], both tagged with "systemTheme": --------------- /*** |''Name:''|DirtyTheme| |''~CoreVersion:''|2.3.0| |''~StyleSheet:''|##StyleSheet| ***/ !StyleSheet /*{{{*/ [[StyleSheetCustom]] body { background-color: #F00; } /*}}}*/ --------------- /*** |''Name:''|CleanTheme| |''~CoreVersion:''|2.3.0| |''~StyleSheet:''|##StyleSheet| ***/ !StyleSheet /*{{{*/ [[StyleSheetCustom]] body { background-color: #F00; } /*}}}*/ --------------- This way you can modify the StyleSheet portions for each state (dirty or not dirty) individually - shared styles go into [[StyleSheetCustom]]. HTH. -- F. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en -~----------~----~----~----~------~----~------~--~---

