Bug 1306264 - Move chrome://browser/skin/theme-switcher-icon.png reference from CustomizeMode.jsm to theme code. r=jaws

This commit is contained in:
Dão Gottwald 2016-09-30 09:39:27 +02:00
parent d4e48cabd6
commit 1e2a857cff
2 changed files with 3 additions and 4 deletions

View File

@ -153,10 +153,8 @@ CustomizeMode.prototype = {
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 + ")";
lwthemeIcon.style.backgroundImage = LightweightThemeManager.currentTheme ?
"url(" + LightweightThemeManager.currentTheme.iconURL + ")" : "";
},
setTab: function(aTab) {

View File

@ -194,6 +194,7 @@
width: 20px;
height: 20px;
border-radius: 2px;
background-image: url("chrome://browser/skin/theme-switcher-icon.png");
background-size: contain;
}