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.