mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1306264 - Move chrome://browser/skin/theme-switcher-icon.png reference from CustomizeMode.jsm to theme code. r=jaws
This commit is contained in:
parent
d4e48cabd6
commit
1e2a857cff
@ -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) {
|
||||
|
@ -194,6 +194,7 @@
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 2px;
|
||||
background-image: url("chrome://browser/skin/theme-switcher-icon.png");
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user