Bug 1617679: Reword the SSB menus and add a page action icon. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D63920

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dave Townsend 2020-02-26 22:15:19 +00:00
parent 0d4837b9f2
commit 54615a06b1
5 changed files with 15 additions and 2 deletions

View File

@ -340,7 +340,7 @@
/>
<toolbarbutton id="appMenu-ssb-button"
class="subviewbutton subviewbutton-iconic subviewbutton-nav"
label="Site Browsers"
label="Installed Websites"
closemenu="none"
oncommand="PanelUI.showSubView('appMenu-SSBView', this)"
hidden="true" persist="hidden"/>

View File

@ -1269,7 +1269,7 @@ if (SiteSpecificBrowserService.isEnabled) {
gBuiltInActions.push({
id: "launchSSB",
// Hardcoded for now. Localization tracked in bug 1602528.
title: "Launch Site Specific Browser",
title: "Install Website as App",
onLocationChange(browserWindow) {
browserPageActions(browserWindow).launchSSB.updateState();
},

View File

@ -0,0 +1,7 @@
<!-- 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/. -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path fill="context-fill" fill-opacity="context-fill-opacity" d="M15 2h-1V1a1 1 0 0 0-2 0v1h-1a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0V4h1a1 1 0 0 0 0-2z"/>
<path fill="context-fill" fill-opacity="context-fill-opacity" d="M13 7a1 1 0 0 0-1 1v5H3V4h5a1 1 0 0 0 0-2H2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1z"/>
</svg>

After

Width:  |  Height:  |  Size: 610 B

View File

@ -291,3 +291,4 @@
skin/classic/browser/privatebrowsing/aboutPrivateBrowsing.css (../shared/privatebrowsing/aboutPrivateBrowsing.css)
skin/classic/browser/privatebrowsing/favicon.svg (../shared/privatebrowsing/favicon.svg)
skin/classic/browser/privatebrowsing/private-browsing.svg (../shared/privatebrowsing/private-browsing.svg)
skin/classic/browser/install-ssb.svg (../shared/install-ssb.svg)

View File

@ -398,6 +398,11 @@
--arrowpanel-background: #fbfbfb;
}
#pageAction-panel-launchSSB,
#pageAction-urlbar-launchSSB {
list-style-image: url("chrome://browser/skin/install-ssb.svg");
}
/* URL bar and page action buttons */
#page-action-buttons {