Make dss work in xpfe so that people don't feel left out b=335154 r=Standard8

This commit is contained in:
neil%parkwaycc.co.uk 2007-03-10 12:10:25 +00:00
parent 0b96d726ba
commit 5f35de3fab
3 changed files with 15 additions and 4 deletions

View File

@ -2113,12 +2113,15 @@ function applyTheme(themeName)
return;
}
// XXX XXX BAD BAD BAD BAD !! XXX XXX
// we STILL haven't fixed editor skin switch problems
// hacking around it yet again
str.data = name;
pref.setComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsString, str);
if (pref.getBoolPref("extensions.dss.enabled")) {
pref.clearUserPref("general.skins.selectedSkin");
chromeRegistry.selectSkin(name, true);
chromeRegistry.refreshSkins();
return;
}
// shut down quicklaunch so the next launch will have the new skin
var appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"]

View File

@ -117,6 +117,13 @@ function applySkin()
parent.hPrefWindow.setPref("string", "general.skins.selectedSkin", data.name);
if (parent.hPrefWindow.getPref("bool", "extensions.dss.enabled")) {
parent.hPrefWindow.pref.clearUserPref("general.skins.selectedSkin");
reg.selectSkin(data.name, true);
reg.refreshSkins();
return;
}
// shut down quicklaunch so the next launch will have the new skin
var appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"]
.getService(Components.interfaces.nsIAppStartup);

View File

@ -195,6 +195,7 @@ pref("app.releaseNotesURL", "chrome://branding/locale/brand.properties");
pref("app.vendorURL", "chrome://branding/locale/brand.properties");
pref("extensions.getMoreLocalesURL", "chrome://branding/locale/brand.properties");
pref("extensions.dss.enabled", false); // Dynamic Skin Switching
pref("xpinstall.dialog.confirm", "chrome://communicator/content/xpinstall/institems.xul");
pref("xpinstall.dialog.progress.chrome","chrome://communicator/content/xpinstall/xpistatus.xul");