mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 21:17:52 +00:00
Make dss work in xpfe so that people don't feel left out b=335154 r=Standard8
This commit is contained in:
parent
0b96d726ba
commit
5f35de3fab
@ -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"]
|
||||
|
@ -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