Make dss work in xpfe so that people don't feel left out b=335154 r=Standard8
git-svn-id: svn://10.0.0.236/trunk@221695 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4a3766da43
commit
16204b3727
@ -2113,13 +2113,16 @@ 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"]
|
||||
.getService(Components.interfaces.nsIAppStartup);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user