Bug 1192242 - Adjust the button design in some circumstances. r=Gijs
@ -7,6 +7,12 @@ Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
const PREF_EM_HOTFIX_ID = "extensions.hotfix.id";
|
||||
|
||||
let gMenuButton = null;
|
||||
try {
|
||||
gMenuButton = Services.wm.getMostRecentWindow("navigator:browser")
|
||||
.document.getElementById("PanelUI-menu-button");
|
||||
} catch (ex) { };
|
||||
|
||||
function init(aEvent)
|
||||
{
|
||||
if (aEvent.target != document)
|
||||
@ -49,6 +55,17 @@ function init(aEvent)
|
||||
document.getElementById("communityDesc").hidden = true;
|
||||
}
|
||||
|
||||
if (/^42/.test(version)) {
|
||||
document.getElementById("version").addEventListener("click", event => {
|
||||
if (gMenuButton) {
|
||||
gMenuButton.classList.add("thumburger");
|
||||
if (event.shiftKey) {
|
||||
gMenuButton = null;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
#ifdef MOZ_UPDATER
|
||||
gAppUpdater = new appUpdater();
|
||||
|
||||
@ -83,6 +100,9 @@ function onUnload(aEvent) {
|
||||
// Safe to call even when there isn't a download in progress.
|
||||
gAppUpdater.removeDownloadListener();
|
||||
gAppUpdater = null;
|
||||
if (gMenuButton) {
|
||||
gMenuButton.classList.remove("thumburger");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
BIN
browser/themes/linux/customizableui/thumburger-inverted.png
Executable file
After Width: | Height: | Size: 411 B |
BIN
browser/themes/linux/customizableui/thumburger.png
Executable file
After Width: | Height: | Size: 453 B |
@ -159,6 +159,8 @@ browser.jar:
|
||||
* skin/classic/browser/customizableui/panelUIOverlay.css (customizableui/panelUIOverlay.css)
|
||||
skin/classic/browser/customizableui/subView-arrow-back-inverted.png (../shared/customizableui/subView-arrow-back-inverted.png)
|
||||
skin/classic/browser/customizableui/subView-arrow-back-inverted-rtl.png (../shared/customizableui/subView-arrow-back-inverted-rtl.png)
|
||||
skin/classic/browser/customizableui/thumburger.png (customizableui/thumburger.png)
|
||||
skin/classic/browser/customizableui/thumburger-inverted.png (customizableui/thumburger-inverted.png)
|
||||
skin/classic/browser/customizableui/whimsy.png (../shared/customizableui/whimsy.png)
|
||||
skin/classic/browser/customizableui/whimsy@2x.png (../shared/customizableui/whimsy@2x.png)
|
||||
skin/classic/browser/customizableui/whimsy-bw.png (../shared/customizableui/whimsy-bw.png)
|
||||
|
BIN
browser/themes/osx/customizableui/thumburger-inverted.png
Executable file
After Width: | Height: | Size: 427 B |
BIN
browser/themes/osx/customizableui/thumburger-inverted@2x.png
Executable file
After Width: | Height: | Size: 809 B |
BIN
browser/themes/osx/customizableui/thumburger-yosemite.png
Executable file
After Width: | Height: | Size: 263 B |
BIN
browser/themes/osx/customizableui/thumburger-yosemite@2x.png
Executable file
After Width: | Height: | Size: 477 B |
BIN
browser/themes/osx/customizableui/thumburger.png
Executable file
After Width: | Height: | Size: 388 B |
BIN
browser/themes/osx/customizableui/thumburger@2x.png
Executable file
After Width: | Height: | Size: 891 B |
@ -210,6 +210,10 @@ browser.jar:
|
||||
skin/classic/browser/customizableui/subView-arrow-back-inverted-rtl.png (../shared/customizableui/subView-arrow-back-inverted-rtl.png)
|
||||
skin/classic/browser/customizableui/subView-arrow-back-inverted-rtl@2x.png (../shared/customizableui/subView-arrow-back-inverted-rtl@2x.png)
|
||||
* skin/classic/browser/customizableui/panelUIOverlay.css (customizableui/panelUIOverlay.css)
|
||||
skin/classic/browser/customizableui/thumburger-inverted.png (customizableui/thumburger-inverted.png)
|
||||
skin/classic/browser/customizableui/thumburger-inverted@2x.png (customizableui/thumburger-inverted@2x.png)
|
||||
skin/classic/browser/customizableui/thumburger.png (customizableui/thumburger.png)
|
||||
skin/classic/browser/customizableui/thumburger@2x.png (customizableui/thumburger@2x.png)
|
||||
skin/classic/browser/customizableui/whimsy.png (../shared/customizableui/whimsy.png)
|
||||
skin/classic/browser/customizableui/whimsy@2x.png (../shared/customizableui/whimsy@2x.png)
|
||||
skin/classic/browser/customizableui/whimsy-bw.png (../shared/customizableui/whimsy-bw.png)
|
||||
@ -611,6 +615,8 @@ browser.jar:
|
||||
skin/classic/browser/yosemite/reload-stop-go@2x.png (reload-stop-go-yosemite@2x.png)
|
||||
skin/classic/browser/yosemite/sync-horizontalbar.png (sync-horizontalbar-yosemite.png)
|
||||
skin/classic/browser/yosemite/sync-horizontalbar@2x.png (sync-horizontalbar-yosemite@2x.png)
|
||||
skin/classic/browser/yosemite/thumburger.png (customizableui/thumburger-yosemite.png)
|
||||
skin/classic/browser/yosemite/thumburger@2x.png (customizableui/thumburger-yosemite@2x.png)
|
||||
skin/classic/browser/notification-pluginNormal.png (../shared/plugins/notification-pluginNormal.png)
|
||||
skin/classic/browser/notification-pluginAlert.png (../shared/plugins/notification-pluginAlert.png)
|
||||
skin/classic/browser/notification-pluginBlocked.png (../shared/plugins/notification-pluginBlocked.png)
|
||||
@ -641,6 +647,8 @@ browser.jar:
|
||||
% override chrome://browser/skin/places/toolbar.png chrome://browser/skin/lion/places/toolbar.png os=Darwin osversion>=10.7
|
||||
% override chrome://browser/skin/Toolbar.png chrome://browser/skin/yosemite/Toolbar.png os=Darwin osversion>=10.10
|
||||
% override chrome://browser/skin/Toolbar@2x.png chrome://browser/skin/yosemite/Toolbar@2x.png os=Darwin osversion>=10.10
|
||||
% override chrome://browser/skin/customizableui/thumburger.png chrome://browser/skin/yosemite/thumburger.png os=Darwin osversion>=10.10
|
||||
% override chrome://browser/skin/customizableui/thumburger@2x.png chrome://browser/skin/yosemite/thumburger@2x.png os=Darwin osversion>=10.10
|
||||
% override chrome://browser/skin/menuPanel.png chrome://browser/skin/yosemite/menuPanel.png os=Darwin osversion>=10.10
|
||||
% override chrome://browser/skin/menuPanel@2x.png chrome://browser/skin/yosemite/menuPanel@2x.png os=Darwin osversion>=10.10
|
||||
% override chrome://browser/skin/loop/menuPanel.png chrome://browser/skin/yosemite/loop/menuPanel.png os=Darwin osversion>=10.10
|
||||
|
@ -124,6 +124,15 @@ toolbar[brighttext] #sync-button[status="active"] {
|
||||
-moz-image-region: rect(0, 486px, 18px, 468px);
|
||||
}
|
||||
|
||||
#PanelUI-menu-button.thumburger {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/thumburger.png") !important;
|
||||
-moz-image-region: auto !important;
|
||||
}
|
||||
|
||||
toolbar[brighttext] #PanelUI-menu-button.thumburger {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/thumburger-inverted.png") !important;
|
||||
}
|
||||
|
||||
#edit-controls:not(@inAnyPanel@) > #cut-button {
|
||||
-moz-image-region: rect(0, 504px, 18px, 486px);
|
||||
}
|
||||
@ -430,6 +439,14 @@ toolbar[brighttext] #loop-button {
|
||||
%endif
|
||||
}
|
||||
|
||||
#PanelUI-menu-button.thumburger {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/thumburger@2x.png") !important;
|
||||
}
|
||||
|
||||
toolbar[brighttext] #PanelUI-menu-button.thumburger {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/thumburger-inverted@2x.png") !important;
|
||||
}
|
||||
|
||||
#loop-button {
|
||||
list-style-image: url("chrome://browser/skin/loop/toolbar@2x.png");
|
||||
-moz-image-region: rect(0, 36px, 36px, 0);
|
||||
|
@ -609,12 +609,20 @@ menuitem.bookmark-item {
|
||||
#loop-button {
|
||||
list-style-image: url(chrome://browser/skin/loop/toolbar-lunaSilver.png)
|
||||
}
|
||||
|
||||
#PanelUI-menu-button.thumburger {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/thumburger-lunaSilver.png") !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-moz-windows-theme: luna-silver) and (min-resolution: 1.1dppx) {
|
||||
#loop-button {
|
||||
list-style-image: url(chrome://browser/skin/loop/toolbar-lunaSilver@2x.png)
|
||||
}
|
||||
|
||||
#PanelUI-menu-button.thumburger {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/thumburger-lunaSilver@2x.png") !important;
|
||||
}
|
||||
}
|
||||
|
||||
#main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-icon,
|
||||
|
BIN
browser/themes/windows/customizableui/thumburger-XP.png
Executable file
After Width: | Height: | Size: 610 B |
BIN
browser/themes/windows/customizableui/thumburger-XP@2x.png
Executable file
After Width: | Height: | Size: 1.4 KiB |
BIN
browser/themes/windows/customizableui/thumburger-aero.png
Executable file
After Width: | Height: | Size: 565 B |
BIN
browser/themes/windows/customizableui/thumburger-aero@2x.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
browser/themes/windows/customizableui/thumburger-inverted.png
Executable file
After Width: | Height: | Size: 411 B |
BIN
browser/themes/windows/customizableui/thumburger-inverted@2x.png
Executable file
After Width: | Height: | Size: 754 B |
BIN
browser/themes/windows/customizableui/thumburger-lunaSilver.png
Executable file
After Width: | Height: | Size: 619 B |
BIN
browser/themes/windows/customizableui/thumburger-lunaSilver@2x.png
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
browser/themes/windows/customizableui/thumburger-win8.png
Executable file
After Width: | Height: | Size: 220 B |
BIN
browser/themes/windows/customizableui/thumburger-win8@2x.png
Executable file
After Width: | Height: | Size: 379 B |
BIN
browser/themes/windows/customizableui/thumburger.png
Executable file
After Width: | Height: | Size: 201 B |
BIN
browser/themes/windows/customizableui/thumburger@2x.png
Executable file
After Width: | Height: | Size: 343 B |
@ -219,6 +219,18 @@ browser.jar:
|
||||
skin/classic/browser/customizableui/subView-arrow-back-inverted.png (../shared/customizableui/subView-arrow-back-inverted.png)
|
||||
skin/classic/browser/customizableui/subView-arrow-back-inverted@2x.png (../shared/customizableui/subView-arrow-back-inverted@2x.png)
|
||||
skin/classic/browser/customizableui/subView-arrow-back-inverted-rtl.png (../shared/customizableui/subView-arrow-back-inverted-rtl.png)
|
||||
skin/classic/browser/customizableui/thumburger-XP.png (customizableui/thumburger-XP.png)
|
||||
skin/classic/browser/customizableui/thumburger-XP@2x.png (customizableui/thumburger-XP@2x.png)
|
||||
skin/classic/browser/customizableui/thumburger-aero.png (customizableui/thumburger-aero.png)
|
||||
skin/classic/browser/customizableui/thumburger-aero@2x.png (customizableui/thumburger-aero@2x.png)
|
||||
skin/classic/browser/customizableui/thumburger-inverted.png (customizableui/thumburger-inverted.png)
|
||||
skin/classic/browser/customizableui/thumburger-inverted@2x.png (customizableui/thumburger-inverted@2x.png)
|
||||
skin/classic/browser/customizableui/thumburger-lunaSilver.png (customizableui/thumburger-lunaSilver.png)
|
||||
skin/classic/browser/customizableui/thumburger-lunaSilver@2x.png (customizableui/thumburger-lunaSilver@2x.png)
|
||||
skin/classic/browser/customizableui/thumburger-win8.png (customizableui/thumburger-win8.png)
|
||||
skin/classic/browser/customizableui/thumburger-win8@2x.png (customizableui/thumburger-win8@2x.png)
|
||||
skin/classic/browser/customizableui/thumburger.png (customizableui/thumburger.png)
|
||||
skin/classic/browser/customizableui/thumburger@2x.png (customizableui/thumburger@2x.png)
|
||||
skin/classic/browser/customizableui/whimsy.png (../shared/customizableui/whimsy.png)
|
||||
skin/classic/browser/customizableui/whimsy@2x.png (../shared/customizableui/whimsy@2x.png)
|
||||
skin/classic/browser/customizableui/whimsy-bw.png (../shared/customizableui/whimsy-bw.png)
|
||||
@ -697,6 +709,16 @@ browser.jar:
|
||||
% override chrome://browser/skin/Toolbar.png chrome://browser/skin/Toolbar-aero.png os=WINNT osversion=6.1
|
||||
% override chrome://browser/skin/Toolbar.png chrome://browser/skin/Toolbar-win8.png os=WINNT osversion=6.2
|
||||
% override chrome://browser/skin/Toolbar.png chrome://browser/skin/Toolbar-win8.png os=WINNT osversion=6.3
|
||||
% override chrome://browser/skin/customizableui/thumburger.png chrome://browser/skin/customizableui/thumburger-XP.png os=WINNT osversion<6
|
||||
% override chrome://browser/skin/customizableui/thumburger.png chrome://browser/skin/customizableui/thumburger-aero.png os=WINNT osversion=6
|
||||
% override chrome://browser/skin/customizableui/thumburger.png chrome://browser/skin/customizableui/thumburger-aero.png os=WINNT osversion=6.1
|
||||
% override chrome://browser/skin/customizableui/thumburger.png chrome://browser/skin/customizableui/thumburger-win8.png os=WINNT osversion=6.2
|
||||
% override chrome://browser/skin/customizableui/thumburger.png chrome://browser/skin/customizableui/thumburger-win8.png os=WINNT osversion=6.3
|
||||
% override chrome://browser/skin/customizableui/thumburger@2x.png chrome://browser/skin/customizableui/thumburger-XP@2x.png os=WINNT osversion<6
|
||||
% override chrome://browser/skin/customizableui/thumburger@2x.png chrome://browser/skin/customizableui/thumburger-aero@2x.png os=WINNT osversion=6
|
||||
% override chrome://browser/skin/customizableui/thumburger@2x.png chrome://browser/skin/customizableui/thumburger-aero@2x.png os=WINNT osversion=6.1
|
||||
% override chrome://browser/skin/customizableui/thumburger@2x.png chrome://browser/skin/customizableui/thumburger-win8@2x.png os=WINNT osversion=6.2
|
||||
% override chrome://browser/skin/customizableui/thumburger@2x.png chrome://browser/skin/customizableui/thumburger-win8@2x.png os=WINNT osversion=6.3
|
||||
% override chrome://browser/skin/loop/toolbar.png chrome://browser/skin/loop/toolbar-XP.png os=WINNT osversion<6
|
||||
% override chrome://browser/skin/loop/toolbar.png chrome://browser/skin/loop/toolbar-aero.png os=WINNT osversion=6
|
||||
% override chrome://browser/skin/loop/toolbar.png chrome://browser/skin/loop/toolbar-aero.png os=WINNT osversion=6.1
|
||||
|