Skip to content

Instantly share code, notes, and snippets.

@bwinton
Created April 9, 2015 19:40
Show Gist options
  • Save bwinton/3419cf7d7d5b97f0d200 to your computer and use it in GitHub Desktop.
Save bwinton/3419cf7d7d5b97f0d200 to your computer and use it in GitHub Desktop.
diff --git a/browser/components/customizableui/CustomizeMode.jsm b/browser/components/customizableui/CustomizeMode.jsm
--- a/browser/components/customizableui/CustomizeMode.jsm
+++ b/browser/components/customizableui/CustomizeMode.jsm
@@ -119,19 +119,20 @@ CustomizeMode.prototype = {
}
},
swatchForTheme: function(aDocument) {
let lwthemeButton = aDocument.getElementById("customization-lwtheme-button");
let lwthemeIcon = aDocument.getAnonymousElementByAttribute(lwthemeButton,
"class", "button-icon");
let imageURL = LightweightThemeManager.currentTheme === null ?
- "chrome://browser/skin/theme-switcher-icon.png" :
- LightweightThemeManager.currentTheme.iconURL;
- lwthemeIcon.style.backgroundImage = "url(" + imageURL + ")";
+ "url(chrome://browser/skin/theme-switcher-icon.png)" :
+ "url(" + LightweightThemeManager.currentTheme.iconURL + "), " +
+ "url(chrome://browser/skin/theme-switcher-icon.png)";
+ lwthemeIcon.style.backgroundImage = imageURL;
},
enter: function() {
this._wantToBeInCustomizeMode = true;
if (this._customizing || this._handler.isEnteringCustomizeMode) {
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment