зеркало из https://github.com/mozilla/gecko-dev.git
Bug 863753 - Retire the Firefox appmenu button. r=MattN.
This commit is contained in:
Родитель
cd38ac606e
Коммит
5ba00ea76d
|
@ -1,400 +0,0 @@
|
|||
# -*- Mode: HTML -*-
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# 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/.
|
||||
|
||||
<menupopup id="appmenu-popup"
|
||||
onpopupshowing="if (event.target == this) {
|
||||
updateEditUIVisibility();
|
||||
#ifdef MOZ_SERVICES_SYNC
|
||||
gSyncUI.updateUI();
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
updateCharacterEncodingMenuState();
|
||||
if (event.target.parentNode.parentNode.parentNode.parentNode == this)
|
||||
this._currentPopup = event.target;">
|
||||
<hbox>
|
||||
<vbox id="appmenuPrimaryPane">
|
||||
<splitmenu id="appmenu_newTab"
|
||||
label="&tabCmd.label;"
|
||||
command="cmd_newNavigatorTab">
|
||||
<menupopup>
|
||||
<menuitem id="appmenu_newTab_popup"
|
||||
label="&tabCmd.label;"
|
||||
command="cmd_newNavigatorTab"
|
||||
key="key_newNavigatorTab"/>
|
||||
<menuitem id="appmenu_newNavigator"
|
||||
label="&newNavigatorCmd.label;"
|
||||
command="cmd_newNavigator"
|
||||
key="key_newNavigator"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="appmenu_openFile"
|
||||
label="&openFileCmd.label;"
|
||||
command="Browser:OpenFile"
|
||||
key="openFileKb"/>
|
||||
</menupopup>
|
||||
</splitmenu>
|
||||
<menuitem id="appmenu_newPrivateWindow"
|
||||
class="menuitem-iconic menuitem-iconic-tooltip"
|
||||
label="&newPrivateWindow.label;"
|
||||
command="Tools:PrivateBrowsing"
|
||||
key="key_privatebrowsing"/>
|
||||
<menuitem label="&goOfflineCmd.label;"
|
||||
id="appmenu_offlineModeRecovery"
|
||||
type="checkbox"
|
||||
observes="workOfflineMenuitemState"
|
||||
oncommand="BrowserOffline.toggleOfflineStatus();"/>
|
||||
<menuseparator class="appmenu-menuseparator"/>
|
||||
<hbox>
|
||||
<menuitem id="appmenu-edit-label"
|
||||
label="&appMenuEdit.label;"
|
||||
disabled="true"/>
|
||||
<toolbarbutton id="appmenu-cut"
|
||||
class="appmenu-edit-button"
|
||||
command="cmd_cut"
|
||||
onclick="if (!this.disabled) hidePopup();"
|
||||
tooltiptext="&cutButton.tooltip;"/>
|
||||
<toolbarbutton id="appmenu-copy"
|
||||
class="appmenu-edit-button"
|
||||
command="cmd_copy"
|
||||
onclick="if (!this.disabled) hidePopup();"
|
||||
tooltiptext="©Button.tooltip;"/>
|
||||
<toolbarbutton id="appmenu-paste"
|
||||
class="appmenu-edit-button"
|
||||
command="cmd_paste"
|
||||
onclick="if (!this.disabled) hidePopup();"
|
||||
tooltiptext="&pasteButton.tooltip;"/>
|
||||
<spacer flex="1"/>
|
||||
<menu id="appmenu-editmenu">
|
||||
<menupopup id="appmenu-editmenu-menupopup">
|
||||
<menuitem id="appmenu-editmenu-cut"
|
||||
class="menuitem-iconic"
|
||||
label="&cutCmd.label;"
|
||||
key="key_cut"
|
||||
command="cmd_cut"/>
|
||||
<menuitem id="appmenu-editmenu-copy"
|
||||
class="menuitem-iconic"
|
||||
label="©Cmd.label;"
|
||||
key="key_copy"
|
||||
command="cmd_copy"/>
|
||||
<menuitem id="appmenu-editmenu-paste"
|
||||
class="menuitem-iconic"
|
||||
label="&pasteCmd.label;"
|
||||
key="key_paste"
|
||||
command="cmd_paste"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="appmenu-editmenu-undo"
|
||||
label="&undoCmd.label;"
|
||||
key="key_undo"
|
||||
command="cmd_undo"/>
|
||||
<menuitem id="appmenu-editmenu-redo"
|
||||
label="&redoCmd.label;"
|
||||
key="key_redo"
|
||||
command="cmd_redo"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="appmenu-editmenu-selectAll"
|
||||
label="&selectAllCmd.label;"
|
||||
key="key_selectAll"
|
||||
command="cmd_selectAll"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="appmenu-editmenu-delete"
|
||||
label="&deleteCmd.label;"
|
||||
key="key_delete"
|
||||
command="cmd_delete"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</hbox>
|
||||
<menuitem id="appmenu_find"
|
||||
class="menuitem-tooltip"
|
||||
label="&appMenuFind.label;"
|
||||
command="cmd_find"
|
||||
key="key_find"/>
|
||||
<menuseparator class="appmenu-menuseparator"/>
|
||||
<menuitem id="appmenu_savePage"
|
||||
class="menuitem-tooltip"
|
||||
label="&savePageCmd.label;"
|
||||
command="Browser:SavePage"
|
||||
key="key_savePage"/>
|
||||
<menuitem id="appmenu_sendLink"
|
||||
label="&emailPageCmd.label;"
|
||||
command="Browser:SendLink"/>
|
||||
<splitmenu id="appmenu_print"
|
||||
iconic="true"
|
||||
label="&printCmd.label;"
|
||||
command="cmd_print">
|
||||
<menupopup>
|
||||
<menuitem id="appmenu_print_popup"
|
||||
class="menuitem-iconic"
|
||||
label="&printCmd.label;"
|
||||
command="cmd_print"
|
||||
key="printKb"/>
|
||||
<menuitem id="appmenu_printPreview"
|
||||
label="&printPreviewCmd.label;"
|
||||
command="cmd_printPreview"/>
|
||||
<menuitem id="appmenu_printSetup"
|
||||
label="&printSetupCmd.label;"
|
||||
command="cmd_pageSetup"/>
|
||||
</menupopup>
|
||||
</splitmenu>
|
||||
<menuseparator class="appmenu-menuseparator"/>
|
||||
<splitmenu id="appmenu_webDeveloper"
|
||||
command="Tools:DevToolbox"
|
||||
label="&appMenuWebDeveloper.label;">
|
||||
<menupopup id="appmenu_webDeveloper_popup">
|
||||
<menuitem id="appmenu_devToolbox"
|
||||
observes="devtoolsMenuBroadcaster_DevToolbox"/>
|
||||
<menuseparator id="appmenu_devtools_separator"/>
|
||||
<menuitem id="appmenu_devToolbar"
|
||||
observes="devtoolsMenuBroadcaster_DevToolbar"/>
|
||||
<menuitem id="appmenu_chromeDebugger"
|
||||
observes="devtoolsMenuBroadcaster_ChromeDebugger"/>
|
||||
<menuitem id="appmenu_browserConsole"
|
||||
observes="devtoolsMenuBroadcaster_BrowserConsole"/>
|
||||
<menuitem id="appmenu_responsiveUI"
|
||||
observes="devtoolsMenuBroadcaster_ResponsiveUI"/>
|
||||
<menuitem id="appmenu_scratchpad"
|
||||
observes="devtoolsMenuBroadcaster_Scratchpad"/>
|
||||
<menuitem id="appmenu_pageSource"
|
||||
observes="devtoolsMenuBroadcaster_PageSource"/>
|
||||
<menuitem id="appmenu_errorConsole"
|
||||
observes="devtoolsMenuBroadcaster_ErrorConsole"/>
|
||||
<menuitem id="appmenu_devtools_connect"
|
||||
observes="devtoolsMenuBroadcaster_connect"/>
|
||||
<menuseparator id="appmenu_devToolsEndSeparator"/>
|
||||
<menuitem id="appmenu_getMoreDevtools"
|
||||
observes="devtoolsMenuBroadcaster_GetMoreTools"/>
|
||||
<menuseparator/>
|
||||
#define ID_PREFIX appmenu_developer_
|
||||
#define OMIT_ACCESSKEYS
|
||||
#include browser-charsetmenu.inc
|
||||
#undef ID_PREFIX
|
||||
#undef OMIT_ACCESSKEYS
|
||||
<menuitem label="&goOfflineCmd.label;"
|
||||
type="checkbox"
|
||||
observes="workOfflineMenuitemState"
|
||||
oncommand="BrowserOffline.toggleOfflineStatus();"/>
|
||||
</menupopup>
|
||||
</splitmenu>
|
||||
<menuseparator class="appmenu-menuseparator"/>
|
||||
#define ID_PREFIX appmenu_
|
||||
#define OMIT_ACCESSKEYS
|
||||
#include browser-charsetmenu.inc
|
||||
#undef ID_PREFIX
|
||||
#undef OMIT_ACCESSKEYS
|
||||
<menuitem id="appmenu_fullScreen"
|
||||
class="menuitem-tooltip"
|
||||
label="&fullScreenCmd.label;"
|
||||
type="checkbox"
|
||||
observes="View:FullScreen"
|
||||
key="key_fullScreen"/>
|
||||
#ifdef MOZ_SERVICES_SYNC
|
||||
<!-- only one of sync-setup or sync-syncnow will be showing at once -->
|
||||
<menuitem id="sync-setup-appmenu"
|
||||
label="&syncSetup.label;"
|
||||
observes="sync-setup-state"
|
||||
oncommand="gSyncUI.openSetup()"/>
|
||||
<menuitem id="sync-syncnowitem-appmenu"
|
||||
label="&syncSyncNowItem.label;"
|
||||
observes="sync-syncnow-state"
|
||||
oncommand="gSyncUI.doSync(event);"/>
|
||||
#endif
|
||||
<menuitem id="appmenu-quit"
|
||||
class="menuitem-iconic"
|
||||
#ifdef XP_WIN
|
||||
label="&quitApplicationCmdWin.label;"
|
||||
#else
|
||||
label="&quitApplicationCmd.label;"
|
||||
#endif
|
||||
command="cmd_quitApplication"/>
|
||||
</vbox>
|
||||
<vbox id="appmenuSecondaryPane">
|
||||
<splitmenu id="appmenu_bookmarks"
|
||||
iconic="true"
|
||||
label="&bookmarksMenu.label;"
|
||||
command="Browser:ShowAllBookmarks">
|
||||
<menupopup id="appmenu_bookmarksPopup"
|
||||
placespopup="true"
|
||||
context="placesContext"
|
||||
openInTabs="children"
|
||||
oncommand="BookmarksEventHandler.onCommand(event, this.parentNode._placesView);"
|
||||
onclick="BookmarksEventHandler.onClick(event, this.parentNode._placesView);"
|
||||
onpopupshowing="BookmarksMenuButton.onPopupShowing(event);
|
||||
if (!this.parentNode._placesView)
|
||||
new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');"
|
||||
tooltip="bhTooltip"
|
||||
popupsinherittooltip="true">
|
||||
<menuitem id="appmenu_showAllBookmarks"
|
||||
label="&showAllBookmarks2.label;"
|
||||
command="Browser:ShowAllBookmarks"
|
||||
context=""
|
||||
key="manBookmarkKb"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="appmenu_bookmarkThisPage"
|
||||
class="menuitem-iconic"
|
||||
label="&bookmarkThisPageCmd.label;"
|
||||
command="Browser:AddBookmarkAs"
|
||||
key="addBookmarkAsKb"/>
|
||||
<menuitem id="appmenu_subscribeToPage"
|
||||
class="menuitem-iconic"
|
||||
label="&subscribeToPageMenuitem.label;"
|
||||
oncommand="return FeedHandler.subscribeToFeed(null, event);"
|
||||
onclick="checkForMiddleClick(this, event);"
|
||||
observes="singleFeedMenuitemState"/>
|
||||
<menu id="appmenu_subscribeToPageMenu"
|
||||
class="menu-iconic"
|
||||
label="&subscribeToPageMenupopup.label;"
|
||||
observes="multipleFeedsMenuState">
|
||||
<menupopup id="appmenu_subscribeToPageMenupopup"
|
||||
onpopupshowing="return FeedHandler.buildFeedList(event.target);"
|
||||
oncommand="return FeedHandler.subscribeToFeed(null, event);"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
</menu>
|
||||
<menuseparator/>
|
||||
<menu id="appmenu_bookmarksToolbar"
|
||||
placesanonid="toolbar-autohide"
|
||||
class="menu-iconic bookmark-item"
|
||||
label="&personalbarCmd.label;"
|
||||
container="true">
|
||||
<menupopup id="appmenu_bookmarksToolbarPopup"
|
||||
placespopup="true"
|
||||
context="placesContext"
|
||||
onpopupshowing="if (!this.parentNode._placesView)
|
||||
new PlacesMenu(event, 'place:folder=TOOLBAR');"/>
|
||||
</menu>
|
||||
<menuseparator/>
|
||||
<!-- Bookmarks menu items -->
|
||||
<menuseparator builder="end"
|
||||
class="hide-if-empty-places-result"/>
|
||||
<menuitem id="appmenu_unsortedBookmarks"
|
||||
label="&appMenuUnsorted.label;"
|
||||
oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks');"
|
||||
class="menuitem-iconic"/>
|
||||
</menupopup>
|
||||
</splitmenu>
|
||||
<splitmenu id="appmenu_history"
|
||||
iconic="true"
|
||||
label="&historyMenu.label;"
|
||||
command="Browser:ShowAllHistory">
|
||||
<menupopup id="appmenu_historyMenupopup"
|
||||
placespopup="true"
|
||||
oncommand="this.parentNode._placesView._onCommand(event);"
|
||||
onclick="checkForMiddleClick(this, event);"
|
||||
onpopupshowing="if (!this.parentNode._placesView)
|
||||
new HistoryMenu(event);"
|
||||
tooltip="bhTooltip"
|
||||
popupsinherittooltip="true">
|
||||
<menuitem id="appmenu_showAllHistory"
|
||||
label="&showAllHistoryCmd2.label;"
|
||||
command="Browser:ShowAllHistory"
|
||||
key="showAllHistoryKb"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="appmenu_sanitizeHistory"
|
||||
label="&clearRecentHistory.label;"
|
||||
key="key_sanitize"
|
||||
command="Tools:Sanitize"/>
|
||||
<menuseparator class="hide-if-empty-places-result"/>
|
||||
#ifdef MOZ_SERVICES_SYNC
|
||||
<menuitem id="appmenu_sync-tabs"
|
||||
class="syncTabsMenuItem"
|
||||
label="&syncTabsMenu2.label;"
|
||||
oncommand="BrowserOpenSyncTabs();"
|
||||
disabled="true"/>
|
||||
#endif
|
||||
<menuitem id="appmenu_restoreLastSession"
|
||||
label="&historyRestoreLastSession.label;"
|
||||
command="Browser:RestoreLastSession"/>
|
||||
<menu id="appmenu_recentlyClosedTabsMenu"
|
||||
class="recentlyClosedTabsMenu"
|
||||
label="&historyUndoMenu.label;"
|
||||
disabled="true">
|
||||
<menupopup id="appmenu_recentlyClosedTabsMenupopup"
|
||||
onpopupshowing="document.getElementById('appmenu_history')._placesView.populateUndoSubmenu();"/>
|
||||
</menu>
|
||||
<menu id="appmenu_recentlyClosedWindowsMenu"
|
||||
class="recentlyClosedWindowsMenu"
|
||||
label="&historyUndoWindowMenu.label;"
|
||||
disabled="true">
|
||||
<menupopup id="appmenu_recentlyClosedWindowsMenupopup"
|
||||
onpopupshowing="document.getElementById('appmenu_history')._placesView.populateUndoWindowSubmenu();"/>
|
||||
</menu>
|
||||
<menuseparator/>
|
||||
</menupopup>
|
||||
</splitmenu>
|
||||
<menuitem id="appmenu_downloads"
|
||||
class="menuitem-tooltip"
|
||||
label="&downloads.label;"
|
||||
command="Tools:Downloads"
|
||||
key="key_openDownloads"/>
|
||||
<spacer id="appmenuSecondaryPane-spacer"/>
|
||||
<menuitem id="appmenu_addons"
|
||||
class="menuitem-iconic menuitem-iconic-tooltip"
|
||||
label="&addons.label;"
|
||||
command="Tools:Addons"
|
||||
key="key_openAddons"/>
|
||||
<splitmenu id="appmenu_customize"
|
||||
#ifdef XP_UNIX
|
||||
label="&preferencesCmdUnix.label;"
|
||||
#else
|
||||
label="&preferencesCmd2.label;"
|
||||
#endif
|
||||
oncommand="openPreferences();">
|
||||
<menupopup id="appmenu_customizeMenu"
|
||||
onpopupshowing="onViewToolbarsPopupShowing(event, document.getElementById('appmenu_toggleToolbarsSeparator'));">
|
||||
<menuitem id="appmenu_preferences"
|
||||
#ifdef XP_UNIX
|
||||
label="&preferencesCmdUnix.label;"
|
||||
#else
|
||||
label="&preferencesCmd2.label;"
|
||||
#endif
|
||||
oncommand="openPreferences();"/>
|
||||
<menuseparator/>
|
||||
<menuseparator id="appmenu_toggleToolbarsSeparator"/>
|
||||
<menuitem id="appmenu_toggleTabsOnTop"
|
||||
label="&viewTabsOnTop.label;"
|
||||
type="checkbox"
|
||||
command="cmd_ToggleTabsOnTop"/>
|
||||
<menuitem id="appmenu_toolbarLayout"
|
||||
label="&appMenuToolbarLayout.label;"
|
||||
command="cmd_CustomizeToolbars"/>
|
||||
</menupopup>
|
||||
</splitmenu>
|
||||
<splitmenu id="appmenu_help"
|
||||
label="&helpMenu.label;"
|
||||
oncommand="openHelpLink('firefox-help')">
|
||||
<menupopup id="appmenu_helpMenupopup">
|
||||
<menuitem id="appmenu_openHelp"
|
||||
label="&helpMenu.label;"
|
||||
oncommand="openHelpLink('firefox-help')"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
<menuitem id="appmenu_gettingStarted"
|
||||
label="&appMenuGettingStarted.label;"
|
||||
oncommand="gBrowser.loadOneTab('http://www.mozilla.com/firefox/central/', {inBackground: false});"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
#ifdef MOZ_SERVICES_HEALTHREPORT
|
||||
<menuitem id="appmenu_healthReport"
|
||||
label="&healthReport.label;"
|
||||
oncommand="openHealthReport()"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
#endif
|
||||
<menuitem id="appmenu_troubleshootingInfo"
|
||||
label="&helpTroubleshootingInfo.label;"
|
||||
oncommand="openTroubleshootingPage()"
|
||||
onclick="checkForMiddleClick(this,event);"/>
|
||||
<menuitem id="appmenu_feedbackPage"
|
||||
label="&helpFeedbackPage.label;"
|
||||
oncommand="openFeedbackPage()"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="appmenu_safeMode"
|
||||
label="&appMenuSafeMode.label;"
|
||||
oncommand="safeModeRestart();"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="appmenu_about"
|
||||
label="&aboutProduct.label;"
|
||||
oncommand="openAboutDialog();"/>
|
||||
</menupopup>
|
||||
</splitmenu>
|
||||
</vbox>
|
||||
</hbox>
|
||||
</menupopup>
|
|
@ -17,7 +17,7 @@ var FullScreen = {
|
|||
enterFS = !enterFS;
|
||||
|
||||
// Toggle the View:FullScreen command, which controls elements like the
|
||||
// fullscreen menuitem, menubars, and the appmenu.
|
||||
// fullscreen menuitem, and menubars.
|
||||
document.getElementById("View:FullScreen").setAttribute("checked", enterFS);
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
|
|
|
@ -131,7 +131,6 @@ toolbar[printpreview="true"] {
|
|||
pointer-events: none;
|
||||
}
|
||||
|
||||
#main-window[tabsintitlebar] #appmenu-button-container,
|
||||
#main-window[tabsintitlebar] #titlebar-buttonbox {
|
||||
position: relative;
|
||||
}
|
||||
|
@ -202,27 +201,6 @@ toolbar[printpreview="true"] {
|
|||
background-position: bottom left;
|
||||
}
|
||||
|
||||
splitmenu {
|
||||
-moz-binding: url("chrome://browser/content/urlbarBindings.xml#splitmenu");
|
||||
}
|
||||
|
||||
.splitmenu-menuitem {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem");
|
||||
list-style-image: inherit;
|
||||
-moz-image-region: inherit;
|
||||
}
|
||||
|
||||
.splitmenu-menuitem[iconic="true"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
|
||||
}
|
||||
|
||||
.splitmenu-menu > .menu-text,
|
||||
:-moz-any(.splitmenu-menu, .splitmenu-menuitem) > .menu-accel-container,
|
||||
#appmenu-editmenu > .menu-text,
|
||||
#appmenu-editmenu > .menu-accel-container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menuitem-tooltip {
|
||||
-moz-binding: url("chrome://browser/content/urlbarBindings.xml#menuitem-tooltip");
|
||||
}
|
||||
|
@ -233,18 +211,6 @@ splitmenu {
|
|||
-moz-binding: url("chrome://browser/content/urlbarBindings.xml#menuitem-iconic-tooltip");
|
||||
}
|
||||
|
||||
%ifdef MENUBAR_CAN_AUTOHIDE
|
||||
%ifndef CAN_DRAW_IN_TITLEBAR
|
||||
#appmenu-toolbar-button > .toolbarbutton-text {
|
||||
display: -moz-box;
|
||||
}
|
||||
%endif
|
||||
|
||||
#appmenu_offlineModeRecovery:not([checked=true]) {
|
||||
display: none;
|
||||
}
|
||||
%endif
|
||||
|
||||
/* Hide menu elements intended for keyboard access support */
|
||||
#main-menubar[openedwithkey=false] .show-only-for-keyboard {
|
||||
display: none;
|
||||
|
|
|
@ -943,8 +943,8 @@ var gBrowserInit = {
|
|||
goSetCommandEnabled("cmd_newNavigatorTab", false);
|
||||
}
|
||||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
updateAppButtonDisplay();
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
updateTitlebarDisplay();
|
||||
#endif
|
||||
|
||||
// Misc. inits.
|
||||
|
@ -1235,15 +1235,6 @@ var gBrowserInit = {
|
|||
cmd.removeAttribute("hidden");
|
||||
}
|
||||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
// If the user (or the locale) hasn't enabled the top-level "Character
|
||||
// Encoding" menu via the "browser.menu.showCharacterEncoding" preference,
|
||||
// hide it.
|
||||
if ("true" != gPrefService.getComplexValue("browser.menu.showCharacterEncoding",
|
||||
Ci.nsIPrefLocalizedString).data)
|
||||
document.getElementById("appmenu_charsetMenu").hidden = true;
|
||||
#endif
|
||||
|
||||
// Enable Responsive UI?
|
||||
let responsiveUIEnabled = gPrefService.getBoolPref("devtools.responsiveUI.enabled");
|
||||
if (responsiveUIEnabled) {
|
||||
|
@ -1255,23 +1246,6 @@ var gBrowserInit = {
|
|||
// Add Devtools menuitems and listeners
|
||||
gDevToolsBrowser.registerBrowserWindow(window);
|
||||
|
||||
let appMenuButton = document.getElementById("appmenu-button");
|
||||
let appMenuPopup = document.getElementById("appmenu-popup");
|
||||
if (appMenuButton && appMenuPopup) {
|
||||
let appMenuOpening = null;
|
||||
appMenuButton.addEventListener("mousedown", function(event) {
|
||||
if (event.button == 0)
|
||||
appMenuOpening = new Date();
|
||||
}, false);
|
||||
appMenuPopup.addEventListener("popupshown", function(event) {
|
||||
if (event.target != appMenuPopup || !appMenuOpening)
|
||||
return;
|
||||
let duration = new Date() - appMenuOpening;
|
||||
appMenuOpening = null;
|
||||
Services.telemetry.getHistogramById("FX_APP_MENU_OPEN_MS").add(duration);
|
||||
}, false);
|
||||
}
|
||||
|
||||
window.addEventListener("mousemove", MousePosTracker, false);
|
||||
window.addEventListener("dragover", MousePosTracker, false);
|
||||
|
||||
|
@ -2661,8 +2635,8 @@ var PrintPreviewListener = {
|
|||
if (this._chromeState.sidebarOpen)
|
||||
toggleSidebar(this._sidebarCommand);
|
||||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
updateAppButtonDisplay();
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
updateTitlebarDisplay();
|
||||
#endif
|
||||
},
|
||||
_hideChrome: function () {
|
||||
|
@ -3397,9 +3371,6 @@ function updateEditUIVisibility()
|
|||
let editMenuPopupState = document.getElementById("menu_EditPopup").state;
|
||||
let contextMenuPopupState = document.getElementById("contentAreaContextMenu").state;
|
||||
let placesContextMenuPopupState = document.getElementById("placesContext").state;
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
let appMenuPopupState = document.getElementById("appmenu-popup").state;
|
||||
#endif
|
||||
|
||||
// The UI is visible if the Edit menu is opening or open, if the context menu
|
||||
// is open, or if the toolbar has been customized to include the Cut, Copy,
|
||||
|
@ -3410,10 +3381,6 @@ function updateEditUIVisibility()
|
|||
contextMenuPopupState == "open" ||
|
||||
placesContextMenuPopupState == "showing" ||
|
||||
placesContextMenuPopupState == "open" ||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
appMenuPopupState == "showing" ||
|
||||
appMenuPopupState == "open" ||
|
||||
#endif
|
||||
document.getElementById("cut-button") ||
|
||||
document.getElementById("copy-button") ||
|
||||
document.getElementById("paste-button") ? true : false;
|
||||
|
@ -3446,9 +3413,6 @@ function updateEditUIVisibility()
|
|||
function updateCharacterEncodingMenuState()
|
||||
{
|
||||
let charsetMenu = document.getElementById("charsetMenu");
|
||||
let appCharsetMenu = document.getElementById("appmenu_charsetMenu");
|
||||
let appDevCharsetMenu =
|
||||
document.getElementById("appmenu_developer_charsetMenu");
|
||||
// gBrowser is null on Mac when the menubar shows in the context of
|
||||
// non-browser windows. The above elements may be null depending on
|
||||
// what parts of the menubar are present. E.g. no app menu on Mac.
|
||||
|
@ -3458,22 +3422,10 @@ function updateCharacterEncodingMenuState()
|
|||
if (charsetMenu) {
|
||||
charsetMenu.removeAttribute("disabled");
|
||||
}
|
||||
if (appCharsetMenu) {
|
||||
appCharsetMenu.removeAttribute("disabled");
|
||||
}
|
||||
if (appDevCharsetMenu) {
|
||||
appDevCharsetMenu.removeAttribute("disabled");
|
||||
}
|
||||
} else {
|
||||
if (charsetMenu) {
|
||||
charsetMenu.setAttribute("disabled", "true");
|
||||
}
|
||||
if (appCharsetMenu) {
|
||||
appCharsetMenu.setAttribute("disabled", "true");
|
||||
}
|
||||
if (appDevCharsetMenu) {
|
||||
appDevCharsetMenu.setAttribute("disabled", "true");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4383,8 +4335,6 @@ function onViewToolbarsPopupShowing(aEvent, aInsertPoint) {
|
|||
menuItem.setAttribute("type", "checkbox");
|
||||
menuItem.setAttribute("label", toolbarName);
|
||||
menuItem.setAttribute("checked", toolbar.getAttribute(hidingAttribute) != "true");
|
||||
if (popup.id != "appmenu_customizeMenu")
|
||||
menuItem.setAttribute("accesskey", toolbar.getAttribute("accesskey"));
|
||||
if (popup.id != "toolbar-context-menu")
|
||||
menuItem.setAttribute("key", toolbar.getAttribute("key"));
|
||||
|
||||
|
@ -4413,8 +4363,8 @@ function setToolbarVisibility(toolbar, isVisible) {
|
|||
BookmarksMenuButton.onToolbarVisibilityChange();
|
||||
gBrowser.updateWindowResizers();
|
||||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
updateAppButtonDisplay();
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
updateTitlebarDisplay();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -4592,10 +4542,6 @@ var TabsInTitlebar = {
|
|||
|
||||
function rect(ele) ele.getBoundingClientRect();
|
||||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
let appmenuButtonBox = $("appmenu-button-container");
|
||||
this._sizePlaceholder("appmenu-button", rect(appmenuButtonBox).width);
|
||||
#endif
|
||||
let captionButtonsBox = $("titlebar-buttonbox");
|
||||
this._sizePlaceholder("caption-buttons", rect(captionButtonsBox).width);
|
||||
#ifdef XP_MACOSX
|
||||
|
@ -4689,14 +4635,8 @@ var TabsInTitlebar = {
|
|||
}
|
||||
};
|
||||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
function updateAppButtonDisplay() {
|
||||
var displayAppButton =
|
||||
!gInPrintPreviewMode &&
|
||||
window.menubar.visible &&
|
||||
document.getElementById("toolbar-menubar").getAttribute("autohide") == "true";
|
||||
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
function updateTitlebarDisplay() {
|
||||
document.getElementById("titlebar").hidden = gInPrintPreviewMode;
|
||||
|
||||
if (!gInPrintPreviewMode)
|
||||
|
@ -4705,10 +4645,6 @@ function updateAppButtonDisplay() {
|
|||
document.documentElement.removeAttribute("chromemargin");
|
||||
|
||||
TabsInTitlebar.allowedBy("drawing-in-titlebar", !gInPrintPreviewMode);
|
||||
#else
|
||||
document.getElementById("appmenu-toolbar-button").hidden =
|
||||
!displayAppButton;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -6761,7 +6697,6 @@ let gPrivateBrowsingUI = {
|
|||
// Adjust the New Window menu entries
|
||||
[
|
||||
{ normal: "menu_newNavigator", private: "menu_newPrivateWindow" },
|
||||
{ normal: "appmenu_newNavigator", private: "appmenu_newPrivateWindow" },
|
||||
].forEach(function(menu) {
|
||||
let newWindow = document.getElementById(menu.normal);
|
||||
let newPrivateWindow = document.getElementById(menu.private);
|
||||
|
|
|
@ -428,16 +428,6 @@
|
|||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
<vbox id="titlebar">
|
||||
<hbox id="titlebar-content">
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
<hbox id="appmenu-button-container">
|
||||
<button id="appmenu-button"
|
||||
type="menu"
|
||||
label="&brandShortName;"
|
||||
style="-moz-user-focus: ignore;">
|
||||
#include browser-appmenu.inc
|
||||
</button>
|
||||
</hbox>
|
||||
#endif
|
||||
<spacer id="titlebar-spacer" flex="1"/>
|
||||
<hbox id="titlebar-buttonbox-container" align="start"
|
||||
#ifdef XP_MACOSX
|
||||
|
@ -480,10 +470,6 @@
|
|||
</toolbaritem>
|
||||
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
<hbox class="titlebar-placeholder" type="appmenu-button" ordinal="0"/>
|
||||
#endif
|
||||
|
||||
<hbox class="titlebar-placeholder" type="caption-buttons"
|
||||
#ifdef XP_MACOSX
|
||||
ordinal="0"
|
||||
|
@ -766,13 +752,6 @@
|
|||
</toolbaritem>
|
||||
</toolbar>
|
||||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
#ifndef CAN_DRAW_IN_TITLEBAR
|
||||
#define APPMENU_ON_TABBAR
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
<toolbar id="TabsToolbar"
|
||||
class="toolbar-primary"
|
||||
fullscreentoolbar="true"
|
||||
|
@ -781,23 +760,9 @@
|
|||
iconsize="small" defaulticonsize="small" lockiconsize="true"
|
||||
aria-label="&tabsToolbar.label;"
|
||||
context="toolbar-context-menu"
|
||||
#ifdef APPMENU_ON_TABBAR
|
||||
defaultset="appmenu-toolbar-button,tabbrowser-tabs,new-tab-button,alltabs-button,tabs-closebutton"
|
||||
#else
|
||||
defaultset="tabbrowser-tabs,new-tab-button,alltabs-button,tabs-closebutton"
|
||||
#endif
|
||||
collapsed="true">
|
||||
|
||||
#ifdef APPMENU_ON_TABBAR
|
||||
<toolbarbutton id="appmenu-toolbar-button"
|
||||
class="chromeclass-toolbar-additional"
|
||||
type="menu"
|
||||
label="&brandShortName;"
|
||||
tooltiptext="&appMenuButton.tooltip;">
|
||||
#include browser-appmenu.inc
|
||||
</toolbarbutton>
|
||||
#endif
|
||||
|
||||
<tabs id="tabbrowser-tabs"
|
||||
class="tabbrowser-tabs"
|
||||
tabbrowser="content"
|
||||
|
@ -845,9 +810,6 @@
|
|||
tooltiptext="&closeTab.label;"/>
|
||||
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
<hbox class="titlebar-placeholder" type="appmenu-button" ordinal="0"/>
|
||||
#endif
|
||||
<hbox class="titlebar-placeholder" type="caption-buttons"
|
||||
#ifdef XP_MACOSX
|
||||
ordinal="0"
|
||||
|
|
|
@ -137,7 +137,6 @@ _BROWSER_FILES = \
|
|||
browser_bug598923.js \
|
||||
browser_bug599325.js \
|
||||
browser_bug609700.js \
|
||||
browser_bug616836.js \
|
||||
browser_bug623155.js \
|
||||
browser_bug623893.js \
|
||||
browser_bug624734.js \
|
||||
|
|
|
@ -13,9 +13,8 @@ function test() {
|
|||
function onTopMenuShown(event) {
|
||||
ok(1, "top menu popupshown listener called");
|
||||
event.currentTarget.removeEventListener("popupshown", arguments.callee, false);
|
||||
// open the customize or toolbars menu
|
||||
toolbarMenu = document.getElementById("appmenu_customizeMenu") ||
|
||||
document.getElementById("viewToolbarsMenu").firstElementChild;
|
||||
// open the toolbars menu
|
||||
toolbarMenu = document.getElementById("viewToolbarsMenu").firstElementChild;
|
||||
toolbarMenu.addEventListener("popupshown", onToolbarMenuShown, false);
|
||||
toolbarMenu.addEventListener("popuphidden", onToolbarMenuHidden, false);
|
||||
toolbarMenu.openPopup();
|
||||
|
@ -54,9 +53,8 @@ function test() {
|
|||
topMenu.hidePopup();
|
||||
}
|
||||
|
||||
// open the appmenu or view menu
|
||||
topMenu = document.getElementById("appmenu-popup") ||
|
||||
document.getElementById("menu_viewPopup");
|
||||
// open the view menu
|
||||
topMenu = document.getElementById("menu_viewPopup");
|
||||
topMenu.addEventListener("popupshown", onTopMenuShown, false);
|
||||
topMenu.addEventListener("popuphidden", onTopMenuHidden, false);
|
||||
topMenu.openPopup();
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
function test() {
|
||||
is(document.querySelectorAll("#appmenu-popup [accesskey]").length, 0,
|
||||
"there should be no items with access keys in the app menu popup");
|
||||
}
|
|
@ -1494,120 +1494,6 @@
|
|||
</implementation>
|
||||
</binding>
|
||||
|
||||
<binding id="splitmenu">
|
||||
<content>
|
||||
<xul:hbox anonid="menuitem" flex="1"
|
||||
class="splitmenu-menuitem"
|
||||
xbl:inherits="iconic,label,disabled,onclick=oncommand,_moz-menuactive=active"/>
|
||||
<xul:menu anonid="menu" class="splitmenu-menu"
|
||||
xbl:inherits="disabled,_moz-menuactive=active"
|
||||
oncommand="event.stopPropagation();">
|
||||
<children includes="menupopup"/>
|
||||
</xul:menu>
|
||||
</content>
|
||||
|
||||
<implementation implements="nsIDOMEventListener">
|
||||
<constructor><![CDATA[
|
||||
this._parentMenupopup.addEventListener("DOMMenuItemActive", this, false);
|
||||
this._parentMenupopup.addEventListener("popuphidden", this, false);
|
||||
]]></constructor>
|
||||
|
||||
<destructor><![CDATA[
|
||||
this._parentMenupopup.removeEventListener("DOMMenuItemActive", this, false);
|
||||
this._parentMenupopup.removeEventListener("popuphidden", this, false);
|
||||
]]></destructor>
|
||||
|
||||
<field name="menuitem" readonly="true">
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "menuitem");
|
||||
</field>
|
||||
<field name="menu" readonly="true">
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "menu");
|
||||
</field>
|
||||
|
||||
<field name="_menuDelay">600</field>
|
||||
|
||||
<field name="_parentMenupopup"><![CDATA[
|
||||
this._getParentMenupopup(this);
|
||||
]]></field>
|
||||
|
||||
<method name="_getParentMenupopup">
|
||||
<parameter name="aNode"/>
|
||||
<body><![CDATA[
|
||||
let node = aNode.parentNode;
|
||||
while (node) {
|
||||
if (node.localName == "menupopup")
|
||||
break;
|
||||
node = node.parentNode;
|
||||
}
|
||||
return node;
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
<method name="handleEvent">
|
||||
<parameter name="event"/>
|
||||
<body><![CDATA[
|
||||
switch (event.type) {
|
||||
case "DOMMenuItemActive":
|
||||
if (this.getAttribute("active") == "true" &&
|
||||
event.target != this &&
|
||||
this._getParentMenupopup(event.target) == this._parentMenupopup)
|
||||
this.removeAttribute("active");
|
||||
break;
|
||||
case "popuphidden":
|
||||
if (event.target == this._parentMenupopup)
|
||||
this.removeAttribute("active");
|
||||
break;
|
||||
}
|
||||
]]></body>
|
||||
</method>
|
||||
</implementation>
|
||||
|
||||
<handlers>
|
||||
<handler event="mouseover"><![CDATA[
|
||||
if (this.getAttribute("active") != "true") {
|
||||
this.setAttribute("active", "true");
|
||||
|
||||
let event = document.createEvent("Events");
|
||||
event.initEvent("DOMMenuItemActive", true, false);
|
||||
this.dispatchEvent(event);
|
||||
|
||||
if (this.getAttribute("disabled") != "true") {
|
||||
let self = this;
|
||||
setTimeout(function () {
|
||||
if (self.getAttribute("active") == "true")
|
||||
self.menu.open = true;
|
||||
}, this._menuDelay);
|
||||
}
|
||||
}
|
||||
]]></handler>
|
||||
|
||||
<handler event="popupshowing"><![CDATA[
|
||||
if (event.target == this.firstChild &&
|
||||
this._parentMenupopup._currentPopup)
|
||||
this._parentMenupopup._currentPopup.hidePopup();
|
||||
]]></handler>
|
||||
|
||||
<handler event="click" phase="capturing"><![CDATA[
|
||||
if (this.getAttribute("disabled") == "true") {
|
||||
// Prevent the command from being carried out
|
||||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
|
||||
let node = event.originalTarget;
|
||||
while (true) {
|
||||
if (node == this.menuitem)
|
||||
break;
|
||||
if (node == this)
|
||||
return;
|
||||
node = node.parentNode;
|
||||
}
|
||||
|
||||
this._parentMenupopup.hidePopup();
|
||||
]]></handler>
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
<binding id="menuitem-tooltip" extends="chrome://global/content/bindings/menu.xml#menuitem">
|
||||
<implementation>
|
||||
<constructor><![CDATA[
|
||||
|
|
|
@ -151,8 +151,6 @@ These should match what Safari and other Apple applications use on OS X Lion. --
|
|||
<!ENTITY bookmarksItem.title "Bookmarks">
|
||||
|
||||
<!-- Toolbar items -->
|
||||
<!ENTITY appMenuButton.label "Menu">
|
||||
<!ENTITY appMenuButton.tooltip "Open &brandShortName; menu">
|
||||
<!ENTITY homeButton.label "Home">
|
||||
|
||||
<!ENTITY tabGroupsButton.label "Tab Groups">
|
||||
|
@ -311,17 +309,7 @@ These should match what Safari and other Apple applications use on OS X Lion. --
|
|||
<!ENTITY showAllHistoryCmd2.label "Show All History">
|
||||
<!ENTITY showAllHistoryCmd.commandkey "H">
|
||||
|
||||
<!ENTITY appMenuEdit.label "Edit">
|
||||
<!ENTITY appMenuCustomize.label "Customize">
|
||||
<!ENTITY appMenuToolbarLayout.label "Toolbar Layout…">
|
||||
<!ENTITY appMenuSidebars.label "Sidebars">
|
||||
<!ENTITY appMenuFind.label "Find…">
|
||||
<!ENTITY appMenuUnsorted.label "Unsorted Bookmarks">
|
||||
<!ENTITY appMenuWebDeveloper.label "Web Developer">
|
||||
<!ENTITY appMenuGettingStarted.label "Getting Started">
|
||||
<!ENTITY appMenuSafeMode.label "Restart with Add-ons Disabled…">
|
||||
<!ENTITY appMenuSafeMode.accesskey "R">
|
||||
<!ENTITY appMenuBack.label "Back">
|
||||
<!ENTITY appMenuBookmarks.label "Bookmarks">
|
||||
<!ENTITY appMenuHistory.label "History">
|
||||
<!ENTITY appMenuHistoryMore.label "More…">
|
||||
|
|
|
@ -213,7 +213,6 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
|
||||
}
|
||||
|
||||
#appmenu_newNavigator,
|
||||
#placesContext_open\:newwindow,
|
||||
#menu_newNavigator,
|
||||
#context-openlink,
|
||||
|
@ -222,8 +221,6 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
-moz-image-region: rect(0px 80px 16px 64px);
|
||||
}
|
||||
|
||||
#appmenu_newTab,
|
||||
#appmenu_newTab_popup,
|
||||
#placesContext_open\:newtab,
|
||||
#placesContext_openContainer\:tabs,
|
||||
#menu_newNavigatorTab,
|
||||
|
@ -233,7 +230,6 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
-moz-image-region: rect(0px 64px 16px 48px);
|
||||
}
|
||||
|
||||
#appmenu_openFile,
|
||||
#menu_openFile {
|
||||
list-style-image: url("moz-icon://stock/gtk-open?size=menu");
|
||||
}
|
||||
|
@ -250,7 +246,6 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
list-style-image: url("moz-icon://stock/gtk-media-pause?size=menu");
|
||||
}
|
||||
|
||||
#appmenu_savePage,
|
||||
#menu_savePage,
|
||||
#context-savelink,
|
||||
#context-saveimage,
|
||||
|
@ -261,19 +256,15 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
list-style-image: url("moz-icon://stock/gtk-save-as?size=menu");
|
||||
}
|
||||
|
||||
#appmenu_printPreview,
|
||||
#menu_printPreview {
|
||||
list-style-image: url("moz-icon://stock/gtk-print-preview?size=menu");
|
||||
}
|
||||
|
||||
#appmenu_print,
|
||||
#appmenu_print_popup,
|
||||
#menu_print,
|
||||
#context-printframe {
|
||||
list-style-image: url("moz-icon://stock/gtk-print?size=menu");
|
||||
}
|
||||
|
||||
#appmenu-quit,
|
||||
#menu_FileQuitItem {
|
||||
list-style-image: url("moz-icon://stock/gtk-quit?size=menu");
|
||||
}
|
||||
|
@ -356,7 +347,6 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
list-style-image: url("moz-icon://stock/gtk-select-all?size=menu");
|
||||
}
|
||||
|
||||
#appmenu_find,
|
||||
#menu_find {
|
||||
list-style-image: url("moz-icon://stock/gtk-find?size=menu");
|
||||
}
|
||||
|
@ -365,8 +355,6 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
list-style-image: url("moz-icon://stock/gtk-find?size=menu&state=disabled");
|
||||
}
|
||||
|
||||
#appmenu_customize,
|
||||
#appmenu_preferences,
|
||||
#menu_preferences {
|
||||
list-style-image: url("moz-icon://stock/gtk-preferences?size=menu");
|
||||
}
|
||||
|
@ -449,15 +437,11 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
list-style-image: url("moz-icon://stock/gtk-home?size=menu");
|
||||
}
|
||||
|
||||
#appmenu_history,
|
||||
#appmenu_showAllHistory,
|
||||
#menu_showAllHistory {
|
||||
list-style-image: url("chrome://browser/skin/Toolbar-small.png");
|
||||
-moz-image-region: rect(0px 32px 16px 16px);
|
||||
}
|
||||
|
||||
#appmenu_bookmarks,
|
||||
#appmenu_showAllBookmarks,
|
||||
#bookmarksShowAll {
|
||||
list-style-image: url("chrome://browser/skin/Toolbar-small.png");
|
||||
-moz-image-region: rect(0px 48px 16px 32px);
|
||||
|
@ -479,13 +463,11 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png");
|
||||
}
|
||||
|
||||
#appmenu_downloads,
|
||||
#menu_openDownloads {
|
||||
list-style-image: url("chrome://browser/skin/Toolbar-small.png");
|
||||
-moz-image-region: rect(0px 16px 16px 0px);
|
||||
}
|
||||
|
||||
#appmenu_addons,
|
||||
#menu_openAddons {
|
||||
list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
|
||||
}
|
||||
|
@ -496,8 +478,6 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
list-style-image: url("moz-icon://stock/gtk-info?size=menu");
|
||||
}
|
||||
|
||||
#appmenu_privateBrowsing,
|
||||
#appmenu_newPrivateWindow,
|
||||
#privateBrowsingItem {
|
||||
list-style-image: url("chrome://browser/skin/Privacy-16.png");
|
||||
}
|
||||
|
@ -506,18 +486,14 @@ menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip) {
|
|||
list-style-image: url("moz-icon://stock/gtk-properties?size=menu");
|
||||
}
|
||||
|
||||
#appmenu_sanitizeHistory,
|
||||
#sanitizeItem {
|
||||
list-style-image: url("moz-icon://stock/gtk-clear?size=menu");
|
||||
}
|
||||
|
||||
#appmenu_help,
|
||||
#appmenu_openHelp,
|
||||
#menu_openHelp {
|
||||
list-style-image: url("moz-icon://stock/gtk-help?size=menu");
|
||||
}
|
||||
|
||||
#appmenu_about,
|
||||
#aboutName {
|
||||
list-style-image: url("moz-icon://stock/gtk-about?size=menu");
|
||||
}
|
||||
|
@ -1772,44 +1748,6 @@ toolbarbutton.chevron > .toolbarbutton-icon {
|
|||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* Application button menu */
|
||||
|
||||
.splitmenu-menuitem {
|
||||
-moz-margin-end: 1px;
|
||||
}
|
||||
|
||||
#appmenu-toolbar-button:not(:hover):not([open]):not(:-moz-lwtheme) {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
#appmenu-toolbar-button > .toolbarbutton-text,
|
||||
#appmenu-toolbar-button > .toolbarbutton-menu-dropmarker {
|
||||
margin-top: -2px !important;
|
||||
margin-bottom: -2px !important;
|
||||
}
|
||||
#appmenuSecondaryPane {
|
||||
-moz-border-start: 1px solid ThreeDShadow;
|
||||
}
|
||||
#appmenuSecondaryPane-spacer {
|
||||
min-height: 1em;
|
||||
}
|
||||
#appmenu-cut,
|
||||
#appmenu-editmenu-cut {
|
||||
list-style-image: url("moz-icon://stock/gtk-cut?size=menu");
|
||||
}
|
||||
#appmenu-copy,
|
||||
#appmenu-editmenu-copy {
|
||||
list-style-image: url("moz-icon://stock/gtk-copy?size=menu");
|
||||
}
|
||||
#appmenu-paste,
|
||||
#appmenu-editmenu-paste {
|
||||
list-style-image: url("moz-icon://stock/gtk-paste?size=menu");
|
||||
}
|
||||
#wrapper-appmenu-toolbar-button,
|
||||
.appmenu-edit-button[disabled="true"] {
|
||||
opacity: .3;
|
||||
}
|
||||
|
||||
/* Add-on bar */
|
||||
|
||||
#addon-bar {
|
||||
|
|
Двоичные данные
browser/themes/windows/appmenu-dropmarker.png
Двоичные данные
browser/themes/windows/appmenu-dropmarker.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 262 B |
Двоичные данные
browser/themes/windows/appmenu-icons.png
Двоичные данные
browser/themes/windows/appmenu-icons.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 2.1 KiB |
|
@ -11,32 +11,10 @@
|
|||
%define glassInactiveBorderColor rgb(102, 102, 102)
|
||||
|
||||
@media not all and (-moz-windows-classic) {
|
||||
#main-window[sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container,
|
||||
#main-window[sizemode="normal"] > #tab-view-deck > #browser-panel > #navigator-toolbox > #toolbar-menubar {
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
#appmenu-button {
|
||||
border-width: 2px;
|
||||
-moz-border-left-colors: @appMenuButtonBorderColor@;
|
||||
-moz-border-bottom-colors: @appMenuButtonBorderColor@;
|
||||
-moz-border-right-colors: @appMenuButtonBorderColor@;
|
||||
margin-bottom: 1px; /* compensate white outer border */
|
||||
box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
|
||||
0 0 2px 1px rgba(255,255,255,.25) inset;
|
||||
}
|
||||
|
||||
#main-window[privatebrowsingmode=temporary] #appmenu-button {
|
||||
-moz-border-left-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
|
||||
-moz-border-bottom-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
|
||||
-moz-border-right-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
|
||||
}
|
||||
|
||||
#appmenu-popup {
|
||||
margin-top: -1px;
|
||||
-moz-margin-start: 1px;
|
||||
}
|
||||
|
||||
.panel-promo-message {
|
||||
font-style: italic;
|
||||
}
|
||||
|
@ -136,18 +114,10 @@
|
|||
-moz-border-top-colors: @glassInactiveBorderColor@ rgba(255,255,255,.6);
|
||||
}
|
||||
|
||||
#main-window[sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container:-moz-lwtheme {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
#main-window[sizemode="normal"] #titlebar-buttonbox:-moz-lwtheme {
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
#appmenu-button {
|
||||
margin-bottom: -1px; /* compensate white outer border */
|
||||
}
|
||||
|
||||
#toolbar-menubar:not(:-moz-lwtheme),
|
||||
#TabsToolbar[tabsontop=true]:not(:-moz-lwtheme),
|
||||
#nav-bar[tabsontop=false]:not(:-moz-lwtheme),
|
||||
|
@ -407,72 +377,3 @@
|
|||
#close-button:-moz-locale-dir(rtl) {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
/* ::::: splitmenu highlight style that imitates Windows 7 start menu ::::: */
|
||||
@media (-moz-windows-default-theme) {
|
||||
.splitmenu-menuitem,
|
||||
.splitmenu-menu {
|
||||
-moz-appearance: none;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.splitmenu-menuitem {
|
||||
-moz-margin-end: 0;
|
||||
}
|
||||
.splitmenu-menu {
|
||||
-moz-margin-start: -1px;
|
||||
}
|
||||
.splitmenu-menuitem:-moz-locale-dir(ltr),
|
||||
.splitmenu-menu:-moz-locale-dir(rtl) {
|
||||
border-top-left-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
}
|
||||
.splitmenu-menu:-moz-locale-dir(ltr),
|
||||
.splitmenu-menuitem:-moz-locale-dir(rtl) {
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
}
|
||||
|
||||
.splitmenu-menuitem > .menu-text {
|
||||
-moz-margin-start: 1px !important;
|
||||
-moz-margin-end: 3px !important;
|
||||
}
|
||||
.splitmenu-menu > .menu-right {
|
||||
-moz-margin-end: -3px;
|
||||
}
|
||||
|
||||
.splitmenu-menuitem[iconic],
|
||||
.splitmenu-menu[iconic] {
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
.splitmenu-menuitem[iconic] > .menu-iconic-left {
|
||||
margin-top: -3px;
|
||||
margin-bottom: -2px;
|
||||
-moz-margin-start: -1px;
|
||||
}
|
||||
.splitmenu-menuitem[iconic] > .menu-iconic-text {
|
||||
-moz-margin-start: 2px !important;
|
||||
-moz-margin-end: 3px !important;
|
||||
}
|
||||
.splitmenu-menu[iconic] > .menu-right {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.splitmenu-menuitem[_moz-menuactive],
|
||||
.splitmenu-menu[_moz-menuactive] {
|
||||
background-color: transparent;
|
||||
background-image: linear-gradient(#fafbfd, #ebf3fd);
|
||||
border-color: #aeccf1;
|
||||
}
|
||||
|
||||
.splitmenu-menuitem[disabled][_moz-menuactive],
|
||||
.splitmenu-menu[disabled][_moz-menuactive] {
|
||||
background-image: linear-gradient(#f8f9f9, #eaeaea);
|
||||
border-color: #d8d7d7;
|
||||
}
|
||||
|
||||
.splitmenu-menu[_moz-menuactive]:not(:hover):not([open]) {
|
||||
background-image: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,16 +18,6 @@
|
|||
%define conditionalForwardWithUrlbar window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large] > :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) > #nav-bar-customizationtarget > #unified-back-forward-button
|
||||
%define conditionalForwardWithUrlbarWidth 27
|
||||
|
||||
%ifdef MOZ_OFFICIAL_BRANDING
|
||||
%define appMenuButtonBorderColor rgba(255,255,255,.5) rgba(83,42,6,.9)
|
||||
%else
|
||||
%if MOZ_UPDATE_CHANNEL == aurora
|
||||
%define appMenuButtonBorderColor hsla(0,0%,100%,.5) hsla(214,89%,21%,.9)
|
||||
%else
|
||||
%define appMenuButtonBorderColor hsla(0,0%,100%,.5) hsla(210,59%,13%,.9)
|
||||
%endif
|
||||
%endif
|
||||
|
||||
#menubar-items {
|
||||
-moz-box-orient: vertical; /* for flex hack */
|
||||
}
|
||||
|
@ -124,446 +114,14 @@
|
|||
background-color: -moz-dialog;
|
||||
}
|
||||
|
||||
/* ::::: app menu button ::::: */
|
||||
|
||||
/* The app menu button must appear on top of the navigator-toolbox in order
|
||||
* for click and hover mouse events to work properly for the button in the
|
||||
* restored window state. Otherwise, elements in the navigator-toolbox, like the
|
||||
* menubar can swallow these events. It will also place the button above the
|
||||
* fog on themes with Aero Glass.
|
||||
*/
|
||||
#main-window[tabsintitlebar] #appmenu-button-container {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#appmenu-button {
|
||||
-moz-appearance: none;
|
||||
background-clip: padding-box;
|
||||
border-radius: 0 0 4px 4px;
|
||||
border: 1px solid;
|
||||
border-top: none;
|
||||
color: white;
|
||||
text-shadow: 0 0 1px rgba(0,0,0,.7),
|
||||
0 1px 1.5px rgba(0,0,0,.5);
|
||||
font-weight: bold;
|
||||
padding: 0 1.5em .05em;
|
||||
margin: 0 0 2px;
|
||||
}
|
||||
|
||||
@media (-moz-windows-classic) {
|
||||
#appmenu-button {
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
%ifndef WINDOWS_AERO
|
||||
@media (-moz-windows-default-theme) {
|
||||
#main-window[tabsintitlebar][sizemode="normal"] #toolbar-menubar {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
#main-window[sizemode="normal"] #appmenu-button {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
#appmenu-button:hover:active,
|
||||
#appmenu-button[open] {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
%ifdef MOZ_OFFICIAL_BRANDING
|
||||
#appmenu-button {
|
||||
background-image: linear-gradient(rgb(247,182,82), rgb(215,98,10) 95%);
|
||||
border-color: rgba(83,42,6,.9);
|
||||
box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
|
||||
0 0 0 1px rgba(255,255,255,.25) inset;
|
||||
}
|
||||
#appmenu-button:hover:not(:active):not([open]) {
|
||||
background-image: radial-gradient(farthest-side at bottom, rgba(252,240,89,.5) 10%, rgba(252,240,89,0) 70%),
|
||||
radial-gradient(farthest-side at bottom, rgb(236,133,0), rgba(255,229,172,0)),
|
||||
linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%);
|
||||
border-color: rgba(83,42,6,.9);
|
||||
box-shadow: 0 1px 0 rgba(255,255,255,.1) inset,
|
||||
0 0 2px 1px rgba(250,234,169,.7) inset,
|
||||
0 -1px 0 rgba(250,234,169,.5) inset;
|
||||
}
|
||||
#appmenu-button:hover:active,
|
||||
#appmenu-button[open] {
|
||||
background-image: linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%);
|
||||
box-shadow: 0 2px 3px rgba(0,0,0,.4) inset,
|
||||
0 1px 1px rgba(0,0,0,.2) inset;
|
||||
}
|
||||
%else
|
||||
%if MOZ_UPDATE_CHANNEL == aurora
|
||||
#appmenu-button {
|
||||
background-image: linear-gradient(hsl(208,99%,37%), hsl(214,90%,23%) 95%);
|
||||
border-color: hsla(214,89%,21%,.9);
|
||||
box-shadow: 0 1px 0 hsla(205,100%,72%,.2) inset,
|
||||
0 0 2px 1px hsla(205,100%,72%,.25) inset;
|
||||
}
|
||||
#appmenu-button:hover:not(:active):not([open]) {
|
||||
background-image: radial-gradient(farthest-side at bottom, hsla(202,100%,85%,.5) 10%, hsla(202,100%,85%,0) 70%),
|
||||
radial-gradient(farthest-side at bottom, hsla(205,100%,72%,.7), hsla(205,100%,72%,0)),
|
||||
linear-gradient(hsl(208,98%,34%), hsl(213,87%,20%) 95%);
|
||||
border-color: hsla(214,89%,21%,.9);
|
||||
box-shadow: 0 1px 0 hsla(205,100%,72%,.15) inset,
|
||||
0 0 2px 1px hsla(205,100%,72%,.5) inset,
|
||||
0 -1px 0 hsla(205,100%,72%,.2) inset;
|
||||
}
|
||||
#appmenu-button:hover:active,
|
||||
#appmenu-button[open] {
|
||||
background-image: linear-gradient(hsl(208,95%,30%), hsl(214,85%,17%) 95%);
|
||||
box-shadow: 0 2px 3px rgba(0,0,0,.4) inset,
|
||||
0 1px 1px rgba(0,0,0,.2) inset;
|
||||
}
|
||||
%else
|
||||
#appmenu-button {
|
||||
background-image: linear-gradient(hsl(211,33%,32%), hsl(209,53%,10%) 95%);
|
||||
border-color: hsla(210,59%,13%,.9);
|
||||
box-shadow: 0 1px 0 hsla(210,48%,90%,.15) inset,
|
||||
0 0 2px 1px hsla(211,65%,85%,.15) inset;
|
||||
}
|
||||
#appmenu-button:hover:not(:active):not([open]) {
|
||||
background-image: radial-gradient(farthest-side at bottom, hsla(210,48%,90%,.5) 10%, hsla(210,48%,90%,0) 70%),
|
||||
radial-gradient(farthest-side at bottom, hsla(211,70%,83%,.5), hsla(211,70%,83%,0)),
|
||||
linear-gradient(hsl(211,33%,32%), hsl(209,53%,10%) 95%);
|
||||
border-color: hsla(210,59%,13%,.9);
|
||||
box-shadow: 0 1px 0 hsla(210,48%,90%,.15) inset,
|
||||
0 0 2px 1px hsla(210,48%,90%,.4) inset,
|
||||
0 -1px 0 hsla(210,48%,90%,.2) inset;
|
||||
}
|
||||
#appmenu-button:hover:active,
|
||||
#appmenu-button[open] {
|
||||
background-image: linear-gradient(hsl(211,33%,26%), hsl(209,53%,6%) 95%);
|
||||
box-shadow: 0 2px 3px rgba(0,0,0,.4) inset,
|
||||
0 1px 1px rgba(0,0,0,.2) inset;
|
||||
}
|
||||
%endif
|
||||
%endif
|
||||
|
||||
#main-window[privatebrowsingmode=temporary] #appmenu-button {
|
||||
background-image: linear-gradient(rgb(153,38,211), rgb(105,19,163) 95%);
|
||||
border-color: rgba(43,8,65,.9);
|
||||
}
|
||||
|
||||
#main-window[privatebrowsingmode=temporary] #appmenu-button:hover:not(:active):not([open]) {
|
||||
background-image: radial-gradient(farthest-side at bottom, rgba(240,193,255,.5) 10%, rgba(240,193,255,0) 70%),
|
||||
radial-gradient(farthest-side at bottom, rgb(192,81,247), rgba(236,172,255,0)),
|
||||
linear-gradient(rgb(144,20,207), rgb(95,0,158) 95%);
|
||||
border-color: rgba(43,8,65,.9);
|
||||
box-shadow: 0 1px 0 rgba(255,255,255,.1) inset,
|
||||
0 0 2px 1px rgba(240,193,255,.7) inset,
|
||||
0 -1px 0 rgba(240,193,255,.5) inset;
|
||||
}
|
||||
|
||||
#main-window[privatebrowsingmode=temporary] #appmenu-button:hover:active,
|
||||
#main-window[privatebrowsingmode=temporary] #appmenu-button[open] {
|
||||
background-image: linear-gradient(rgb(144,20,207), rgb(95,0,158) 95%);
|
||||
}
|
||||
|
||||
#appmenu-button > .button-box {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#appmenu-button > .button-box > .button-menu-dropmarker {
|
||||
list-style-image: url(appmenu-dropmarker.png);
|
||||
width: auto;
|
||||
height: auto;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
-moz-margin-start: .5em;
|
||||
}
|
||||
|
||||
.splitmenu-menuitem {
|
||||
-moz-margin-end: 1px;
|
||||
%ifdef WINDOWS_AERO
|
||||
-moz-padding-end: 0.5em;
|
||||
%endif
|
||||
}
|
||||
|
||||
.splitmenu-menu {
|
||||
-moz-box-pack: end;
|
||||
}
|
||||
|
||||
.appmenu-edit-button {
|
||||
-moz-appearance: none;
|
||||
border: 1px solid transparent;
|
||||
padding: 2px;
|
||||
background: transparent;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.appmenu-edit-button[disabled="true"] {
|
||||
opacity: .3;
|
||||
}
|
||||
|
||||
#appmenuPrimaryPane {
|
||||
-moz-border-end: 1px solid ThreeDShadow;
|
||||
}
|
||||
|
||||
@media (-moz-windows-default-theme) {
|
||||
#appmenu-popup {
|
||||
-moz-appearance: none;
|
||||
background: white;
|
||||
border: 1px solid ThreeDShadow;
|
||||
}
|
||||
#appmenuPrimaryPane {
|
||||
background-color: rgba(255,255,255,0.5);
|
||||
padding: 2px;
|
||||
-moz-border-end: none;
|
||||
}
|
||||
#appmenuSecondaryPane {
|
||||
background-color: #f1f5fb;
|
||||
box-shadow: 1px 0 2px rgb(204,214,234) inset;
|
||||
-moz-padding-start: 3px;
|
||||
-moz-padding-end: 2px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
|
||||
}
|
||||
#appmenuSecondaryPane:-moz-locale-dir(rtl) {
|
||||
box-shadow: -1px 0 2px rgb(204,214,234) inset;
|
||||
}
|
||||
|
||||
%ifdef WINDOWS_AERO
|
||||
#appmenuPrimaryPane menupopup {
|
||||
-moz-appearance: none;
|
||||
background-image: linear-gradient(to right, white 26px, ThreeDLightShadow 26px,
|
||||
ThreeDLightShadow 27px, ThreeDHighlight 27px,
|
||||
ThreeDHighlight 28px, white 28px);
|
||||
border: 3px solid;
|
||||
-moz-border-top-colors: ThreeDShadow white;
|
||||
-moz-border-bottom-colors: ThreeDShadow white;
|
||||
-moz-border-left-colors: ThreeDShadow white;
|
||||
-moz-border-right-colors: ThreeDShadow white;
|
||||
}
|
||||
%endif
|
||||
|
||||
#appmenuSecondaryPane menupopup {
|
||||
-moz-appearance: none;
|
||||
%ifdef WINDOWS_AERO
|
||||
background-image: linear-gradient(to right, #f1f5fb 26px, ThreeDLightShadow 26px,
|
||||
ThreeDLightShadow 27px, ThreeDHighlight 27px,
|
||||
ThreeDHighlight 28px, #f1f5fb 28px);
|
||||
border: 3px solid;
|
||||
-moz-border-top-colors: ThreeDShadow #f1f5fb;
|
||||
-moz-border-bottom-colors: ThreeDShadow #f1f5fb;
|
||||
-moz-border-left-colors: ThreeDShadow #f1f5fb;
|
||||
-moz-border-right-colors: ThreeDShadow #f1f5fb;
|
||||
%else
|
||||
background-color: #f1f5fb;
|
||||
border: 1px solid ThreeDShadow;
|
||||
padding: 2px;
|
||||
%endif
|
||||
}
|
||||
|
||||
%ifdef WINDOWS_AERO
|
||||
#appmenuPrimaryPane menupopup:-moz-locale-dir(rtl) {
|
||||
background-image: linear-gradient(to left, white 26px, ThreeDLightShadow 26px,
|
||||
ThreeDLightShadow 27px, ThreeDHighlight 27px,
|
||||
ThreeDHighlight 28px, white 28px);
|
||||
}
|
||||
#appmenuSecondaryPane menupopup:-moz-locale-dir(rtl) {
|
||||
background-image: linear-gradient(to left, #f1f5fb 26px, ThreeDLightShadow 26px,
|
||||
ThreeDLightShadow 27px, ThreeDHighlight 27px,
|
||||
ThreeDHighlight 28px, #f1f5fb 28px);
|
||||
}
|
||||
|
||||
/* Hi-DPI overrides of the menu backgrounds, to adjust where the gutter line falls */
|
||||
@media (min-resolution: 1.25dppx) {
|
||||
#appmenuPrimaryPane menupopup {
|
||||
background-image: linear-gradient(to right, white 22.4px, ThreeDLightShadow 22.4px,
|
||||
ThreeDLightShadow 23.2px, ThreeDHighlight 23.2px,
|
||||
ThreeDHighlight 24px, white 24px);
|
||||
}
|
||||
#appmenuSecondaryPane menupopup {
|
||||
background-image: linear-gradient(to right, #f1f5fb 22.4px, ThreeDLightShadow 22.4px,
|
||||
ThreeDLightShadow 23.2px, ThreeDHighlight 23.2px,
|
||||
ThreeDHighlight 24px, #f1f5fb 24px);
|
||||
}
|
||||
#appmenuPrimaryPane menupopup:-moz-locale-dir(rtl) {
|
||||
background-image: linear-gradient(to left, white 22.4px, ThreeDLightShadow 22.4px,
|
||||
ThreeDLightShadow 23.2px, ThreeDHighlight 23.2px,
|
||||
ThreeDHighlight 24px, white 24px);
|
||||
}
|
||||
#appmenuSecondaryPane menupopup:-moz-locale-dir(rtl) {
|
||||
background-image: linear-gradient(to left, #f1f5fb 22.4px, ThreeDLightShadow 22.4px,
|
||||
ThreeDLightShadow 23.2px, ThreeDHighlight 23.2px,
|
||||
ThreeDHighlight 24px, #f1f5fb 24px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-resolution: 1.5dppx) {
|
||||
#appmenuPrimaryPane menupopup {
|
||||
background-image: linear-gradient(to right, white 20.6667px, ThreeDLightShadow 20.6667px,
|
||||
ThreeDLightShadow 21.3333px, ThreeDHighlight 21.3333px,
|
||||
ThreeDHighlight 22px, white 22px);
|
||||
}
|
||||
#appmenuSecondaryPane menupopup {
|
||||
background-image: linear-gradient(to right, #f1f5fb 20.6667px, ThreeDLightShadow 20.6667px,
|
||||
ThreeDLightShadow 21.3333px, ThreeDHighlight 21.3333px,
|
||||
ThreeDHighlight 22px, #f1f5fb 22px);
|
||||
}
|
||||
#appmenuPrimaryPane menupopup:-moz-locale-dir(rtl) {
|
||||
background-image: linear-gradient(to left, white 20.6667px, ThreeDLightShadow 20.6667px,
|
||||
ThreeDLightShadow 21.3333px, ThreeDHighlight 21.3333px,
|
||||
ThreeDHighlight 22px, white 22px);
|
||||
}
|
||||
#appmenuSecondaryPane menupopup:-moz-locale-dir(rtl) {
|
||||
background-image: linear-gradient(to left, #f1f5fb 20.6667px, ThreeDLightShadow 20.6667px,
|
||||
ThreeDLightShadow 21.3333px, ThreeDHighlight 21.3333px,
|
||||
ThreeDHighlight 22px, #f1f5fb 22px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-resolution: 2dppx) {
|
||||
#appmenuPrimaryPane menupopup {
|
||||
background-image: linear-gradient(to right, white 19.5px, ThreeDLightShadow 19.5px,
|
||||
ThreeDLightShadow 20px, ThreeDHighlight 20px,
|
||||
ThreeDHighlight 20.5px, white 20.5px);
|
||||
}
|
||||
#appmenuSecondaryPane menupopup {
|
||||
background-image: linear-gradient(to right, #f1f5fb 19.5px, ThreeDLightShadow 19.5px,
|
||||
ThreeDLightShadow 20px, ThreeDHighlight 20px,
|
||||
ThreeDHighlight 20.5px, #f1f5fb 20.5px);
|
||||
}
|
||||
#appmenuPrimaryPane menupopup:-moz-locale-dir(rtl) {
|
||||
background-image: linear-gradient(to left, white 19.5px, ThreeDLightShadow 19.5px,
|
||||
ThreeDLightShadow 20px, ThreeDHighlight 20px,
|
||||
ThreeDHighlight 20.5px, white 20.5px);
|
||||
}
|
||||
#appmenuSecondaryPane menupopup:-moz-locale-dir(rtl) {
|
||||
background-image: linear-gradient(to left, #f1f5fb 19.5px, ThreeDLightShadow 19.5px,
|
||||
ThreeDLightShadow 20px, ThreeDHighlight 20px,
|
||||
ThreeDHighlight 20.5px, #f1f5fb 20.5px);
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
.appmenu-menuseparator {
|
||||
-moz-appearance: none;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
%ifdef WINDOWS_AERO
|
||||
-moz-margin-start: 30px;
|
||||
%else
|
||||
-moz-margin-start: calc(1.45em + 4px);
|
||||
%endif
|
||||
padding: 0;
|
||||
border-top: 1px solid #d6e5f5;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
%ifdef WINDOWS_AERO
|
||||
@media (min-resolution: 1.25dppx) {
|
||||
.appmenu-menuseparator {
|
||||
-moz-margin-start: 25px;
|
||||
}
|
||||
}
|
||||
@media (min-resolution: 1.5dppx) {
|
||||
.appmenu-menuseparator {
|
||||
-moz-margin-start: 24px;
|
||||
}
|
||||
}
|
||||
@media (min-resolution: 2dppx) {
|
||||
.appmenu-menuseparator {
|
||||
-moz-margin-start: 22px;
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
.appmenu-edit-button:not([disabled]):hover {
|
||||
border: 1px solid #b8d6fb;
|
||||
box-shadow: inset 0 0 1px white;
|
||||
background: linear-gradient(#fafbfd, #ebf3fd);
|
||||
transition: .2s ease-in;
|
||||
}
|
||||
}
|
||||
|
||||
#appmenuSecondaryPane-spacer {
|
||||
min-height: 1em;
|
||||
}
|
||||
|
||||
#appmenu-editmenu {
|
||||
-moz-box-pack: end;
|
||||
}
|
||||
|
||||
#appmenu_print,
|
||||
#appmenu_print_popup,
|
||||
.appmenu-edit-button,
|
||||
#appmenu-editmenu-cut,
|
||||
#appmenu-editmenu-copy,
|
||||
#appmenu-editmenu-paste,
|
||||
#appmenu-quit {
|
||||
list-style-image: url("appmenu-icons.png");
|
||||
}
|
||||
|
||||
#appmenu-cut,
|
||||
#appmenu-editmenu-cut {
|
||||
-moz-image-region: rect(0 16px 16px 0);
|
||||
}
|
||||
|
||||
#appmenu-copy,
|
||||
#appmenu-editmenu-copy {
|
||||
-moz-image-region: rect(0 32px 16px 16px);
|
||||
}
|
||||
|
||||
#appmenu-paste,
|
||||
#appmenu-editmenu-paste {
|
||||
-moz-image-region: rect(0 48px 16px 32px);
|
||||
}
|
||||
|
||||
#appmenu_print,
|
||||
#appmenu_print_popup {
|
||||
-moz-image-region: rect(0 64px 16px 48px);
|
||||
}
|
||||
|
||||
#appmenu-quit {
|
||||
-moz-image-region: rect(0 80px 16px 64px);
|
||||
}
|
||||
|
||||
#appmenu-edit-label {
|
||||
-moz-appearance: none;
|
||||
background: transparent;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#appmenu_bookmarks {
|
||||
list-style-image: url("chrome://browser/skin/places/bookmark.png");
|
||||
-moz-image-region: rect(0px 48px 16px 32px);
|
||||
}
|
||||
|
||||
#appmenu_privateBrowsing,
|
||||
#appmenu_newPrivateWindow {
|
||||
list-style-image: url("chrome://browser/skin/Privacy-16.png");
|
||||
}
|
||||
|
||||
@media (min-resolution: 1.25dppx) {
|
||||
#appmenu_privateBrowsing,
|
||||
#appmenu_newPrivateWindow {
|
||||
list-style-image: url("chrome://browser/skin/Privacy-32.png");
|
||||
}
|
||||
}
|
||||
|
||||
#appmenu_addons {
|
||||
list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
|
||||
}
|
||||
|
||||
@media (min-resolution: 1.25dppx) {
|
||||
#appmenu_addons {
|
||||
list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
|
||||
}
|
||||
}
|
||||
|
||||
#BMB_bookmarkThisPage,
|
||||
#appmenu_bookmarkThisPage {
|
||||
list-style-image: url("chrome://browser/skin/places/bookmark.png");
|
||||
-moz-image-region: rect(0 16px 16px 0);
|
||||
}
|
||||
|
||||
/* ::::: titlebar ::::: */
|
||||
|
||||
#main-window[sizemode="normal"] > #titlebar {
|
||||
|
@ -575,7 +133,6 @@
|
|||
}
|
||||
|
||||
@media (-moz-windows-classic) {
|
||||
#main-window[tabsintitlebar][sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container,
|
||||
#main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel > #navigator-toolbox > #toolbar-menubar {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
@ -2426,8 +1983,6 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
|
|||
}
|
||||
|
||||
/* Bookmarks roots menu-items */
|
||||
#appmenu_subscribeToPage:not([disabled]),
|
||||
#appmenu_subscribeToPageMenu,
|
||||
#subscribeToPageMenuitem:not([disabled]),
|
||||
#subscribeToPageMenupopup,
|
||||
#BMB_subscribeToPageMenuitem:not([disabled]),
|
||||
|
@ -2436,13 +1991,11 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
|
|||
}
|
||||
|
||||
#bookmarksToolbarFolderMenu,
|
||||
#appmenu_bookmarksToolbar,
|
||||
#BMB_bookmarksToolbar {
|
||||
list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
|
||||
-moz-image-region: auto;
|
||||
}
|
||||
|
||||
#appmenu_unsortedBookmarks,
|
||||
#BMB_unsortedBookmarks {
|
||||
list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png");
|
||||
-moz-image-region: auto;
|
||||
|
@ -2997,9 +2550,3 @@ chatbox {
|
|||
#main-window[privatebrowsingmode=temporary] #toolbar-menubar:-moz-locale-dir(rtl) {
|
||||
background-position: top left;
|
||||
}
|
||||
|
||||
#main-window[privatebrowsingmode=temporary] #appmenu-button > .button-box > .box-inherit > .button-icon {
|
||||
list-style-image: url("chrome://browser/skin/privatebrowsing-light.png");
|
||||
width: 20px;
|
||||
height: 16px;
|
||||
}
|
||||
|
|
|
@ -21,8 +21,6 @@ browser.jar:
|
|||
#endif
|
||||
skin/classic/browser/actionicon-tab.png
|
||||
skin/classic/browser/appmenu.png
|
||||
skin/classic/browser/appmenu-icons.png
|
||||
skin/classic/browser/appmenu-dropmarker.png
|
||||
* skin/classic/browser/browser.css
|
||||
* skin/classic/browser/browser-lightweightTheme.css
|
||||
skin/classic/browser/click-to-play-warning-stripes.png
|
||||
|
@ -279,8 +277,6 @@ browser.jar:
|
|||
#endif
|
||||
skin/classic/aero/browser/actionicon-tab.png
|
||||
skin/classic/aero/browser/appmenu.png
|
||||
skin/classic/aero/browser/appmenu-dropmarker.png
|
||||
skin/classic/aero/browser/appmenu-icons.png
|
||||
* skin/classic/aero/browser/browser.css (browser-aero.css)
|
||||
* skin/classic/aero/browser/browser-lightweightTheme.css
|
||||
skin/classic/aero/browser/click-to-play-warning-stripes.png
|
||||
|
|
Загрузка…
Ссылка в новой задаче