Bug 1073240 - update Firefox's default theme icon, hide menu on non-default themes, r=jaws
--HG-- extra : rebase_source : 3651f3e80cf537c365a6ab4a0659221fb6d50d4b
|
@ -62,6 +62,10 @@ function CustomizeMode(aWindow) {
|
|||
this.paletteEmptyNotice = this.document.getElementById("customization-empty");
|
||||
this.paletteSpacer = this.document.getElementById("customization-spacer");
|
||||
this.tipPanel = this.document.getElementById("customization-tipPanel");
|
||||
let lwthemeButton = this.document.getElementById("customization-lwtheme-button");
|
||||
if (Services.prefs.getCharPref("general.skins.selectedSkin") != "classic/1.0") {
|
||||
lwthemeButton.setAttribute("hidden", "true");
|
||||
}
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
this._updateTitlebarButton();
|
||||
Services.prefs.addObserver(kDrawInTitlebarPref, this, false);
|
||||
|
@ -1279,7 +1283,14 @@ CustomizeMode.prototype = {
|
|||
let tbb = doc.createElement("toolbarbutton");
|
||||
tbb.theme = aTheme;
|
||||
tbb.setAttribute("label", aTheme.name);
|
||||
if (aDefaultTheme == aTheme) {
|
||||
// The actual icon is set up so it looks nice in about:addons, but
|
||||
// we'd like the version that's correct for the OS we're on, so we set
|
||||
// an attribute that our styling will then use to display the icon.
|
||||
tbb.setAttribute("defaulttheme", "true");
|
||||
} else {
|
||||
tbb.setAttribute("image", aTheme.iconURL);
|
||||
}
|
||||
if (aTheme.description)
|
||||
tbb.setAttribute("tooltiptext", aTheme.description);
|
||||
tbb.setAttribute("tabindex", "0");
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
ICON_FILES := icon.png
|
||||
ICON_FILES := ../shared/icon.png
|
||||
ICON_DEST = $(FINAL_TARGET)/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
|
||||
INSTALL_TARGETS += ICON
|
||||
|
||||
|
|
Двоичные данные
browser/themes/linux/icon.png
До Ширина: | Высота: | Размер: 2.1 KiB |
|
@ -64,6 +64,7 @@ browser.jar:
|
|||
skin/classic/browser/Security-broken.png
|
||||
skin/classic/browser/setDesktopBackground.css
|
||||
skin/classic/browser/slowStartup-16.png
|
||||
skin/classic/browser/theme-switcher-icon.png
|
||||
skin/classic/browser/Toolbar.png
|
||||
skin/classic/browser/Toolbar-inverted.png
|
||||
skin/classic/browser/Toolbar-small.png
|
||||
|
|
После Ширина: | Высота: | Размер: 666 B |
|
@ -2,7 +2,7 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
ICON_FILES := icon.png
|
||||
ICON_FILES := ../shared/icon.png
|
||||
ICON_DEST = $(FINAL_TARGET)/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
|
||||
INSTALL_TARGETS += ICON
|
||||
|
||||
|
|
|
@ -4670,6 +4670,10 @@ window > chatbox {
|
|||
#customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="right"] {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/panelarrow-customizeTip@2x.png");
|
||||
}
|
||||
|
||||
.customization-lwtheme-menu-theme[defaulttheme] {
|
||||
list-style-image: url(chrome://browser/skin/theme-switcher-icon@2x.png);
|
||||
}
|
||||
}
|
||||
|
||||
/* End customization mode */
|
||||
|
|
Двоичные данные
browser/themes/osx/icon.png
До Ширина: | Высота: | Размер: 2.1 KiB |
|
@ -101,6 +101,8 @@ browser.jar:
|
|||
skin/classic/browser/Secure-Glyph.png
|
||||
skin/classic/browser/Secure-Glyph@2x.png
|
||||
skin/classic/browser/slowStartup-16.png
|
||||
skin/classic/browser/theme-switcher-icon.png
|
||||
skin/classic/browser/theme-switcher-icon@2x.png
|
||||
skin/classic/browser/Toolbar.png
|
||||
skin/classic/browser/Toolbar@2x.png
|
||||
skin/classic/browser/Toolbar-inverted.png
|
||||
|
|
После Ширина: | Высота: | Размер: 1.2 KiB |
После Ширина: | Высота: | Размер: 3.2 KiB |
|
@ -299,6 +299,10 @@ toolbarpaletteitem[place="toolbar"] {
|
|||
-moz-padding-start: 0;
|
||||
}
|
||||
|
||||
.customization-lwtheme-menu-theme[defaulttheme] {
|
||||
list-style-image: url(chrome://browser/skin/theme-switcher-icon.png);
|
||||
}
|
||||
|
||||
.customization-lwtheme-menu-theme[active="true"],
|
||||
.customization-lwtheme-menu-theme:hover {
|
||||
background-color: hsla(210,4%,10%,.08);
|
||||
|
|
После Ширина: | Высота: | Размер: 1.8 KiB |
|
@ -2,7 +2,7 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
ICON_FILES := icon.png
|
||||
ICON_FILES := ../shared/icon.png
|
||||
ICON_DEST = $(FINAL_TARGET)/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
|
||||
INSTALL_TARGETS += ICON
|
||||
|
||||
|
|
Двоичные данные
browser/themes/windows/icon.png
До Ширина: | Высота: | Размер: 2.1 KiB |
|
@ -78,6 +78,7 @@ browser.jar:
|
|||
skin/classic/browser/Secure24.png
|
||||
skin/classic/browser/setDesktopBackground.css
|
||||
skin/classic/browser/slowStartup-16.png
|
||||
skin/classic/browser/theme-switcher-icon.png
|
||||
skin/classic/browser/Toolbar.png (Toolbar-XP.png)
|
||||
skin/classic/browser/Toolbar-inverted.png
|
||||
skin/classic/browser/Toolbar-lunaSilver.png
|
||||
|
@ -503,6 +504,8 @@ browser.jar:
|
|||
skin/classic/aero/browser/Secure24.png (Secure24-aero.png)
|
||||
skin/classic/aero/browser/setDesktopBackground.css
|
||||
skin/classic/aero/browser/slowStartup-16.png
|
||||
skin/classic/aero/browser/theme-switcher-icon.png
|
||||
skin/classic/aero/browser/theme-switcher-icon-aero.png
|
||||
skin/classic/aero/browser/Toolbar.png
|
||||
skin/classic/aero/browser/Toolbar-inverted.png
|
||||
skin/classic/aero/browser/Toolbar-aero.png
|
||||
|
@ -861,6 +864,9 @@ browser.jar:
|
|||
% override chrome://browser/skin/menuPanel-small.png chrome://browser/skin/menuPanel-small-aero.png os=WINNT osversion=6
|
||||
% override chrome://browser/skin/menuPanel-small.png chrome://browser/skin/menuPanel-small-aero.png os=WINNT osversion=6.1
|
||||
|
||||
% override chrome://browser/skin/theme-switcher-icon.png chrome://browser/skin/theme-switcher-icon-aero.png os=WINNT osversion=6
|
||||
% override chrome://browser/skin/theme-switcher-icon.png chrome://browser/skin/theme-switcher-icon-aero.png os=WINNT osversion=6.1
|
||||
|
||||
% override chrome://browser/skin/sync-horizontalbar.png chrome://browser/skin/sync-horizontalbar-XPVista7.png os=WINNT osversion<6.2
|
||||
% override chrome://browser/skin/syncProgress-horizontalbar.png chrome://browser/skin/syncProgress-horizontalbar-XPVista7.png os=WINNT osversion<6.2
|
||||
|
||||
|
|
После Ширина: | Высота: | Размер: 1.8 KiB |
После Ширина: | Высота: | Размер: 651 B |