diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 36c730e64b73..3061bf49dd52 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -6566,7 +6566,6 @@ const nodeToTooltipMap = { "downloads-button": "downloads.tooltip", "fullscreen-button": "fullscreenButton.tooltip", "appMenu-fullscreen-button": "fullscreenButton.tooltip", - "appMenu-fullscreen-button2": "fullscreenButton.tooltip", "new-window-button": "newWindowButton.tooltip", "new-tab-button": "newTabButton.tooltip", "tabs-newtab-button": "newTabButton.tooltip", @@ -6577,11 +6576,8 @@ const nodeToTooltipMap = { "appMenu-copy-button": "copy-button.tooltip", "appMenu-paste-button": "paste-button.tooltip", "appMenu-zoomEnlarge-button": "zoomEnlarge-button.tooltip", - "appMenu-zoomEnlarge-button2": "zoomEnlarge-button.tooltip", "appMenu-zoomReset-button": "zoomReset-button.tooltip", - "appMenu-zoomReset-button2": "zoomReset-button.tooltip", "appMenu-zoomReduce-button": "zoomReduce-button.tooltip", - "appMenu-zoomReduce-button2": "zoomReduce-button.tooltip", "reader-mode-button": "reader-mode-button.tooltip", "print-button": "printButton.tooltip", }; @@ -6592,7 +6588,6 @@ const nodeToShortcutMap = { "downloads-button": "key_openDownloads", "fullscreen-button": "key_fullScreen", "appMenu-fullscreen-button": "key_fullScreen", - "appMenu-fullscreen-button2": "key_fullScreen", "new-window-button": "key_newNavigator", "new-tab-button": "key_newNavigatorTab", "tabs-newtab-button": "key_newNavigatorTab", @@ -6603,11 +6598,8 @@ const nodeToShortcutMap = { "appMenu-copy-button": "key_copy", "appMenu-paste-button": "key_paste", "appMenu-zoomEnlarge-button": "key_fullZoomEnlarge", - "appMenu-zoomEnlarge-button2": "key_fullZoomEnlarge", "appMenu-zoomReset-button": "key_fullZoomReset", - "appMenu-zoomReset-button2": "key_fullZoomReset", "appMenu-zoomReduce-button": "key_fullZoomReduce", - "appMenu-zoomReduce-button2": "key_fullZoomReduce", "reader-mode-button": "key_toggleReaderMode", "print-button": "printKb", }; diff --git a/browser/base/content/browser.xhtml b/browser/base/content/browser.xhtml index b8b2774aa927..da7d002aba43 100644 --- a/browser/base/content/browser.xhtml +++ b/browser/base/content/browser.xhtml @@ -954,124 +954,26 @@ - - - - - - - - - - - - - - - - - - - - -#ifndef XP_MACOSX + oncommand="PanelUI.showSubView('appMenu-libraryView', this)"/> +#ifdef XP_WIN + data-l10n-id="menu-quit-button-win" +#else + data-l10n-id="menu-quit-button" #endif + key="key_quitApplication" + command="cmd_quitApplication"/> diff --git a/browser/locales/en-US/browser/appmenu.ftl b/browser/locales/en-US/browser/appmenu.ftl index 4e7b20d818dc..ea016bf2ecff 100644 --- a/browser/locales/en-US/browser/appmenu.ftl +++ b/browser/locales/en-US/browser/appmenu.ftl @@ -13,21 +13,6 @@ appmenuitem-new-window = .label = New Window appmenuitem-new-private-window = .label = New Private Window -appmenuitem-passwords = - .label = Passwords -appmenuitem-extensions-and-themes = - .label = Extensions and Themes -appmenuitem-find-in-page = - .label = Find In Pageā€¦ -appmenuitem-more-tools = - .label = More Tools -appmenuitem-exit = - .label = Exit - -# Settings is now used to access the browser settings across all platforms, -# instead of Options or Preferences. -appmenuitem-settings = - .label = Settings ## Zoom and Fullscreen Controls diff --git a/browser/modules/ZoomUI.jsm b/browser/modules/ZoomUI.jsm index fa9ac622bf68..d3eafe2ac717 100644 --- a/browser/modules/ZoomUI.jsm +++ b/browser/modules/ZoomUI.jsm @@ -131,9 +131,7 @@ async function updateZoomUI(aBrowser, aAnimate = false) { let appMenuZoomReset = PanelMultiView.getViewNode( win.document, - Services.prefs.getBoolPref("browser.proton.appmenu.enabled", false) - ? "appMenu-zoomReset-button2" - : "appMenu-zoomReset-button" + "appMenu-zoomReset-button" ); // Exit early if UI elements aren't present. diff --git a/browser/themes/shared/customizableui/panelUI.inc.css b/browser/themes/shared/customizableui/panelUI.inc.css index e43c11a7b3f8..4b4c0e53c747 100644 --- a/browser/themes/shared/customizableui/panelUI.inc.css +++ b/browser/themes/shared/customizableui/panelUI.inc.css @@ -1312,14 +1312,12 @@ panelmultiview .toolbaritem-combined-buttons > spacer.after-label { padding: 4px 5px; } -#appMenu-zoom-controls > .subviewbutton, -#appMenu-zoom-controls2 > .subviewbutton { +#appMenu-zoom-controls > .subviewbutton { margin-inline-start: 10px; } /* Unset the min-height constraint, because that works better for a text-only button. */ -#appMenu-zoomReset-button, -#appMenu-zoomReset-button2 { +#appMenu-zoomReset-button { min-height: unset; border: 1px solid var(--panel-separator-color); border-radius: 10000px; @@ -1327,24 +1325,20 @@ panelmultiview .toolbaritem-combined-buttons > spacer.after-label { background-color: var(--arrowpanel-dimmed); } -#appMenu-zoomReset-button@buttonStateHover@, -#appMenu-zoomReset-button2@buttonStateHover@ { +#appMenu-zoomReset-button@buttonStateHover@ { background-color: var(--arrowpanel-dimmed-further); } -#appMenu-zoomReset-button@buttonStateActive@, -#appMenu-zoomReset-button2@buttonStateActive@ { +#appMenu-zoomReset-button@buttonStateActive@ { background-color: var(--arrowpanel-dimmed-even-further); } -#appMenu-zoomReset-button > .toolbarbutton-text, -#appMenu-zoomReset-button2 > .toolbarbutton-text { +#appMenu-zoomReset-button > .toolbarbutton-text { min-width: calc(3ch + 8px); text-align: center; } -#appMenu-zoom-controls > toolbarseparator[orient="vertical"] + .subviewbutton, -#appMenu-zoom-controls2 > toolbarseparator[orient="vertical"] + .subviewbutton { +#appMenu-zoom-controls > toolbarseparator[orient="vertical"] + .subviewbutton { margin-inline-start: 0; } diff --git a/browser/themes/shared/menupanel.inc.css b/browser/themes/shared/menupanel.inc.css index 7f8fd207851b..1efa44114089 100644 --- a/browser/themes/shared/menupanel.inc.css +++ b/browser/themes/shared/menupanel.inc.css @@ -76,23 +76,19 @@ list-style-image: url(chrome://browser/skin/quit.svg); } -#appMenu-zoomEnlarge-button, -#appMenu-zoomEnlarge-button2 { +#appMenu-zoomEnlarge-button { list-style-image: url(chrome://browser/skin/zoom-in.svg); } -#appMenu-zoomReduce-button, -#appMenu-zoomReduce-button2 { +#appMenu-zoomReduce-button { list-style-image: url(chrome://browser/skin/zoom-out.svg); } -#appMenu-fullscreen-button, -#appMenu-fullscreen-button2 { +#appMenu-fullscreen-button { list-style-image: url(chrome://browser/skin/fullscreen.svg); } -#appMenu-fullscreen-button[checked], -#appMenu-fullscreen-button2[checked] { +#appMenu-fullscreen-button[checked] { list-style-image: url(chrome://browser/skin/fullscreen-exit.svg); }