Backed out changeset 1538b0445eda (bug 1366555) for timing browser_locationBarCommand.js and browser_locationBarExternalLoad.js. r=backout
@@ -248,7 +248,11 @@ pref("browser.stopReloadAnimation.enabled", true);
|
||||
pref("browser.uidensity", 0);
|
||||
// Whether Firefox will automatically override the uidensity to "touch"
|
||||
// while the user is in a touch environment (such as Windows tablet mode).
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
pref("browser.touchmode.auto", true);
|
||||
#else
|
||||
pref("browser.touchmode.auto", false);
|
||||
#endif
|
||||
|
||||
// At startup, check if we're the default browser and prompt user if not.
|
||||
pref("browser.shell.checkDefaultBrowser", true);
|
||||
|
||||
@@ -47,6 +47,9 @@ var BrowserPageActions = {
|
||||
* Inits. Call to init.
|
||||
*/
|
||||
init() {
|
||||
if (!AppConstants.MOZ_PHOTON_THEME) {
|
||||
return;
|
||||
}
|
||||
for (let action of PageActions.actions) {
|
||||
this.placeAction(action, PageActions.insertBeforeActionIDInUrlbar(action));
|
||||
}
|
||||
|
||||
@@ -1284,12 +1284,32 @@ var BookmarkingUI = {
|
||||
},
|
||||
|
||||
get star() {
|
||||
delete this.star;
|
||||
return this.star = document.getElementById(this.STAR_ID);
|
||||
if (AppConstants.MOZ_PHOTON_THEME) {
|
||||
delete this.star;
|
||||
return this.star = document.getElementById(this.STAR_ID);
|
||||
}
|
||||
/* Can't make this a self-deleting getter because it's anonymous content
|
||||
* and might lose/regain bindings at some point. */
|
||||
return document.getAnonymousElementByAttribute(this.button, "anonid",
|
||||
"button");
|
||||
},
|
||||
|
||||
get anchor() {
|
||||
return this.star;
|
||||
if (AppConstants.MOZ_PHOTON_THEME) {
|
||||
return this.star;
|
||||
}
|
||||
if (!this._shouldUpdateStarState()) {
|
||||
return null;
|
||||
}
|
||||
let widget = CustomizableUI.getWidget(this.BOOKMARK_BUTTON_ID)
|
||||
.forWindow(window);
|
||||
if (widget.overflowed)
|
||||
return widget.anchor;
|
||||
|
||||
let star = this.star;
|
||||
return star ? document.getAnonymousElementByAttribute(star, "class",
|
||||
"toolbarbutton-icon")
|
||||
: null;
|
||||
},
|
||||
|
||||
get notifier() {
|
||||
@@ -1312,6 +1332,9 @@ var BookmarkingUI = {
|
||||
STATUS_UNSTARRED: 0,
|
||||
STATUS_STARRED: 1,
|
||||
get status() {
|
||||
if (!this._shouldUpdateStarState()) {
|
||||
return this.STATUS_UNSTARRED;
|
||||
}
|
||||
if (this._pendingUpdate)
|
||||
return this.STATUS_UPDATING;
|
||||
return this.broadcaster.hasAttribute("starred") ? this.STATUS_STARRED
|
||||
@@ -1338,6 +1361,17 @@ var BookmarkingUI = {
|
||||
return gNavigatorBundle.getFormattedString(strId, args);
|
||||
},
|
||||
|
||||
/**
|
||||
* The type of the area in which the button is currently located.
|
||||
* When in the panel, we don't update the button's icon.
|
||||
*/
|
||||
_currentAreaType: null,
|
||||
_shouldUpdateStarState() {
|
||||
// Remove everything checking _shouldUpdateStarState when non-photon goes away.
|
||||
return AppConstants.MOZ_PHOTON_THEME ||
|
||||
this._currentAreaType == CustomizableUI.TYPE_TOOLBAR;
|
||||
},
|
||||
|
||||
/**
|
||||
* The popup contents must be updated when the user customizes the UI, or
|
||||
* changes the personal toolbar collapsed status. In such a case, any needed
|
||||
@@ -1361,7 +1395,7 @@ var BookmarkingUI = {
|
||||
// Separately, in Photon, if the button is in the dynamic portion of the
|
||||
// overflow panel, we want to show a subview instead.
|
||||
if (this.button.getAttribute("cui-areatype") == CustomizableUI.TYPE_MENU_PANEL ||
|
||||
this.button.hasAttribute("overflowedItem")) {
|
||||
(AppConstants.MOZ_PHOTON_THEME && this.button.hasAttribute("overflowedItem"))) {
|
||||
this._showSubView();
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
@@ -1584,6 +1618,11 @@ var BookmarkingUI = {
|
||||
Services.prefs.setBoolPref(this.RECENTLY_BOOKMARKED_PREF, false);
|
||||
},
|
||||
|
||||
_updateCustomizationState: function BUI__updateCustomizationState() {
|
||||
let placement = CustomizableUI.getPlacementOfWidget(this.BOOKMARK_BUTTON_ID);
|
||||
this._currentAreaType = placement && CustomizableUI.getAreaType(placement.area);
|
||||
},
|
||||
|
||||
_uninitView: function BUI__uninitView() {
|
||||
// When an element with a placesView attached is removed and re-inserted,
|
||||
// XBL reapplies the binding causing any kind of issues and possible leaks,
|
||||
@@ -1639,6 +1678,13 @@ var BookmarkingUI = {
|
||||
},
|
||||
|
||||
_onWidgetWasMoved: function BUI_widgetWasMoved() {
|
||||
let usedToUpdateStarState = this._shouldUpdateStarState();
|
||||
this._updateCustomizationState();
|
||||
if (!usedToUpdateStarState && this._shouldUpdateStarState()) {
|
||||
this.updateStarState();
|
||||
} else if (usedToUpdateStarState && !this._shouldUpdateStarState()) {
|
||||
this._updateStar();
|
||||
}
|
||||
// If we're moved outside of customize mode, we need to uninit
|
||||
// our view so it gets reconstructed.
|
||||
if (!this._isCustomizing) {
|
||||
@@ -1655,6 +1701,10 @@ var BookmarkingUI = {
|
||||
|
||||
init() {
|
||||
CustomizableUI.addListener(this);
|
||||
if (!AppConstants.MOZ_PHOTON_THEME) {
|
||||
this._updateCustomizationState();
|
||||
}
|
||||
|
||||
if (AppConstants.MOZ_PHOTON_ANIMATIONS &&
|
||||
Services.prefs.getBoolPref("toolkit.cosmeticAnimations.enabled")) {
|
||||
let starButtonBox = document.getElementById("star-button-box");
|
||||
@@ -1733,10 +1783,22 @@ var BookmarkingUI = {
|
||||
},
|
||||
|
||||
_updateStar: function BUI__updateStar() {
|
||||
if (!this._shouldUpdateStarState()) {
|
||||
if (this.broadcaster.hasAttribute("starred")) {
|
||||
this.broadcaster.removeAttribute("starred");
|
||||
this.broadcaster.removeAttribute("buttontooltiptext");
|
||||
this.broadcaster.removeAttribute("tooltiptext");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._itemGuids.size > 0) {
|
||||
this.broadcaster.setAttribute("starred", "true");
|
||||
this.broadcaster.setAttribute("buttontooltiptext", this._starredTooltip);
|
||||
this.broadcaster.setAttribute("tooltiptext", this._starredTooltip);
|
||||
if (!AppConstants.MOZ_PHOTON_THEME && this.button.getAttribute("overflowedItem") == "true") {
|
||||
this.button.setAttribute("label", this._starButtonOverflowedStarredLabel);
|
||||
}
|
||||
} else {
|
||||
if (AppConstants.MOZ_PHOTON_ANIMATIONS) {
|
||||
this.star.removeAttribute("animate");
|
||||
@@ -1744,6 +1806,9 @@ var BookmarkingUI = {
|
||||
this.broadcaster.removeAttribute("starred");
|
||||
this.broadcaster.setAttribute("buttontooltiptext", this._unstarredTooltip);
|
||||
this.broadcaster.setAttribute("tooltiptext", this._unstarredTooltip);
|
||||
if (!AppConstants.MOZ_PHOTON_THEME && this.button.getAttribute("overflowedItem") == "true") {
|
||||
this.button.setAttribute("label", this._starButtonOverflowedLabel);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1869,6 +1934,10 @@ var BookmarkingUI = {
|
||||
// Ignore non-left clicks on the star, or if we are updating its state.
|
||||
if (!this._pendingUpdate && (aEvent.type != "click" || aEvent.button == 0)) {
|
||||
let isBookmarked = this._itemGuids.size > 0;
|
||||
// Disable the old animation in photon
|
||||
if (!isBookmarked && !AppConstants.MOZ_PHOTON_THEME)
|
||||
this._showBookmarkedNotification();
|
||||
// Set up variables for new animation in Photon
|
||||
if (!isBookmarked && AppConstants.MOZ_PHOTON_ANIMATIONS) {
|
||||
BrowserUtils.setToolbarButtonHeightProperty(this.star);
|
||||
this.star.setAttribute("animate", "true");
|
||||
@@ -2010,6 +2079,22 @@ var BookmarkingUI = {
|
||||
return this._starButtonOverflowedStarredLabel =
|
||||
gNavigatorBundle.getString("starButtonOverflowedStarred.label");
|
||||
},
|
||||
onWidgetOverflow(aNode, aContainer) {
|
||||
let win = aNode.ownerGlobal;
|
||||
if (AppConstants.MOZ_PHOTON_THEME || aNode.id != this.BOOKMARK_BUTTON_ID || win != window)
|
||||
return;
|
||||
|
||||
|
||||
let currentLabel = aNode.getAttribute("label");
|
||||
if (!this._starButtonLabel)
|
||||
this._starButtonLabel = currentLabel;
|
||||
|
||||
if (currentLabel == this._starButtonLabel) {
|
||||
let desiredLabel = this._itemGuids.size > 0 ? this._starButtonOverflowedStarredLabel
|
||||
: this._starButtonOverflowedLabel;
|
||||
aNode.setAttribute("label", desiredLabel);
|
||||
}
|
||||
},
|
||||
|
||||
onWidgetUnderflow(aNode, aContainer) {
|
||||
let win = aNode.ownerGlobal;
|
||||
@@ -2019,6 +2104,12 @@ var BookmarkingUI = {
|
||||
// The view gets broken by being removed and reinserted. Uninit
|
||||
// here so popupshowing will generate a new one:
|
||||
this._uninitView();
|
||||
|
||||
if (AppConstants.MOZ_PHOTON_THEME)
|
||||
return;
|
||||
|
||||
if (aNode.getAttribute("label") != this._starButtonLabel)
|
||||
aNode.setAttribute("label", this._starButtonLabel);
|
||||
},
|
||||
|
||||
QueryInterface: XPCOMUtils.generateQI([
|
||||
|
||||
@@ -176,7 +176,8 @@ var TabsInTitlebar = {
|
||||
|
||||
// Begin setting CSS properties which will cause a reflow
|
||||
|
||||
if (AppConstants.isPlatformAndVersionAtLeast("win", "10.0")) {
|
||||
if (AppConstants.MOZ_PHOTON_THEME &&
|
||||
AppConstants.isPlatformAndVersionAtLeast("win", "10.0")) {
|
||||
if (!menuHeight && window.windowState == window.STATE_MAXIMIZED) {
|
||||
titlebarContentHeight = Math.max(titlebarContentHeight, fullTabsHeight);
|
||||
$("titlebar-buttonbox").style.height = titlebarContentHeight + "px";
|
||||
|
||||
@@ -18,7 +18,11 @@
|
||||
color: var(--lwt-text-color) !important;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
:root:-moz-lwtheme:not([customization-lwtheme]) {
|
||||
%else
|
||||
:root:-moz-lwtheme {
|
||||
%endif
|
||||
background-color: var(--lwt-accent-color) !important;
|
||||
background-image: var(--lwt-header-image), var(--lwt-additional-images) !important;
|
||||
background-position: var(--lwt-background-alignment) !important;
|
||||
@@ -686,9 +690,15 @@ html|input.urlbar-input[textoverflow]:not([focused]) {
|
||||
}
|
||||
|
||||
#urlbar[pageproxystate="invalid"] > #urlbar-icons > .urlbar-icon,
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#urlbar[pageproxystate="invalid"] > #urlbar-icons > #star-button-box > .urlbar-icon,
|
||||
.urlbar-go-button[pageproxystate="valid"],
|
||||
.urlbar-go-button:not([parentfocused="true"]),
|
||||
%else
|
||||
#urlbar[pageproxystate="invalid"][focused="true"] > #urlbar-go-button ~ toolbarbutton,
|
||||
#urlbar[pageproxystate="valid"] > #urlbar-go-button,
|
||||
#urlbar:not([focused="true"]) > #urlbar-go-button,
|
||||
%endif
|
||||
#urlbar[pageproxystate="invalid"] > #identity-box > #blocked-permissions-container,
|
||||
#urlbar[pageproxystate="invalid"] > #identity-box > #notification-popup-box,
|
||||
#urlbar[pageproxystate="invalid"] > #identity-box > #identity-icon-labels {
|
||||
@@ -1269,6 +1279,22 @@ toolbarpaletteitem[place="palette"] > #downloads-button[indicator] > #downloads-
|
||||
%endif
|
||||
|
||||
/* Customize mode */
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#navigator-toolbox,
|
||||
#browser-bottombox,
|
||||
#content-deck {
|
||||
transition-property: margin-left, margin-right;
|
||||
transition-duration: 200ms;
|
||||
transition-timing-function: linear;
|
||||
}
|
||||
|
||||
#tab-view-deck[fastcustomizeanimation] #navigator-toolbox,
|
||||
#tab-view-deck[fastcustomizeanimation] #content-deck {
|
||||
transition-duration: 1ms;
|
||||
transition-timing-function: linear;
|
||||
}
|
||||
%endif
|
||||
|
||||
#PanelUI-contents > .panel-customization-placeholder > .panel-customization-placeholder-child {
|
||||
list-style-image: none;
|
||||
}
|
||||
@@ -1484,10 +1510,12 @@ toolbarpaletteitem[place="palette"][hidden] {
|
||||
-moz-window-shadow: none;
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
/* Page action panel */
|
||||
#pageAction-panel-sendToDevice-subview-body:not([state="notready"]) > #pageAction-panel-sendToDevice-notReady,
|
||||
#pageAction-urlbar-sendToDevice-subview-body:not([state="notready"]) > #pageAction-urlbar-sendToDevice-notReady {
|
||||
display: none;
|
||||
}
|
||||
%endif
|
||||
|
||||
%include theme-vars.inc.css
|
||||
|
||||
@@ -440,6 +440,7 @@
|
||||
</hbox>
|
||||
</panel>
|
||||
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
<panel id="pageActionPanel"
|
||||
class="cui-widget-panel"
|
||||
role="group"
|
||||
@@ -473,6 +474,7 @@
|
||||
label="&pageAction.addToUrlbar.label;"
|
||||
oncommand="BrowserPageActions.toggleShownInUrlbarForContextAction();"/>
|
||||
</menupopup>
|
||||
#endif
|
||||
|
||||
<!-- Bookmarks and history tooltip -->
|
||||
<tooltip id="bhTooltip"/>
|
||||
@@ -893,6 +895,7 @@
|
||||
onclick="FullZoom.reset();"
|
||||
tooltip="dynamic-shortcut-tooltip"
|
||||
hidden="true"/>
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
<image id="pageActionButton"
|
||||
class="urlbar-icon"
|
||||
tooltiptext="&pageActionButton.tooltip;"
|
||||
@@ -910,11 +913,27 @@
|
||||
<image id="star-button-animatable-image"/>
|
||||
</hbox>
|
||||
</hbox>
|
||||
#endif
|
||||
</hbox>
|
||||
<hbox id="userContext-icons" hidden="true">
|
||||
<label id="userContext-label"/>
|
||||
<image id="userContext-indicator"/>
|
||||
</hbox>
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
<toolbarbutton id="urlbar-go-button"
|
||||
class="chromeclass-toolbar-additional"
|
||||
onclick="gURLBar.handleCommand(event);"
|
||||
tooltiptext="&goEndCap.tooltip;"/>
|
||||
<toolbarbutton id="reload-button"
|
||||
class="chromeclass-toolbar-additional"
|
||||
command="Browser:ReloadOrDuplicate"
|
||||
onclick="checkForMiddleClick(this, event);"
|
||||
tooltip="dynamic-shortcut-tooltip"/>
|
||||
<toolbarbutton id="stop-button"
|
||||
class="chromeclass-toolbar-additional"
|
||||
command="Browser:Stop"
|
||||
tooltip="dynamic-shortcut-tooltip"/>
|
||||
#endif
|
||||
</textbox>
|
||||
</hbox>
|
||||
</toolbaritem>
|
||||
@@ -929,7 +948,11 @@
|
||||
<toolbarbutton id="bookmarks-menu-button"
|
||||
class="toolbarbutton-1 chromeclass-toolbar-additional"
|
||||
removable="true"
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
type="menu"
|
||||
#else
|
||||
type="menu-button"
|
||||
#endif
|
||||
label="&bookmarksMenuButton.label;"
|
||||
tooltip="dynamic-shortcut-tooltip"
|
||||
anchor="dropmarker"
|
||||
@@ -1143,6 +1166,9 @@
|
||||
|
||||
<toolbarpalette id="BrowserToolbarPalette">
|
||||
|
||||
# Update primaryToolbarButtons in browser/themes/shared/browser.inc when adding
|
||||
# or removing default items with the toolbarbutton-1 class.
|
||||
|
||||
<toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
||||
#ifdef XP_MACOSX
|
||||
command="cmd_print"
|
||||
@@ -1168,7 +1194,7 @@
|
||||
type="checkbox"
|
||||
label="&fullScreenCmd.label;"
|
||||
tooltip="dynamic-shortcut-tooltip"/>
|
||||
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
<toolbarbutton id="library-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
||||
oncommand="PanelUI.showSubView('appMenu-libraryView', this, null, event);"
|
||||
closemenu="none"
|
||||
@@ -1177,6 +1203,7 @@
|
||||
<image class="toolbarbutton-animatable-image"/>
|
||||
</box>
|
||||
</toolbarbutton>
|
||||
#endif
|
||||
</toolbarpalette>
|
||||
</toolbox>
|
||||
|
||||
@@ -1254,6 +1281,23 @@
|
||||
<notificationbox id="global-notificationbox" notificationside="bottom"/>
|
||||
</vbox>
|
||||
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
<svg:svg height="0">
|
||||
<svg:clipPath id="urlbar-back-button-clip-path">
|
||||
#ifndef XP_MACOSX
|
||||
<svg:path d="M -9,-4 l 0,1 a 15 15 0 0,1 0,30 l 0,1 l 10000,0 l 0,-32 l -10000,0 z" />
|
||||
#else
|
||||
<svg:path d="M -11,-5 a 16 16 0 0 1 0,34 l 10000,0 l 0,-34 l -10000,0 z"/>
|
||||
#endif
|
||||
</svg:clipPath>
|
||||
#ifdef XP_WIN
|
||||
<svg:clipPath id="urlbar-back-button-clip-path-win10">
|
||||
<svg:path d="M -6,-2 l 0,1 a 15 15 0 0,1 0,30 l 0,1 l 10000,0 l 0,-32 l -10000,0 z" />
|
||||
</svg:clipPath>
|
||||
#endif
|
||||
</svg:svg>
|
||||
#endif
|
||||
|
||||
</vbox>
|
||||
# <iframe id="tab-view"> is dynamically appended as the 2nd child of #tab-view-deck.
|
||||
# Introducing the iframe dynamically, as needed, was found to be better than
|
||||
|
||||
@@ -6107,7 +6107,9 @@
|
||||
|
||||
<property name="_isCustomizing" readonly="true">
|
||||
<getter><![CDATA[
|
||||
return document.documentElement.getAttribute("customizing") == "true";
|
||||
let root = document.documentElement;
|
||||
return root.getAttribute("customizing") == "true" ||
|
||||
(!AppConstants.MOZ_PHOTON_THEME && root.getAttribute("customize-exiting") == "true");
|
||||
]]></getter>
|
||||
</property>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
let bookmarkPanel = document.getElementById("editBookmarkPanel");
|
||||
let bookmarkStar = BookmarkingUI.star;
|
||||
let bookmarkStar = AppConstants.MOZ_PHOTON_THEME ? BookmarkingUI.star : BookmarkingUI.button;
|
||||
let bookmarkPanelTitle = document.getElementById("editBookmarkPanelTitle");
|
||||
let editBookmarkPanelRemoveButtonRect;
|
||||
|
||||
|
||||
@@ -28,14 +28,24 @@ const whitelist = [
|
||||
{
|
||||
file: "chrome://browser/skin/stop.svg",
|
||||
platforms: ["linux", "win", "macosx"],
|
||||
photon: true,
|
||||
},
|
||||
{
|
||||
file: "chrome://browser/skin/bookmark-hollow.svg",
|
||||
platforms: ["linux", "win", "macosx"],
|
||||
photon: true,
|
||||
},
|
||||
{
|
||||
file: "chrome://browser/skin/page-action.svg",
|
||||
platforms: ["linux", "win", "macosx"],
|
||||
photon: true,
|
||||
},
|
||||
|
||||
// Non-Photon-only entries
|
||||
{
|
||||
file: "chrome://browser/skin/toolbarbutton-dropdown-arrow.png",
|
||||
platforms: ["linux", "win", "macosx"],
|
||||
photon: false,
|
||||
},
|
||||
|
||||
// Shared entries
|
||||
@@ -109,7 +119,8 @@ add_task(async function() {
|
||||
|
||||
let data = startupRecorder.data.images;
|
||||
let filteredWhitelist = whitelist.filter(el => {
|
||||
return el.platforms.includes(AppConstants.platform);
|
||||
return el.platforms.includes(AppConstants.platform) &&
|
||||
(el.photon === undefined || el.photon == AppConstants.MOZ_PHOTON_THEME);
|
||||
});
|
||||
|
||||
let loadedImages = data["image-loading"];
|
||||
|
||||
@@ -182,6 +182,19 @@ if (AppConstants.NIGHTLY_BUILD && AppConstants.MOZ_BUILD_APP == "browser") {
|
||||
);
|
||||
}
|
||||
|
||||
if (!AppConstants.MOZ_PHOTON_THEME) {
|
||||
whitelist.push(
|
||||
// Bug 1343824
|
||||
{file: "chrome://browser/skin/customizableui/customize-illustration-rtl@2x.png",
|
||||
platforms: ["linux", "win"]},
|
||||
{file: "chrome://browser/skin/customizableui/customize-illustration@2x.png",
|
||||
platforms: ["linux", "win"]},
|
||||
{file: "chrome://browser/skin/customizableui/info-icon-customizeTip@2x.png",
|
||||
platforms: ["linux", "win"]},
|
||||
{file: "chrome://browser/skin/customizableui/panelarrow-customizeTip@2x.png",
|
||||
platforms: ["linux", "win"]});
|
||||
}
|
||||
|
||||
whitelist = new Set(whitelist.filter(item =>
|
||||
("isFromDevTools" in item) == isDevtools &&
|
||||
(!item.skipNightly || !AppConstants.NIGHTLY_BUILD) &&
|
||||
|
||||
@@ -20,12 +20,16 @@
|
||||
list-style-image: var(--stop-icon) !important;
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
:root[lwthemeicons~="--bookmark_star-icon"] #star-button:-moz-lwtheme,
|
||||
%endif
|
||||
:root[lwthemeicons~="--bookmark_star-icon"] #bookmarks-menu-button:-moz-lwtheme {
|
||||
list-style-image: var(--bookmark_star-icon) !important;
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
:root[lwthemeicons~="--bookmark_menu-icon"] #bookmarks-menu-button:-moz-lwtheme,
|
||||
%endif
|
||||
:root[lwthemeicons~="--bookmark_menu-icon"] #bookmarks-menu-button[cui-areatype='toolbar'] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon:-moz-lwtheme {
|
||||
list-style-image: var(--bookmark_menu-icon) !important;
|
||||
}
|
||||
@@ -130,8 +134,10 @@
|
||||
list-style-image: var(--pocket-icon) !important;
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
:root[lwthemeicons~="--bookmark_star-icon"] #star-button:-moz-lwtheme,
|
||||
:root[lwthemeicons~="--bookmark_menu-icon"] #bookmarks-menu-button:-moz-lwtheme,
|
||||
%endif
|
||||
:root[lwthemeicons~="--back-icon"] #back-button:-moz-lwtheme,
|
||||
:root[lwthemeicons~="--forward-icon"] #forward-button:-moz-lwtheme,
|
||||
:root[lwthemeicons~="--reload-icon"] #reload-button:-moz-lwtheme,
|
||||
@@ -165,3 +171,10 @@
|
||||
:root[lwthemeicons~="--pocket-icon"] #pocket-button:-moz-lwtheme {
|
||||
-moz-image-region: rect(0, 16px, 16px, 0) !important;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
:root[lwthemeicons~="--reload-icon"] #urlbar > #reload-button:-moz-lwtheme,
|
||||
:root[lwthemeicons~="--stop-icon"] #urlbar > #stop-button:-moz-lwtheme {
|
||||
-moz-image-region: rect(0, 14px, 14px, 0) !important;
|
||||
}
|
||||
%endif
|
||||
|
||||
@@ -41,11 +41,13 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
allowevents="true"
|
||||
inputmode="url"
|
||||
xbl:inherits="tooltiptext=inputtooltiptext,value,maxlength,disabled,size,readonly,placeholder,tabindex,accesskey,focused,textoverflow"/>
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
<xul:image anonid="go-button"
|
||||
class="urlbar-go-button"
|
||||
onclick="gURLBar.handleCommand(event);"
|
||||
tooltiptext="&goEndCap.tooltip;"
|
||||
xbl:inherits="pageproxystate,parentfocused=focused"/>
|
||||
#endif
|
||||
</xul:hbox>
|
||||
<xul:dropmarker anonid="historydropmarker"
|
||||
class="autocomplete-history-dropmarker urlbar-history-dropmarker"
|
||||
@@ -158,9 +160,15 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
this.popup.oneOffSearchButtons.textbox = null;
|
||||
]]></destructor>
|
||||
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
<field name="goButton">
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "go-button");
|
||||
</field>
|
||||
#else
|
||||
<field name="goButton">
|
||||
document.getElementById("urlbar-go-button");
|
||||
</field>
|
||||
#endif
|
||||
|
||||
<field name="_value">""</field>
|
||||
<field name="gotResultForCurrentQuery">false</field>
|
||||
|
||||
@@ -338,6 +338,9 @@ CustomizeMode.prototype = {
|
||||
this._updateEmptyPaletteNotice();
|
||||
|
||||
this._updateLWThemeButtonIcon();
|
||||
if (!AppConstants.MOZ_PHOTON_THEME) {
|
||||
this.maybeShowTip(panelHolder);
|
||||
}
|
||||
|
||||
this._handler.isEnteringCustomizeMode = false;
|
||||
|
||||
@@ -496,15 +499,60 @@ CustomizeMode.prototype = {
|
||||
* excluding certain styles while in any phase of customize mode.
|
||||
*/
|
||||
_doTransition(aEntering) {
|
||||
let docEl = this.document.documentElement;
|
||||
if (aEntering) {
|
||||
docEl.setAttribute("customizing", true);
|
||||
docEl.setAttribute("customize-entered", true);
|
||||
} else {
|
||||
docEl.removeAttribute("customizing");
|
||||
docEl.removeAttribute("customize-entered");
|
||||
if (AppConstants.MOZ_PHOTON_THEME) {
|
||||
let docEl = this.document.documentElement;
|
||||
if (aEntering) {
|
||||
docEl.setAttribute("customizing", true);
|
||||
docEl.setAttribute("customize-entered", true);
|
||||
} else {
|
||||
docEl.removeAttribute("customizing");
|
||||
docEl.removeAttribute("customize-entered");
|
||||
}
|
||||
return Promise.resolve();
|
||||
}
|
||||
return Promise.resolve();
|
||||
let deck = this.document.getElementById("content-deck");
|
||||
let customizeTransitionEndPromise = new Promise(resolve => {
|
||||
let customizeTransitionEnd = (aEvent) => {
|
||||
if (aEvent != "timedout" &&
|
||||
(aEvent.originalTarget != deck || aEvent.propertyName != "margin-left")) {
|
||||
return;
|
||||
}
|
||||
this.window.clearTimeout(catchAllTimeout);
|
||||
// We request an animation frame to do the final stage of the transition
|
||||
// to improve perceived performance. (bug 962677)
|
||||
this.window.requestAnimationFrame(() => {
|
||||
deck.removeEventListener("transitionend", customizeTransitionEnd);
|
||||
|
||||
if (!aEntering) {
|
||||
this.document.documentElement.removeAttribute("customize-exiting");
|
||||
this.document.documentElement.removeAttribute("customizing");
|
||||
} else {
|
||||
this.document.documentElement.setAttribute("customize-entered", true);
|
||||
this.document.documentElement.removeAttribute("customize-entering");
|
||||
}
|
||||
CustomizableUI.dispatchToolboxEvent("customization-transitionend", aEntering, this.window);
|
||||
|
||||
resolve();
|
||||
});
|
||||
};
|
||||
deck.addEventListener("transitionend", customizeTransitionEnd);
|
||||
let catchAll = () => customizeTransitionEnd("timedout");
|
||||
let catchAllTimeout = this.window.setTimeout(catchAll, kMaxTransitionDurationMs);
|
||||
});
|
||||
|
||||
if (gDisableAnimation) {
|
||||
this.document.getElementById("tab-view-deck").setAttribute("fastcustomizeanimation", true);
|
||||
}
|
||||
|
||||
if (aEntering) {
|
||||
this.document.documentElement.setAttribute("customizing", true);
|
||||
this.document.documentElement.setAttribute("customize-entering", true);
|
||||
} else {
|
||||
this.document.documentElement.setAttribute("customize-exiting", true);
|
||||
this.document.documentElement.removeAttribute("customize-entered");
|
||||
}
|
||||
|
||||
return customizeTransitionEndPromise;
|
||||
},
|
||||
|
||||
updateLWTStyling(aData) {
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
</hbox>
|
||||
</panel>
|
||||
</button>
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
<button id="customization-uidensity-button"
|
||||
label="&customizeMode.uidensity;"
|
||||
class="customizationmode-button"
|
||||
@@ -120,6 +121,7 @@
|
||||
#endif
|
||||
</panel>
|
||||
</button>
|
||||
#endif
|
||||
|
||||
<spacer id="customization-footer-spacer"/>
|
||||
<button id="customization-undo-reset-button"
|
||||
|
||||
@@ -84,19 +84,39 @@
|
||||
<toolbarbutton id="appMenuViewHistorySidebar"
|
||||
label="&appMenuHistory.viewSidebar.label;"
|
||||
type="checkbox"
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
class="subviewbutton"
|
||||
#else
|
||||
class="subviewbutton subviewbutton-iconic"
|
||||
#endif
|
||||
key="key_gotoHistory"
|
||||
oncommand="SidebarUI.toggle('viewHistorySidebar'); PanelUI.hide();">
|
||||
<observes element="viewHistorySidebar" attribute="checked"/>
|
||||
</toolbarbutton>
|
||||
<toolbarbutton id="appMenuClearRecentHistory"
|
||||
label="&appMenuHistory.clearRecent.label;"
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
class="subviewbutton"
|
||||
#else
|
||||
class="subviewbutton subviewbutton-iconic"
|
||||
#endif
|
||||
command="Tools:Sanitize"/>
|
||||
<toolbarbutton id="appMenuRestoreLastSession"
|
||||
label="&appMenuHistory.restoreSession.label;"
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
class="subviewbutton"
|
||||
#else
|
||||
class="subviewbutton subviewbutton-iconic"
|
||||
#endif
|
||||
command="Browser:RestoreLastSession"/>
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
<menuseparator id="PanelUI-recentlyClosedTabs-separator"/>
|
||||
<vbox id="PanelUI-recentlyClosedTabs" tooltip="bhTooltip"/>
|
||||
<menuseparator id="PanelUI-recentlyClosedWindows-separator"/>
|
||||
<vbox id="PanelUI-recentlyClosedWindows" tooltip="bhTooltip"/>
|
||||
<menuseparator id="PanelUI-historyItems-separator"/>
|
||||
<vbox id="PanelUI-historyItems" tooltip="bhTooltip"/>
|
||||
#else
|
||||
<toolbarseparator/>
|
||||
<toolbarbutton id="appMenuRecentlyClosedTabs"
|
||||
label="&historyUndoMenu.label;"
|
||||
@@ -118,6 +138,7 @@
|
||||
tooltip="bhTooltip">
|
||||
<!-- history menu items will go here -->
|
||||
</toolbaritem>
|
||||
#endif
|
||||
</vbox>
|
||||
<toolbarbutton id="PanelUI-historyMore"
|
||||
class="panel-subview-footer subviewbutton"
|
||||
@@ -125,8 +146,10 @@
|
||||
oncommand="PlacesCommandHook.showPlacesOrganizer('History'); CustomizableUI.hidePanelForNode(this);"/>
|
||||
</panelview>
|
||||
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
<panelview id="appMenu-library-recentlyClosedTabs"/>
|
||||
<panelview id="appMenu-library-recentlyClosedWindows"/>
|
||||
#endif
|
||||
|
||||
<panelview id="PanelUI-remotetabs" flex="1" class="PanelUI-subView"
|
||||
descriptionheightworkaround="true">
|
||||
@@ -230,17 +253,46 @@
|
||||
<label value="&bookmarksMenu.label;" class="panel-subview-header"/>
|
||||
<vbox class="panel-subview-body">
|
||||
<toolbarbutton id="panelMenuBookmarkThisPage"
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
class="subviewbutton"
|
||||
#else
|
||||
class="subviewbutton subviewbutton-iconic"
|
||||
#endif
|
||||
observes="bookmarkThisPageBroadcaster"
|
||||
command="Browser:AddBookmarkAs"
|
||||
onclick="PanelUI.hide();"/>
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
<toolbarseparator/>
|
||||
#endif
|
||||
<toolbarbutton id="panelMenu_viewBookmarksSidebar"
|
||||
label="&viewBookmarksSidebar2.label;"
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
class="subviewbutton"
|
||||
#else
|
||||
class="subviewbutton subviewbutton-iconic"
|
||||
#endif
|
||||
key="viewBookmarksSidebarKb"
|
||||
oncommand="SidebarUI.toggle('viewBookmarksSidebar'); PanelUI.hide();">
|
||||
<observes element="viewBookmarksSidebar" attribute="checked"/>
|
||||
</toolbarbutton>
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
<toolbarbutton id="panelMenu_viewBookmarksToolbar"
|
||||
label="&viewBookmarksToolbar.label;"
|
||||
type="checkbox"
|
||||
toolbarId="PersonalToolbar"
|
||||
class="subviewbutton"
|
||||
oncommand="onViewToolbarCommand(event); PanelUI.hide();"/>
|
||||
<toolbarseparator/>
|
||||
<toolbarbutton id="panelMenu_bookmarksToolbar"
|
||||
label="&personalbarCmd.label;"
|
||||
class="subviewbutton cui-withicon"
|
||||
oncommand="PlacesCommandHook.showPlacesOrganizer('BookmarksToolbar'); PanelUI.hide();"/>
|
||||
<toolbarbutton id="panelMenu_unsortedBookmarks"
|
||||
label="&otherBookmarksCmd.label;"
|
||||
class="subviewbutton cui-withicon"
|
||||
oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks'); PanelUI.hide();"/>
|
||||
<toolbarseparator class="small-separator"/>
|
||||
#else
|
||||
<toolbarbutton id="panelMenu_searchBookmarks"
|
||||
label="&searchBookmarks.label;"
|
||||
class="subviewbutton subviewbutton-iconic"
|
||||
@@ -249,9 +301,14 @@
|
||||
<label id="panelMenu_recentBookmarks"
|
||||
value="&recentBookmarks.label;"
|
||||
class="subview-subheader"/>
|
||||
#endif
|
||||
<toolbaritem id="panelMenu_bookmarksMenu"
|
||||
orient="vertical"
|
||||
smoothscroll="false"
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
onclick="if (event.button == 1) BookmarkingUI.onPanelMenuViewCommand(event, this._placesView);"
|
||||
oncommand="BookmarkingUI.onPanelMenuViewCommand(event, this._placesView);"
|
||||
#endif
|
||||
flatList="true"
|
||||
tooltip="bhTooltip">
|
||||
<!-- bookmarks menu items will go here -->
|
||||
@@ -351,10 +408,15 @@
|
||||
type="arrow"
|
||||
noautofocus="true"
|
||||
position="bottomcenter topright"
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
context="toolbar-context-menu"
|
||||
#endif
|
||||
hidden="true">
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
<photonpanelmultiview mainViewId="widget-overflow-mainView">
|
||||
<panelview id="widget-overflow-mainView"
|
||||
context="toolbar-context-menu">
|
||||
#endif
|
||||
<vbox class="panel-subview-body">
|
||||
<vbox id="widget-overflow-scroller">
|
||||
<vbox id="widget-overflow-list" class="widget-overflow-list"
|
||||
@@ -364,6 +426,7 @@
|
||||
emptylabel="&customizeMode.emptyOverflowList.description;"/>
|
||||
</vbox>
|
||||
</vbox>
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
<toolbarbutton command="cmd_CustomizeToolbars"
|
||||
id="overflowMenu-customize-button"
|
||||
class="subviewbutton panel-subview-footer"
|
||||
@@ -371,6 +434,7 @@
|
||||
label="&overflowCustomizeToolbar.label;"/>
|
||||
</panelview>
|
||||
</photonpanelmultiview>
|
||||
#endif
|
||||
<!-- This menu is here because not having it in the menu in which it's used flickers
|
||||
when hover styles overlap. See https://bugzilla.mozilla.org/show_bug.cgi?id=1378427 .
|
||||
-->
|
||||
|
||||
@@ -73,7 +73,10 @@ function checkSpecialContextMenus() {
|
||||
// Open the bookmarks menu button context menus and ensure that
|
||||
// they have the proper views attached.
|
||||
let shownPromise = bookmarksMenuPanelShown();
|
||||
|
||||
if (!AppConstants.MOZ_PHOTON_THEME) {
|
||||
bookmarksMenuButton = document.getAnonymousElementByAttribute(bookmarksMenuButton,
|
||||
"anonid", "dropmarker");
|
||||
}
|
||||
EventUtils.synthesizeMouseAtCenter(bookmarksMenuButton, {});
|
||||
info("Waiting for bookmarks menu popup to show after clicking dropmarker.")
|
||||
await shownPromise;
|
||||
|
||||
@@ -116,10 +116,20 @@ async function testModeMenuitem(mode, modePref) {
|
||||
}
|
||||
|
||||
add_task(async function test_compact_mode_menuitem() {
|
||||
if (!AppConstants.MOZ_PHOTON_THEME) {
|
||||
ok(true, "Skipping test because Photon is not enabled.");
|
||||
return;
|
||||
}
|
||||
|
||||
await testModeMenuitem("compact", window.gUIDensity.MODE_COMPACT);
|
||||
});
|
||||
|
||||
add_task(async function test_touch_mode_menuitem() {
|
||||
if (!AppConstants.MOZ_PHOTON_THEME) {
|
||||
ok(true, "Skipping test because Photon is not enabled.");
|
||||
return;
|
||||
}
|
||||
|
||||
// OSX doesn't get touch mode for now.
|
||||
if (AppConstants.platform == "macosx") {
|
||||
is(document.getElementById("customization-uidensity-menuitem-touch"), null,
|
||||
|
||||
@@ -142,8 +142,13 @@ async function runTestWithIcons(icons) {
|
||||
];
|
||||
// We add these at the beginning because adding them at the end can end up
|
||||
// putting them in the overflow panel, where they aren't displayed the same way.
|
||||
ICON_INFO.unshift(["bookmark_star", "#star-button"]);
|
||||
ICON_INFO.unshift(["bookmark_menu", "#bookmarks-menu-button", "bookmarks-menu-button"]);
|
||||
if (AppConstants.MOZ_PHOTON_THEME) {
|
||||
ICON_INFO.unshift(["bookmark_star", "#star-button"]);
|
||||
ICON_INFO.unshift(["bookmark_menu", "#bookmarks-menu-button", "bookmarks-menu-button"]);
|
||||
} else {
|
||||
ICON_INFO.unshift(["bookmark_star", "#bookmarks-menu-button", "bookmarks-menu-button"]);
|
||||
ICON_INFO.unshift(["bookmark_menu", "#bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon"]);
|
||||
}
|
||||
|
||||
window.maximize();
|
||||
|
||||
|
||||
@@ -18,6 +18,9 @@ add_task(async function testPopup() {
|
||||
|
||||
async function checkPopupContextMenu() {
|
||||
let clickTarget = bookmarksMenuButton;
|
||||
if (!AppConstants.MOZ_PHOTON_THEME) {
|
||||
clickTarget = document.getAnonymousElementByAttribute(bookmarksMenuButton, "anonid", "dropmarker");
|
||||
}
|
||||
BMB_menuPopup.setAttribute("style", "transition: none;");
|
||||
let popupShownPromise = onPopupEvent(BMB_menuPopup, "shown");
|
||||
EventUtils.synthesizeMouseAtCenter(clickTarget, {});
|
||||
|
||||
3
browser/extensions/pocket/bootstrap.js
vendored
@@ -162,7 +162,8 @@ var PocketPageAction = {
|
||||
|
||||
get shouldUse() {
|
||||
return !Services.prefs.getBranch(PREF_BRANCH)
|
||||
.getBoolPref("disablePageAction", false);
|
||||
.getBoolPref("disablePageAction", false) &&
|
||||
AppConstants.MOZ_PHOTON_THEME;
|
||||
},
|
||||
|
||||
get enabled() {
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
skin/shared (skin/shared/*)
|
||||
#ifdef XP_WIN
|
||||
skin/windows/ (skin/windows/*.png)
|
||||
skin/windows/pocket.css (skin/windows/pocket.css)
|
||||
* skin/windows/pocket.css (skin/windows/pocket.css)
|
||||
#elifdef XP_MACOSX
|
||||
skin/osx/ (skin/osx/*.png)
|
||||
skin/osx/pocket.css (skin/osx/pocket.css)
|
||||
* skin/osx/pocket.css (skin/osx/pocket.css)
|
||||
#else
|
||||
skin/linux/ (skin/linux/*.png)
|
||||
skin/linux/pocket.css (skin/linux/pocket.css)
|
||||
* skin/linux/pocket.css (skin/linux/pocket.css)
|
||||
#endif
|
||||
|
||||
# windows overrides
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
@import url("chrome://pocket-shared/skin/pocket.css");
|
||||
|
||||
#nav-bar #pocket-button > .toolbarbutton-icon {
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
padding: 2px 6px;
|
||||
%else
|
||||
padding: calc(var(--toolbarbutton-inner-padding) - 1px);
|
||||
%endif
|
||||
}
|
||||
|
||||
:-moz-any(#TabsToolbar, .widget-overflow-list) #pocket-button > .toolbarbutton-icon {
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
@import url("chrome://pocket-shared/skin/pocket.css");
|
||||
|
||||
#nav-bar #pocket-button > .toolbarbutton-icon {
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
padding: var(--toolbarbutton-inner-padding) 6px;
|
||||
%else
|
||||
padding: calc(var(--toolbarbutton-inner-padding) - 1px);
|
||||
%endif
|
||||
}
|
||||
|
||||
#PanelUI-pocketView[mainview=true] > .panel-subview-body > #pocket-panel-iframe {
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
@import url("chrome://pocket-shared/skin/pocket.css");
|
||||
|
||||
#nav-bar #pocket-button > .toolbarbutton-icon {
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
padding: var(--toolbarbutton-inner-padding) 6px;
|
||||
%else
|
||||
padding: calc(var(--toolbarbutton-inner-padding) - 1px);
|
||||
%endif
|
||||
}
|
||||
|
||||
:-moz-any(#TabsToolbar, .widget-overflow-list) #pocket-button > .toolbarbutton-icon {
|
||||
|
||||
@@ -35,6 +35,10 @@ this.PageActions = {
|
||||
* Inits. Call to init.
|
||||
*/
|
||||
init() {
|
||||
if (!AppConstants.MOZ_PHOTON_THEME) {
|
||||
return;
|
||||
}
|
||||
|
||||
let callbacks = this._deferredAddActionCalls;
|
||||
delete this._deferredAddActionCalls;
|
||||
|
||||
|
||||
@@ -23,7 +23,25 @@
|
||||
--toolbar-bgcolor: var(--toolbar-non-lwt-bgcolor);
|
||||
--toolbar-bgimage: var(--toolbar-non-lwt-bgimage);
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
--toolbarbutton-border-radius: 4px;
|
||||
%else
|
||||
--toolbarbutton-border-radius: 1px;
|
||||
|
||||
--backbutton-background: rgba(255,255,255,.15);
|
||||
--backbutton-border-color: var(--urlbar-border-color-hover);
|
||||
|
||||
--toolbarbutton-hover-background: rgba(255,255,255,.5) linear-gradient(rgba(255,255,255,.5), transparent);
|
||||
--toolbarbutton-hover-bordercolor: rgba(0,0,0,.25);
|
||||
--toolbarbutton-hover-boxshadow: none;
|
||||
|
||||
--toolbarbutton-active-background: rgba(154,154,154,.5) linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.4));
|
||||
--toolbarbutton-active-bordercolor: rgba(0,0,0,.3);
|
||||
--toolbarbutton-active-boxshadow: 0 1px 1px rgba(0,0,0,.1) inset, 0 0 1px rgba(0,0,0,.3) inset;
|
||||
|
||||
--toolbarbutton-checkedhover-backgroundcolor: rgba(200,200,200,.5);
|
||||
%endif
|
||||
|
||||
--toolbarbutton-vertical-text-padding: calc(var(--toolbarbutton-inner-padding) - 1px);
|
||||
|
||||
--panel-separator-color: ThreeDShadow;
|
||||
@@ -261,6 +279,8 @@ menuitem.bookmark-item {
|
||||
|
||||
%include ../shared/urlbar-searchbar.inc.css
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
|
||||
#urlbar:not(:-moz-lwtheme):not([focused="true"]),
|
||||
.searchbar-textbox:not(:-moz-lwtheme):not([focused="true"]) {
|
||||
border-color: ThreeDShadow;
|
||||
@@ -271,6 +291,44 @@ menuitem.bookmark-item {
|
||||
border-color: Highlight;
|
||||
}
|
||||
|
||||
%else
|
||||
|
||||
#main-window {
|
||||
--urlbar-border-color: ThreeDShadow;
|
||||
--urlbar-border-color-hover: var(--urlbar-border-color);
|
||||
}
|
||||
|
||||
#navigator-toolbox:-moz-lwtheme {
|
||||
--urlbar-border-color: rgba(0,0,0,.3);
|
||||
}
|
||||
|
||||
#urlbar,
|
||||
.searchbar-textbox {
|
||||
-moz-appearance: none;
|
||||
padding: 0;
|
||||
border: 1px solid var(--urlbar-border-color);
|
||||
border-radius: 2px;
|
||||
background-clip: padding-box;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
#urlbar[focused],
|
||||
.searchbar-textbox[focused] {
|
||||
border-color: Highlight;
|
||||
}
|
||||
|
||||
#urlbar:-moz-lwtheme,
|
||||
.searchbar-textbox:-moz-lwtheme {
|
||||
background-color: rgba(255,255,255,.8);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#urlbar:-moz-lwtheme[focused=true],
|
||||
.searchbar-textbox:-moz-lwtheme[focused=true] {
|
||||
background-color: white;
|
||||
}
|
||||
%endif
|
||||
|
||||
.urlbar-textbox-container {
|
||||
-moz-appearance: none;
|
||||
-moz-box-align: stretch;
|
||||
@@ -290,6 +348,38 @@ menuitem.bookmark-item {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
@conditionalForwardWithUrlbar@ > #urlbar {
|
||||
border-inline-start: none;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(ltr) {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(rtl) {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ {
|
||||
clip-path: url("chrome://browser/content/browser.xul#urlbar-back-button-clip-path");
|
||||
margin-inline-start: calc(-1 * var(--backbutton-urlbar-overlap));
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@:-moz-locale-dir(rtl),
|
||||
@conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(rtl) {
|
||||
/* let urlbar-back-button-clip-path clip the urlbar's right side for RTL */
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@:-moz-locale-dir(rtl) {
|
||||
-moz-box-direction: reverse;
|
||||
}
|
||||
%endif
|
||||
|
||||
#urlbar-icons {
|
||||
-moz-box-align: center;
|
||||
}
|
||||
@@ -644,6 +734,119 @@ html|span.ac-emphasize-text-url {
|
||||
border-top: 1px solid GrayText;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
/* Combined go/reload/stop button in location bar */
|
||||
|
||||
#urlbar-go-button,
|
||||
#reload-button,
|
||||
#stop-button {
|
||||
-moz-appearance: none;
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go.png");
|
||||
padding: 0 9px;
|
||||
margin-inline-start: 5px;
|
||||
border-inline-start: 1px solid var(--urlbar-separator-color);
|
||||
border-image: linear-gradient(transparent 15%,
|
||||
var(--urlbar-separator-color) 15%,
|
||||
var(--urlbar-separator-color) 85%,
|
||||
transparent 85%);
|
||||
border-image-slice: 1;
|
||||
}
|
||||
|
||||
#reload-button {
|
||||
-moz-image-region: rect(0, 14px, 14px, 0);
|
||||
}
|
||||
|
||||
#reload-button:not([disabled]):hover {
|
||||
-moz-image-region: rect(14px, 14px, 28px, 0);
|
||||
}
|
||||
|
||||
#reload-button:not([disabled]):hover:active {
|
||||
-moz-image-region: rect(28px, 14px, 42px, 0);
|
||||
}
|
||||
|
||||
#reload-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
#urlbar-go-button {
|
||||
-moz-image-region: rect(0, 42px, 14px, 28px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:hover {
|
||||
-moz-image-region: rect(14px, 42px, 28px, 28px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:hover:active {
|
||||
-moz-image-region: rect(28px, 42px, 42px, 28px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
#stop-button {
|
||||
-moz-image-region: rect(0, 28px, 14px, 14px);
|
||||
}
|
||||
|
||||
#stop-button:not([disabled]):hover {
|
||||
-moz-image-region: rect(14px, 28px, 28px, 14px);
|
||||
}
|
||||
|
||||
#stop-button:hover:active {
|
||||
-moz-image-region: rect(28px, 28px, 42px, 14px);
|
||||
}
|
||||
|
||||
@media (min-resolution: 1.1dppx) {
|
||||
#urlbar-go-button,
|
||||
#reload-button,
|
||||
#stop-button {
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
|
||||
}
|
||||
|
||||
#urlbar-go-button > .toolbarbutton-icon,
|
||||
#reload-button > .toolbarbutton-icon,
|
||||
#stop-button > .toolbarbutton-icon {
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
#urlbar-go-button {
|
||||
-moz-image-region: rect(0, 84px, 28px, 56px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:hover {
|
||||
-moz-image-region: rect(28px, 84px, 56px, 56px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:hover:active {
|
||||
-moz-image-region: rect(56px, 84px, 84px, 56px);
|
||||
}
|
||||
|
||||
#reload-button {
|
||||
-moz-image-region: rect(0, 28px, 28px, 0);
|
||||
}
|
||||
|
||||
#reload-button:not([disabled]):hover {
|
||||
-moz-image-region: rect(28px, 28px, 56px, 0);
|
||||
}
|
||||
|
||||
#reload-button:not([disabled]):hover:active {
|
||||
-moz-image-region: rect(56px, 28px, 84px, 0);
|
||||
}
|
||||
|
||||
#stop-button {
|
||||
-moz-image-region: rect(0, 56px, 28px, 28px);
|
||||
}
|
||||
|
||||
#stop-button:not([disabled]):hover {
|
||||
-moz-image-region: rect(28px, 56px, 56px, 28px);
|
||||
}
|
||||
|
||||
#stop-button:hover:active {
|
||||
-moz-image-region: rect(56px, 56px, 84px, 28px);
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
/* Popup blocker button */
|
||||
#page-report-button {
|
||||
list-style-image: url("chrome://browser/skin/Info.png");
|
||||
@@ -910,6 +1113,48 @@ toolbarbutton.chevron > .toolbarbutton-icon {
|
||||
|
||||
%include ../shared/customizableui/customizeMode.inc.css
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#main-window[customize-entered] > #tab-view-deck {
|
||||
background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"),
|
||||
linear-gradient(to bottom, #bcbcbc, #b5b5b5);
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
#main-window[customization-lwtheme]:-moz-lwtheme {
|
||||
background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"),
|
||||
url("chrome://browser/skin/customizableui/background-noise-toolbar.png"),
|
||||
linear-gradient(to bottom, #bcbcbc, #b5b5b5);
|
||||
background-color: #b5b5b5;
|
||||
background-repeat: repeat;
|
||||
background-attachment: fixed;
|
||||
background-position: left top;
|
||||
}
|
||||
|
||||
#main-window[customize-entered] #browser-bottombox,
|
||||
#main-window[customize-entered] #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar),
|
||||
#main-window[customize-entered] #customization-container {
|
||||
border: 3px solid hsla(0,0%,0%,.1);
|
||||
border-top-width: 0;
|
||||
background-clip: padding-box;
|
||||
background-origin: padding-box;
|
||||
-moz-border-right-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
|
||||
-moz-border-bottom-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
|
||||
-moz-border-left-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
|
||||
}
|
||||
|
||||
#main-window[customize-entered] #customization-container,
|
||||
#main-window[customize-entered] #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar) {
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
#main-window[customize-entered] #TabsToolbar {
|
||||
-moz-appearance: none;
|
||||
background-clip: padding-box;
|
||||
border-right: 3px solid transparent;
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
%endif
|
||||
|
||||
/* End customization mode */
|
||||
|
||||
|
||||
|
||||
BIN
browser/themes/linux/customizableui/background-noise-toolbar.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 118 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
@@ -31,6 +31,12 @@ browser.jar:
|
||||
skin/classic/browser/slowStartup-16.png
|
||||
skin/classic/browser/webRTC-indicator.css (../shared/webRTC-indicator.css)
|
||||
* skin/classic/browser/controlcenter/panel.css (controlcenter/panel.css)
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/customizableui/background-noise-toolbar.png (customizableui/background-noise-toolbar.png)
|
||||
skin/classic/browser/customizableui/customizeMode-gridTexture.png (customizableui/customizeMode-gridTexture.png)
|
||||
skin/classic/browser/customizableui/customizeMode-separatorHorizontal.png (customizableui/customizeMode-separatorHorizontal.png)
|
||||
skin/classic/browser/customizableui/customizeMode-separatorVertical.png (customizableui/customizeMode-separatorVertical.png)
|
||||
#endif
|
||||
* skin/classic/browser/customizableui/panelUI.css (customizableui/panelUI.css)
|
||||
* skin/classic/browser/downloads/allDownloadsViewOverlay.css (downloads/allDownloadsViewOverlay.css)
|
||||
skin/classic/browser/downloads/download-glow-menuPanel.png (downloads/download-glow-menuPanel.png)
|
||||
|
||||
BIN
browser/themes/osx/Toolbar-background-noise.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
@@ -23,7 +23,32 @@
|
||||
--toolbar-bgimage: var(--toolbar-non-lwt-bgimage);
|
||||
|
||||
--toolbarbutton-vertical-text-padding: calc(var(--toolbarbutton-inner-padding) + 1px);
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
--toolbarbutton-border-radius: 4px;
|
||||
%else
|
||||
--space-above-tabbar: 9px;
|
||||
|
||||
--toolbarbutton-border-radius: 3px;
|
||||
|
||||
--toolbarbutton-hover-background: hsla(0,0%,100%,.1) linear-gradient(hsla(0,0%,100%,.3), hsla(0,0%,100%,.1)) padding-box;
|
||||
--toolbarbutton-active-background: hsla(0,0%,0%,.02) linear-gradient(hsla(0,0%,0%,.12), transparent) border-box;
|
||||
|
||||
--backbutton-border-color: rgba(0,0,0,0.2);
|
||||
--backbutton-background: linear-gradient(rgba(255,255,255,0.9),
|
||||
rgba(255,255,255,0.7)) repeat-x;
|
||||
|
||||
--toolbarbutton-hover-bordercolor: hsla(0,0%,0%,.2);
|
||||
--toolbarbutton-hover-boxshadow: 0 1px 0 hsla(0,0%,100%,.5),
|
||||
0 1px 0 hsla(0,0%,100%,.5) inset;
|
||||
|
||||
--toolbarbutton-active-bordercolor: hsla(0,0%,0%,.3);
|
||||
--toolbarbutton-active-boxshadow: 0 1px 0 hsla(0,0%,100%,.5),
|
||||
0 1px 0 hsla(0,0%,0%,.05) inset,
|
||||
0 1px 1px hsla(0,0%,0%,.2) inset;
|
||||
|
||||
--toolbarbutton-checkedhover-backgroundcolor: hsla(0,0%,0%,.09);
|
||||
%endif
|
||||
|
||||
--urlbar-dropmarker-url: url("chrome://browser/skin/urlbar-history-dropmarker.png");
|
||||
--urlbar-dropmarker-region: rect(0, 11px, 14px, 0);
|
||||
@@ -45,6 +70,20 @@
|
||||
--toolbar-bgimage: none;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
toolbar:-moz-lwtheme {
|
||||
--backbutton-background: linear-gradient(rgba(255,255,255,0.5),
|
||||
rgba(255,255,255,0.2) 50%,
|
||||
rgba(255,255,255,0.1) 50%,
|
||||
rgba(255,255,255,0.2)) repeat-x;
|
||||
}
|
||||
|
||||
#urlbar:-moz-lwtheme:not([focused="true"]),
|
||||
.searchbar-textbox:-moz-lwtheme:not([focused="true"]) {
|
||||
opacity: .9;
|
||||
}
|
||||
%endif
|
||||
|
||||
#navigator-toolbox::after {
|
||||
-moz-box-ordinal-group: 101; /* tabs toolbar is 100 */
|
||||
content: "";
|
||||
@@ -110,7 +149,11 @@
|
||||
* tabstrip can overlap it.
|
||||
*/
|
||||
#main-window[tabsintitlebar] > #titlebar {
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
min-height: calc(var(--tab-min-height) + var(--space-above-tabbar) - var(--tab-toolbar-navbar-overlap));
|
||||
%else
|
||||
min-height: calc(var(--tab-min-height) - var(--tab-toolbar-navbar-overlap));
|
||||
%endif
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -122,7 +165,11 @@
|
||||
|
||||
#main-window[tabsintitlebar] > #titlebar > #titlebar-content > #titlebar-buttonbox-container,
|
||||
#main-window[tabsintitlebar] > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > #titlebar-fullscreen-button {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
margin-top: 6px;
|
||||
%else
|
||||
margin-top: 11px;
|
||||
%endif
|
||||
}
|
||||
|
||||
#main-window:not([tabsintitlebar]) > #titlebar > #titlebar-content > #titlebar-buttonbox-container,
|
||||
@@ -130,16 +177,40 @@
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#main-window[customize-entered] > #titlebar {
|
||||
-moz-appearance: none;
|
||||
}
|
||||
%endif
|
||||
|
||||
/** End titlebar **/
|
||||
|
||||
#main-window[chromehidden~="toolbar"][chromehidden~="location"][chromehidden~="directories"] {
|
||||
border-top: 1px solid rgba(0,0,0,0.65);
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#navigator-toolbox > toolbar:not(#TabsToolbar) {
|
||||
-moz-appearance: none;
|
||||
background: var(--toolbar-bgcolor);
|
||||
}
|
||||
%else
|
||||
#navigator-toolbox > toolbar:not(#TabsToolbar):not(#nav-bar):not(:-moz-lwtheme) {
|
||||
-moz-appearance: none;
|
||||
background: url(chrome://browser/skin/Toolbar-background-noise.png) hsl(0,0%,83%);
|
||||
}
|
||||
|
||||
/* remove noise texture on Yosemite */
|
||||
@media (-moz-mac-yosemite-theme) {
|
||||
#navigator-toolbox > toolbar:not(#TabsToolbar):not(#nav-bar):not(:-moz-lwtheme) {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
#navigator-toolbox > toolbar:-moz-window-inactive:not(#TabsToolbar):not(#nav-bar):not(:-moz-lwtheme) {
|
||||
background-color: hsl(0,0%,95%);
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
|
||||
overflow: -moz-hidden-unscrollable;
|
||||
@@ -153,6 +224,42 @@
|
||||
transition: min-height 170ms ease-out, max-height 170ms ease-out, visibility 170ms linear;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#nav-bar {
|
||||
-moz-appearance: none;
|
||||
background: url(chrome://browser/skin/Toolbar-background-noise.png),
|
||||
linear-gradient(hsl(0,0%,93%), hsl(0,0%,83%));
|
||||
background-clip: border-box;
|
||||
background-origin: border-box !important;
|
||||
|
||||
/* Move the noise texture out of the top 1px strip because that overlaps
|
||||
with the tabbar and we don't want to repaint it when animating tabs.
|
||||
The noise image is at least 100px high, so repeating it only horizontally
|
||||
is enough. */
|
||||
background-repeat: repeat-x, no-repeat;
|
||||
background-position: 0 1px, 0 0;
|
||||
|
||||
box-shadow: inset 0 1px 0 hsla(0,0%,100%,.4);
|
||||
}
|
||||
|
||||
@media (min-resolution: 2dppx) {
|
||||
#nav-bar {
|
||||
background-size: 100px 100px, auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* remove noise texture on Yosemite */
|
||||
@media (-moz-mac-yosemite-theme) {
|
||||
#nav-bar {
|
||||
background: linear-gradient(hsl(0,0%,93%), hsl(0,0%,83%));
|
||||
}
|
||||
|
||||
#nav-bar:-moz-window-inactive {
|
||||
background: linear-gradient(hsl(0,0%,97%), hsl(0,0%,95%));
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
/* Draw the bottom border of the tabs toolbar when it's not using
|
||||
-moz-appearance: toolbar. */
|
||||
#main-window:-moz-any([sizemode="fullscreen"],[customize-entered]) #TabsToolbar:not([collapsed="true"]) + #nav-bar,
|
||||
@@ -199,6 +306,13 @@
|
||||
min-height: 23px;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#navigator-toolbox > toolbar:not(#TabsToolbar):-moz-lwtheme {
|
||||
background-color: @toolbarColorLWT@;
|
||||
background-image: url(chrome://browser/skin/Toolbar-background-noise.png);
|
||||
}
|
||||
%endif
|
||||
|
||||
#PersonalToolbar:not(:-moz-lwtheme):-moz-window-inactive,
|
||||
#nav-bar:not(:-moz-lwtheme):-moz-window-inactive {
|
||||
background-color: -moz-mac-chrome-inactive;
|
||||
@@ -428,6 +542,20 @@ toolbarpaletteitem[place="palette"] > #personal-bookmarks > #bookmarks-toolbar-p
|
||||
list-style-image: url("chrome://browser/skin/menu-forward.png") !important;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
@media (-moz-mac-yosemite-theme) {
|
||||
#forward-button > .toolbarbutton-icon {
|
||||
border-top: none !important;
|
||||
border-bottom: none !important;
|
||||
box-shadow: 0 .5px 0 0 rgba(0,0,0,0.2) !important;
|
||||
}
|
||||
#forward-button:-moz-window-inactive > .toolbarbutton-icon {
|
||||
box-shadow: 0 1px 0 0 rgba(0,0,0,0.2) inset,
|
||||
0 -1px 0 0 rgba(0,0,0,0.2) inset !important;
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
/* ----- FULLSCREEN WINDOW CONTROLS ----- */
|
||||
|
||||
#minimize-button,
|
||||
@@ -440,6 +568,8 @@ toolbarpaletteitem[place="palette"] > #personal-bookmarks > #bookmarks-toolbar-p
|
||||
|
||||
%include ../shared/urlbar-searchbar.inc.css
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
|
||||
#urlbar,
|
||||
.searchbar-textbox {
|
||||
font-size: 1.25em;
|
||||
@@ -451,8 +581,108 @@ toolbarpaletteitem[place="palette"] > #personal-bookmarks > #bookmarks-toolbar-p
|
||||
box-shadow: var(--focus-ring-box-shadow);
|
||||
}
|
||||
|
||||
%else
|
||||
|
||||
#urlbar,
|
||||
.searchbar-textbox {
|
||||
font: icon;
|
||||
-moz-appearance: none;
|
||||
box-shadow: 0 1px 0 hsla(0,0%,100%,.2),
|
||||
inset 0 0 1px hsla(0,0%,0%,.05),
|
||||
inset 0 1px 2px hsla(0,0%,0%,.1);
|
||||
margin: 0 4px;
|
||||
padding: 1px 0;
|
||||
border: 1px solid;
|
||||
background-image: linear-gradient(hsl(0,0%,97%), hsl(0,0%,100%));
|
||||
border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.25) hsla(0,0%,0%,.15);
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
#urlbar[readonly] {
|
||||
background-color: -moz-field;
|
||||
}
|
||||
|
||||
@media (-moz-mac-yosemite-theme) {
|
||||
.searchbar-textbox,
|
||||
#urlbar {
|
||||
border-color: #fff;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 .5px 0 0 rgba(0,0,0,0.2);
|
||||
background-image: none;
|
||||
}
|
||||
.searchbar-textbox:-moz-window-inactive,
|
||||
#urlbar:-moz-window-inactive {
|
||||
box-shadow: none;
|
||||
border-color: rgba(0,0,0,0.1);
|
||||
}
|
||||
}
|
||||
|
||||
#urlbar[focused="true"],
|
||||
.searchbar-textbox[focused="true"] {
|
||||
border-color: -moz-mac-focusring;
|
||||
box-shadow: var(--focus-ring-box-shadow);
|
||||
}
|
||||
|
||||
#urlbar {
|
||||
border-radius: var(--toolbarbutton-border-radius);
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ > #urlbar {
|
||||
border-inline-start: none;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(ltr) {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(rtl) {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ {
|
||||
clip-path: url("chrome://browser/content/browser.xul#urlbar-back-button-clip-path");
|
||||
margin-inline-start: calc(-1 * var(--backbutton-urlbar-overlap));
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@:-moz-locale-dir(rtl),
|
||||
@conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(rtl) {
|
||||
/* let urlbar-back-button-clip-path clip the urlbar's right side for RTL */
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@:-moz-locale-dir(rtl) {
|
||||
-moz-box-direction: reverse;
|
||||
}
|
||||
%endif
|
||||
|
||||
%include ../shared/identity-block/identity-block.inc.css
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#identity-box {
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
#urlbar:not([focused="true"]) > #identity-box {
|
||||
margin-top: -1px;
|
||||
margin-bottom: -1px;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
}
|
||||
|
||||
@media (-moz-mac-yosemite-theme) {
|
||||
#urlbar:not([focused="true"]):not(:-moz-window-inactive) > #identity-box {
|
||||
margin-top: -2px;
|
||||
margin-bottom: -2px;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
#identity-box:-moz-locale-dir(ltr) {
|
||||
border-top-left-radius: 2px;
|
||||
border-bottom-left-radius: 2px;
|
||||
@@ -695,6 +925,96 @@ html|span.ac-emphasize-text-url {
|
||||
border-top: 1px solid GrayText;
|
||||
}
|
||||
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
/* ----- COMBINED GO/RELOAD/STOP BUTTON IN LOCATION BAR ----- */
|
||||
|
||||
#urlbar-go-button,
|
||||
#reload-button,
|
||||
#stop-button {
|
||||
margin: 0;
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go.png");
|
||||
padding: 0 9px;
|
||||
margin-inline-start: 5px;
|
||||
border-inline-start: 1px solid var(--urlbar-separator-color);
|
||||
border-image: linear-gradient(transparent 15%,
|
||||
var(--urlbar-separator-color) 15%,
|
||||
var(--urlbar-separator-color) 85%,
|
||||
transparent 85%);
|
||||
border-image-slice: 1;
|
||||
}
|
||||
|
||||
#urlbar-go-button {
|
||||
-moz-image-region: rect(0, 42px, 14px, 28px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:hover:active {
|
||||
-moz-image-region: rect(14px, 42px, 28px, 28px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
#reload-button {
|
||||
-moz-image-region: rect(0, 14px, 14px, 0);
|
||||
}
|
||||
|
||||
#reload-button:not([disabled]):hover:active {
|
||||
-moz-image-region: rect(14px, 14px, 28px, 0);
|
||||
}
|
||||
|
||||
#reload-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
#stop-button {
|
||||
-moz-image-region: rect(0, 28px, 14px, 14px);
|
||||
}
|
||||
|
||||
#stop-button:hover:active {
|
||||
-moz-image-region: rect(14px, 28px, 28px, 14px);
|
||||
}
|
||||
|
||||
@media (min-resolution: 2dppx) {
|
||||
#urlbar-go-button,
|
||||
#reload-button,
|
||||
#stop-button {
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
|
||||
}
|
||||
|
||||
#urlbar-go-button > .toolbarbutton-icon,
|
||||
#reload-button > .toolbarbutton-icon,
|
||||
#stop-button > .toolbarbutton-icon {
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
#urlbar-go-button {
|
||||
-moz-image-region: rect(0, 84px, 28px, 56px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:hover:active {
|
||||
-moz-image-region: rect(28px, 84px, 56px, 56px);
|
||||
}
|
||||
|
||||
#reload-button {
|
||||
-moz-image-region: rect(0, 28px, 28px, 0);
|
||||
}
|
||||
|
||||
#reload-button:not([disabled]):hover:active {
|
||||
-moz-image-region: rect(28px, 28px, 56px, 0);
|
||||
}
|
||||
|
||||
#stop-button {
|
||||
-moz-image-region: rect(0, 56px, 28px, 28px);
|
||||
}
|
||||
|
||||
#stop-button:hover:active {
|
||||
-moz-image-region: rect(28px, 56px, 56px, 28px);
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
#BMB_bookmarksPopup[side="top"],
|
||||
#BMB_bookmarksPopup[side="bottom"] {
|
||||
margin-left: -26px;
|
||||
@@ -1142,7 +1462,11 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
|
||||
|
||||
.tabbrowser-tab[visuallyselected=true]:not(:-moz-lwtheme) {
|
||||
/* overriding tabbox.css */
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
color: hsl(240, 5%, 5%);
|
||||
%else
|
||||
color: inherit;
|
||||
%endif
|
||||
}
|
||||
|
||||
.tabbrowser-tab[visuallyselected=true] {
|
||||
@@ -1162,7 +1486,12 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
|
||||
margin-bottom: calc(-1 * var(--tab-toolbar-navbar-overlap));
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#main-window:not([customizing]) #navigator-toolbox[inFullscreen] > #TabsToolbar:not(:-moz-lwtheme),
|
||||
#main-window:not(:-moz-any([customizing],[tabsintitlebar])) #navigator-toolbox > #TabsToolbar:not(:-moz-lwtheme) {
|
||||
%else
|
||||
:root:not([customizing]):not([tabsintitlebar]):not([inFullscreen]) #TabsToolbar:not(:-moz-lwtheme) {
|
||||
%endif
|
||||
-moz-appearance: toolbar;
|
||||
}
|
||||
|
||||
@@ -1171,12 +1500,19 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
|
||||
text-shadow: @loweredShadow@;
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
:root:-moz-any([inFullscreen], [tabsintitlebar]) #TabsToolbar:not(:-moz-lwtheme) {
|
||||
-moz-appearance: -moz-mac-vibrancy-dark;
|
||||
color: hsl(240, 9%, 98%);
|
||||
text-shadow: none;
|
||||
}
|
||||
%endif
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#navigator-toolbox[inFullscreen] > #TabsToolbar {
|
||||
padding-top: var(--space-above-tabbar);
|
||||
}
|
||||
%endif
|
||||
#tabbrowser-tabs {
|
||||
-moz-box-align: stretch;
|
||||
}
|
||||
@@ -1527,6 +1863,94 @@ html|*.addon-webext-perm-list {
|
||||
|
||||
%include ../shared/customizableui/customizeMode.inc.css
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#main-window[customizing] {
|
||||
background-color: rgb(178,178,178);
|
||||
}
|
||||
|
||||
#main-window[tabsintitlebar][customize-entered] > #titlebar,
|
||||
#main-window[privatebrowsingmode=temporary]:not([tabsintitlebar])[customize-entered] > #titlebar,
|
||||
#main-window[customize-entered] > #tab-view-deck {
|
||||
background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"),
|
||||
url("chrome://browser/skin/customizableui/background-noise-toolbar.png"),
|
||||
linear-gradient(to bottom, rgb(233,233,233), rgb(178,178,178) 40px);
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
#main-window[tabsintitlebar][customization-lwtheme] > #titlebar:-moz-lwtheme {
|
||||
background-repeat: no-repeat;
|
||||
background-position: right top;
|
||||
background-attachment: fixed;
|
||||
background-image: var(--lwt-header-image);
|
||||
background-color: var(--lwt-accent-color);
|
||||
}
|
||||
|
||||
#main-window[customization-lwtheme]:-moz-lwtheme {
|
||||
background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"),
|
||||
url("chrome://browser/skin/customizableui/background-noise-toolbar.png");
|
||||
background-color: rgb(178,178,178);
|
||||
background-repeat: repeat;
|
||||
background-attachment: fixed;
|
||||
background-position: left top;
|
||||
}
|
||||
|
||||
#main-window[customize-entered] #browser-bottombox,
|
||||
#main-window[customize-entered] #navigator-toolbox > toolbar:not(#TabsToolbar),
|
||||
#main-window[customize-entered] #customization-container {
|
||||
border: 3px solid hsla(0,0%,0%,.1);
|
||||
border-top-width: 0;
|
||||
background-clip: padding-box;
|
||||
background-origin: padding-box;
|
||||
-moz-border-right-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
|
||||
-moz-border-bottom-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
|
||||
-moz-border-left-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
|
||||
}
|
||||
|
||||
#main-window[customize-entered] #customization-container,
|
||||
#main-window[customize-entered] #navigator-toolbox > toolbar:not(#TabsToolbar) {
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
#main-window[customize-entered] #nav-bar {
|
||||
border-top-left-radius: 2.5px;
|
||||
border-top-right-radius: 2.5px;
|
||||
}
|
||||
|
||||
/* Compensate for the border set above for this horizontal line. */
|
||||
#main-window[customize-entered] #navigator-toolbox::after {
|
||||
margin-left: 3px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
#main-window[customize-entered] #TabsToolbar {
|
||||
background-clip: padding-box;
|
||||
border-right: 3px solid transparent;
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
%endif
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
@media (min-resolution: 2dppx) {
|
||||
.customization-tipPanel-infoBox {
|
||||
background-image: url(chrome://browser/skin/customizableui/info-icon-customizeTip@2x.png);
|
||||
background-size: 25px 25px;
|
||||
}
|
||||
|
||||
.customization-tipPanel-contentImage {
|
||||
list-style-image: url(chrome://browser/skin/customizableui/customize-illustration@2x.png);
|
||||
}
|
||||
|
||||
.customization-tipPanel-contentImage:-moz-locale-dir(rtl) {
|
||||
list-style-image: url(chrome://browser/skin/customizableui/customize-illustration-rtl@2x.png);
|
||||
}
|
||||
|
||||
#customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="left"],
|
||||
#customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="right"] {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/panelarrow-customizeTip@2x.png");
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
/* End customization mode */
|
||||
|
||||
.private-browsing-indicator {
|
||||
@@ -1569,6 +1993,9 @@ html|*.addon-webext-perm-list {
|
||||
}
|
||||
|
||||
#TabsToolbar > .private-browsing-indicator {
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
transform: translateY(calc(-1 * var(--space-above-tabbar)));
|
||||
%endif
|
||||
/* We offset by 38px for mask graphic, plus 4px to account for the
|
||||
* margin-left, which sums to 42px.
|
||||
*/
|
||||
|
||||
BIN
browser/themes/osx/customizableui/background-noise-toolbar.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
browser/themes/osx/customizableui/customizeMode-gridTexture.png
Normal file
|
After Width: | Height: | Size: 118 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
@@ -50,6 +50,12 @@ browser.jar:
|
||||
skin/classic/browser/webRTC-sharingScreen-menubar@2x.png
|
||||
skin/classic/browser/webRTC-indicator.css
|
||||
* skin/classic/browser/controlcenter/panel.css (controlcenter/panel.css)
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/customizableui/background-noise-toolbar.png (customizableui/background-noise-toolbar.png)
|
||||
skin/classic/browser/customizableui/customizeMode-gridTexture.png (customizableui/customizeMode-gridTexture.png)
|
||||
skin/classic/browser/customizableui/customizeMode-separatorHorizontal.png (customizableui/customizeMode-separatorHorizontal.png)
|
||||
skin/classic/browser/customizableui/customizeMode-separatorVertical.png (customizableui/customizeMode-separatorVertical.png)
|
||||
#endif
|
||||
* skin/classic/browser/customizableui/panelUI.css (customizableui/panelUI.css)
|
||||
* skin/classic/browser/downloads/allDownloadsViewOverlay.css (downloads/allDownloadsViewOverlay.css)
|
||||
skin/classic/browser/downloads/download-glow-menuPanel.png (downloads/download-glow-menuPanel.png)
|
||||
@@ -113,6 +119,9 @@ browser.jar:
|
||||
skin/classic/browser/sync-mobileIcon.svg (../shared/sync-mobileIcon.svg)
|
||||
skin/classic/browser/syncProgress-horizontalbar.png
|
||||
skin/classic/browser/syncProgress-horizontalbar@2x.png
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/Toolbar-background-noise.png (Toolbar-background-noise.png)
|
||||
#endif
|
||||
skin/classic/browser/yosemite/menuPanel-customize.png (menuPanel-customize-yosemite.png)
|
||||
skin/classic/browser/yosemite/menuPanel-customize@2x.png (menuPanel-customize-yosemite@2x.png)
|
||||
skin/classic/browser/yosemite/menuPanel-exit.png (menuPanel-exit-yosemite.png)
|
||||
|
||||
@@ -2,7 +2,24 @@
|
||||
|
||||
% Note that zoom-reset-button is a bit different since it doesn't use an image and thus has the image with display: none.
|
||||
%define nestedButtons #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button
|
||||
%define primaryToolbarButtons #back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, @nestedButtons@, #e10s-button, #panic-button, #webide-button, #containers-panelmenu
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
%define primaryToolbarButtons @primaryToolbarButtons@, #reload-button, #stop-button, #library-button
|
||||
%endif
|
||||
|
||||
%ifdef XP_MACOSX
|
||||
% Prior to 10.7 there wasn't a native fullscreen button so we use #restore-button to exit fullscreen
|
||||
% and want it to behave like other toolbar buttons.
|
||||
%define primaryToolbarButtons @primaryToolbarButtons@, #restore-button
|
||||
%endif
|
||||
|
||||
%define inAnyPanel :-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])
|
||||
|
||||
%define panelPaletteIconSize var(--panel-palette-icon-size)
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
%define attributeSelectorForToolbar
|
||||
%define panelPaletteIconSize var(--panel-palette-icon-size)
|
||||
%else
|
||||
%define attributeSelectorForToolbar [cui-areatype="toolbar"]
|
||||
%define panelPaletteIconSize 32px
|
||||
%endif
|
||||
|
||||
@@ -2,6 +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/. */
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
%ifdef CAN_DRAW_IN_TITLEBAR
|
||||
/* Add space for dragging the window */
|
||||
%ifdef MOZ_WIDGET_COCOA
|
||||
@@ -14,6 +15,7 @@
|
||||
{
|
||||
padding-inline-start: 40px;
|
||||
}
|
||||
%endif
|
||||
|
||||
/* Go button */
|
||||
.urlbar-go-button {
|
||||
|
||||
@@ -7,6 +7,12 @@
|
||||
there are overrides for each platform in their compacttheme.css files. */
|
||||
|
||||
:root:-moz-lwtheme {
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
--space-above-tabbar: 0px;
|
||||
--backbutton-urlbar-overlap: 0px;
|
||||
/* 18px icon + 2 * 5px padding + 1 * 1px border */
|
||||
--forwardbutton-width: 29px;
|
||||
%endif
|
||||
--toolbar-bgcolor: var(--chrome-secondary-background-color);
|
||||
--toolbar-gbimage: none;
|
||||
--toolbar-non-lwt-bgcolor: var(--toolbar-bgcolor);
|
||||
@@ -15,6 +21,26 @@
|
||||
}
|
||||
|
||||
:root:-moz-lwtheme-brighttext {
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
|
||||
/* Chrome */
|
||||
--chrome-background-color: #272b35;
|
||||
--chrome-color: #F5F7FA;
|
||||
--chrome-secondary-background-color: #393F4C;
|
||||
--chrome-navigator-toolbox-separator-color: rgba(0,0,0,.2);
|
||||
--chrome-nav-bar-separator-color: rgba(0,0,0,.2);
|
||||
--chrome-nav-buttons-background: #252C33;
|
||||
--chrome-nav-buttons-hover-background: #1B2127;
|
||||
--chrome-nav-bar-controls-border-color: #1D2328;
|
||||
--chrome-selection-color: #fff;
|
||||
--chrome-selection-background-color: #5675B9;
|
||||
|
||||
--pinned-tab-glow: radial-gradient(22px at center calc(100% - 2px), rgba(76,158,217,0.9) 13%, rgba(0,0,0,0.4) 16%, transparent 70%);
|
||||
|
||||
|
||||
%else
|
||||
|
||||
/* Chrome */
|
||||
--chrome-background-color: hsl(240, 5%, 5%);
|
||||
--chrome-color: rgb(249, 249, 250);
|
||||
@@ -29,8 +55,14 @@
|
||||
|
||||
--toolbarbutton-icon-fill-inverted: rgba(249, 249, 250, .7);
|
||||
|
||||
%endif
|
||||
|
||||
/* Url and search bars */
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
--url-and-searchbar-background-color: #171B1F;
|
||||
%else
|
||||
--url-and-searchbar-background-color: hsla(0, 0%, 100%, .1);
|
||||
%endif
|
||||
--urlbar-separator-color: #5F6670;
|
||||
--urlbar-dropmarker-url: url("chrome://browser/skin/compacttheme/urlbar-history-dropmarker.svg");
|
||||
--urlbar-dropmarker-region: rect(0px, 11px, 14px, 0px);
|
||||
@@ -42,6 +74,19 @@
|
||||
--urlbar-dropmarker-active-2x-region: rect(0px, 33px, 14px, 22px);
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
/* Override the lwtheme-specific styling for toolbar buttons */
|
||||
:root:-moz-lwtheme-brighttext,
|
||||
toolbar:-moz-lwtheme-brighttext {
|
||||
--toolbarbutton-hover-background: rgba(25,33, 38,.6) linear-gradient(rgba(25,33,38,.6), rgba(25,33,38,.6)) padding-box;
|
||||
--toolbarbutton-hover-boxshadow: none;
|
||||
--toolbarbutton-hover-bordercolor: rgba(25,33,38,.6);
|
||||
--toolbarbutton-active-background: rgba(25,33,38,1) linear-gradient(rgba(25,33,38,1), rgba(25,33,38,1)) border-box;
|
||||
--toolbarbutton-active-boxshadow: none;
|
||||
--toolbarbutton-active-bordercolor: rgba(25,33,38,.8);
|
||||
--toolbarbutton-checkedhover-backgroundcolor: #3C5283;
|
||||
}
|
||||
%endif
|
||||
:root:-moz-lwtheme-darktext {
|
||||
--url-and-searchbar-background-color: #fff;
|
||||
|
||||
@@ -55,8 +100,32 @@
|
||||
--chrome-nav-bar-controls-border-color: #ccc;
|
||||
--chrome-selection-color: #f5f7fa;
|
||||
--chrome-selection-background-color: #4c9ed9;
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
--pinned-tab-glow: radial-gradient(22px at center calc(100% - 2px), rgba(76,158,217,0.9) 13%, transparent 16%);
|
||||
%endif
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
/* Override the lwtheme-specific styling for toolbar buttons */
|
||||
:root:-moz-lwtheme-darktext,
|
||||
toolbar:-moz-lwtheme-darktext {
|
||||
--toolbarbutton-hover-background: #eaeaea;
|
||||
--toolbarbutton-hover-boxshadow: none;
|
||||
--toolbarbutton-hover-bordercolor: rgba(0,0,0,0.1);
|
||||
--toolbarbutton-active-background: #d7d7d8 border-box;
|
||||
--toolbarbutton-active-boxshadow: none;
|
||||
--toolbarbutton-active-bordercolor: rgba(0,0,0,0.15);
|
||||
--toolbarbutton-checkedhover-backgroundcolor: #d7d7d8;
|
||||
}
|
||||
|
||||
/* Give some space to drag the window around while customizing
|
||||
(normal space to left and right of tabs doesn't work in this case) */
|
||||
#main-window[tabsintitlebar][customizing] {
|
||||
--space-above-tabbar: 9px;
|
||||
}
|
||||
%endif
|
||||
|
||||
#urlbar ::-moz-selection,
|
||||
#navigator-toolbox .searchbar-textbox ::-moz-selection,
|
||||
.browserContainer > findbar ::-moz-selection {
|
||||
@@ -100,6 +169,53 @@
|
||||
#TabsToolbar {
|
||||
text-shadow: none !important;
|
||||
}
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
|
||||
/* Back and forward button */
|
||||
|
||||
#back-button > .toolbarbutton-icon,
|
||||
#forward-button > .toolbarbutton-icon {
|
||||
background: var(--chrome-nav-buttons-background) !important;
|
||||
border-radius: 0 !important;
|
||||
padding: var(--toolbarbutton-inner-padding) 5px !important;
|
||||
margin: 0 !important;
|
||||
border: 1px solid var(--chrome-nav-bar-controls-border-color) !important;
|
||||
box-shadow: none !important;
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
/* the normal theme adds box-shadow: <stuff> !important when the back-button is [open]. Fix: */
|
||||
#back-button[open="true"] > .toolbarbutton-icon {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
#forward-button > .toolbarbutton-icon {
|
||||
border-inline-start: none !important;
|
||||
}
|
||||
|
||||
/* Override a box shadow for disabled back button */
|
||||
#main-window:not([customizing]) #back-button[disabled] > .toolbarbutton-icon {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
/* Override !important properties for hovered back button */
|
||||
#main-window #back-button:hover:not([disabled="true"]) > .toolbarbutton-icon,
|
||||
#main-window #forward-button:hover:not([disabled="true"]) > .toolbarbutton-icon {
|
||||
background: var(--chrome-nav-buttons-hover-background) !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
#back-button > .toolbarbutton-icon {
|
||||
border-radius: 2px 0 0 2px !important;
|
||||
}
|
||||
|
||||
#nav-bar .toolbarbutton-1:not([type=menu-button]),
|
||||
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
|
||||
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
%endif
|
||||
|
||||
/* URL bar and search bar*/
|
||||
#urlbar,
|
||||
@@ -120,6 +236,27 @@
|
||||
fill: rgba(255,255,255,.7);
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#urlbar {
|
||||
border-inline-start: none !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
window:not([chromehidden~="toolbar"]) #urlbar-wrapper {
|
||||
overflow: -moz-hidden-unscrollable;
|
||||
clip-path: none;
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
|
||||
window:not([chromehidden~="toolbar"]) #urlbar-wrapper:-moz-locale-dir(rtl),
|
||||
window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar:-moz-locale-dir(rtl) {
|
||||
/* Resolves text blurring issue when hovering, see bug 1340206 */
|
||||
transform: none;
|
||||
/* For some reason, this property must be specified here, even though the same
|
||||
value is set in the previous rule set. o_O */
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
%endif
|
||||
#urlbar-zoom-button:-moz-lwtheme-brighttext:hover {
|
||||
background-color: rgba(255,255,255,.2);
|
||||
}
|
||||
@@ -135,7 +272,13 @@
|
||||
|
||||
.tabbrowser-tab:-moz-any([image], [pinned]) > .tab-stack > .tab-content[attention]:not([selected="true"]),
|
||||
.tabbrowser-tab > .tab-stack > .tab-content[pinned][titlechanged]:not([selected="true"]) {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
background-position: center bottom -4px;
|
||||
%else
|
||||
background-image: var(--pinned-tab-glow);
|
||||
background-position: center;
|
||||
background-size: 100%;
|
||||
%endif
|
||||
}
|
||||
|
||||
.tabbrowser-tab[image] > .tab-stack > .tab-content[attention]:not([pinned]):not([selected="true"]) {
|
||||
|
||||
@@ -213,7 +213,11 @@
|
||||
}
|
||||
/* SECURITY */
|
||||
.identity-popup-connection-secure {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
color: #058B00;
|
||||
%else
|
||||
color: #418220;
|
||||
%endif
|
||||
}
|
||||
.identity-popup-connection-not-secure {
|
||||
color: #d74345;
|
||||
@@ -235,7 +239,11 @@
|
||||
#identity-popup[connection^=secure] #identity-popup-security-content {
|
||||
background-image: url(chrome://browser/skin/controlcenter/connection.svg#connection-secure);
|
||||
-moz-context-properties: fill;
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
fill: #12BC00;
|
||||
%else
|
||||
fill: #4d9a26;
|
||||
%endif
|
||||
}
|
||||
/* Use [isbroken] to make sure we don't show a lock on an http page. See Bug 1192162. */
|
||||
#identity-popup[ciphers=weak] #identity-popup-securityView,
|
||||
|
||||
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 16 KiB |
BIN
browser/themes/shared/customizableui/customize-illustration.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 16 KiB |
@@ -8,14 +8,109 @@
|
||||
--drag-drop-transition-duration: .3s;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#main-window[customization-lwtheme] #tab-view-deck:-moz-lwtheme {
|
||||
background-repeat: no-repeat;
|
||||
background-position: right top;
|
||||
background-attachment: fixed;
|
||||
background-color: transparent;
|
||||
background-image: -moz-image-rect(var(--lwt-header-image), 0, 100%,
|
||||
var(--toolbox-rect-height), 0),
|
||||
linear-gradient(to bottom,
|
||||
var(--lwt-accent-color) calc(var(--toolbox-rect-height-with-unit) - 1px),
|
||||
rgba(0,0,0,0.25) calc(var(--toolbox-rect-height-with-unit) - 1px),
|
||||
rgba(0,0,0,0.25) calc(var(--toolbox-rect-height-with-unit) + 1px),
|
||||
rgba(255,255,255,0.5) calc(var(--toolbox-rect-height-with-unit) + 1px),
|
||||
rgba(255,255,255,0.5) calc(var(--toolbox-rect-height-with-unit) + 2px),
|
||||
transparent calc(var(--toolbox-rect-height-with-unit) + 2px));
|
||||
}
|
||||
|
||||
#main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
#main-window:-moz-any([customize-entering],[customize-entered]) #content-deck,
|
||||
#main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox,
|
||||
#main-window:-moz-any([customize-entering],[customize-entered]) #navigator-toolbox {
|
||||
margin-left: 2em;
|
||||
margin-right: 2em;
|
||||
}
|
||||
|
||||
#main-window:-moz-any([customize-entering],[customize-exiting]) #tab-view-deck {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before,
|
||||
#PanelUI-contents > .panel-customization-placeholder {
|
||||
-moz-outline-radius: 2.5px;
|
||||
outline: 1px dashed transparent;
|
||||
}
|
||||
|
||||
#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before {
|
||||
/* Prevent jumping of tabs when switching a window between inactive and active (bug 853415). */
|
||||
-moz-box-ordinal-group: 0;
|
||||
content: "";
|
||||
display: -moz-box;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
outline-offset: -2px;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Shift the TabsToolbar outline up 2px since the #nav-bar is shifted up by 1px and the
|
||||
#TabsToolbar::after is a pixel higher to draw the bottom border of the tabstrip so this makes the
|
||||
offset from the bottom effectively the same as other targets (-2px). */
|
||||
#main-window[customize-entered] #TabsToolbar.customization-target::before {
|
||||
top: -2px;
|
||||
}
|
||||
|
||||
/* The parents of the outline pseudo-elements need to be positioned so that the outline is positioned relative to it. */
|
||||
#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)):hover,
|
||||
#main-window[customize-entered] .customization-target[customizing-dragovertarget]:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)),
|
||||
#main-window[customize-entered] #nav-bar-customization-target.customization-target {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Most target outlines are shown on hover and drag over but the panel menu uses
|
||||
placeholders instead. */
|
||||
#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)):hover::before,
|
||||
#main-window[customize-entered] .customization-target[customizing-dragovertarget]:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before,
|
||||
/* nav-bar and panel outlines are always shown */
|
||||
#nav-bar[showoutline=true] > #nav-bar-customization-target.customization-target::before {
|
||||
outline-color: currentColor;
|
||||
}
|
||||
|
||||
#nav-bar[showoutline=true] > #nav-bar-customization-target.customization-target::before {
|
||||
transition: outline-color 250ms linear;
|
||||
}
|
||||
|
||||
#PanelUI-contents[showoutline=true] > .panel-customization-placeholder {
|
||||
transition: outline-color 250ms linear;
|
||||
outline-color: var(--panel-separator-color);
|
||||
}
|
||||
|
||||
#PanelUI-contents > .panel-customization-placeholder {
|
||||
cursor: auto;
|
||||
outline-offset: -5px;
|
||||
}
|
||||
%endif
|
||||
|
||||
#main-window[customizing] .customization-target:not(#PanelUI-contents):not(#widget-overflow-fixed-list) {
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#customization-container {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
background-color: var(--toolbar-non-lwt-bgcolor);
|
||||
background-image: var(--toolbar-non-lwt-bgimage);
|
||||
color: var(--toolbar-non-lwt-textcolor);
|
||||
%else
|
||||
background-color: -moz-field;
|
||||
color: -moz-fieldText;
|
||||
%endif
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
@@ -42,9 +137,21 @@
|
||||
}
|
||||
|
||||
#customization-panel-container {
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
padding: 15px 25px 25px;
|
||||
background-image: linear-gradient(to bottom, #3e86ce, #3878ba);
|
||||
%else
|
||||
padding: 0 20px 25px;
|
||||
%endif
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox,
|
||||
#customization-footer {
|
||||
background-color: -moz-dialog;
|
||||
}
|
||||
%endif
|
||||
|
||||
#customization-footer {
|
||||
border-top: 1px solid rgba(0,0,0,.15);
|
||||
padding: 10px;
|
||||
@@ -157,9 +264,25 @@
|
||||
background-image: url("chrome://browser/content/default-theme-icon.svg");
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#customization-uidensity-button > .box-inherit > .box-inherit > .button-icon {
|
||||
background-image: url("chrome://browser/skin/customizableui/density-normal.svg");
|
||||
}
|
||||
%endif
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#main-window[customize-entered] #customization-panel-container {
|
||||
background-image: url("chrome://browser/skin/customizableui/customizeMode-separatorHorizontal.png"),
|
||||
url("chrome://browser/skin/customizableui/customizeMode-separatorVertical.png"),
|
||||
url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"),
|
||||
url("chrome://browser/skin/customizableui/background-noise-toolbar.png"),
|
||||
linear-gradient(to bottom, #3e86ce, #3878ba);
|
||||
background-position: center top, left center, left top, left top, left top;
|
||||
background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
|
||||
background-size: auto 12px, 12px 100%, auto, auto, auto;
|
||||
background-attachment: scroll, scroll, fixed, fixed, scroll;
|
||||
}
|
||||
%endif
|
||||
|
||||
#widget-overflow-fixed-list > toolbarpaletteitem[place="panel"],
|
||||
toolbarpaletteitem[place="toolbar"] {
|
||||
@@ -338,6 +461,7 @@ toolbarpaletteitem[place=toolbar] > toolbarspring {
|
||||
list-style-image: url(chrome://browser/content/default-theme-icon.svg);
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#customization-uidensity-menuitem-normal {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/density-normal.svg");
|
||||
}
|
||||
@@ -349,6 +473,7 @@ toolbarpaletteitem[place=toolbar] > toolbarspring {
|
||||
#customization-uidensity-menuitem-touch {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/density-touch.svg");
|
||||
}
|
||||
%endif
|
||||
|
||||
.customization-uidensity-menuitem[active="true"],
|
||||
.customization-uidensity-menuitem:hover,
|
||||
@@ -477,6 +602,7 @@ toolbarpaletteitem[place=toolbar] > toolbarspring {
|
||||
}
|
||||
%endif
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#customization-panelHolder > #widget-overflow-fixed-list:not(:empty) {
|
||||
padding-bottom: 50px; /* Make sure there's always space to drop stuff. */
|
||||
}
|
||||
@@ -500,3 +626,7 @@ toolbarpaletteitem[place=toolbar] > toolbarspring {
|
||||
background-image: url("chrome://browser/skin/customizableui/empty-overflow-panel@2x.png");
|
||||
}
|
||||
}
|
||||
|
||||
%else
|
||||
%include customizeTip.inc.css
|
||||
%endif
|
||||
|
||||
75
browser/themes/shared/customizableui/customizeTip.inc.css
Normal file
@@ -0,0 +1,75 @@
|
||||
/* 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/. */
|
||||
|
||||
#customization-tipPanel > .panel-arrowcontainer > .panel-arrowcontent {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-width: 400px;
|
||||
max-width: 1000px;
|
||||
min-height: 200px;
|
||||
border-radius: 3px;
|
||||
background-image: linear-gradient(90deg, #a0dfff 0%, #ceeeff 100%);
|
||||
border: 0px solid rgba(0,148,221,.5);
|
||||
box-shadow: 0 1px 5px 0 rgba(0,0,0,.5), inset 0 1px 1px 0 #fff;
|
||||
color: rgb(51,51,51);
|
||||
}
|
||||
|
||||
#customization-tipPanel > .panel-arrowcontainer > .panel-arrowcontent:-moz-locale-dir(rtl) {
|
||||
background-image: linear-gradient(90deg, #ceeeff 0%, #a0dfff 100%);
|
||||
}
|
||||
|
||||
.customization-tipPanel-infoBox {
|
||||
margin: 20px 25px 25px;
|
||||
width: 25px;
|
||||
background-image: url(chrome://browser/skin/customizableui/info-icon-customizeTip.png);
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.customization-tipPanel-content {
|
||||
margin: 25px 0;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.customization-tipPanel-em {
|
||||
margin: 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.customization-tipPanel-contentImage {
|
||||
margin-top: 25px;
|
||||
list-style-image: url(chrome://browser/skin/customizableui/customize-illustration.png);
|
||||
min-width: 300px;
|
||||
max-width: 300px;
|
||||
min-height: 190px;
|
||||
max-height: 190px;
|
||||
display: -moz-box;
|
||||
}
|
||||
|
||||
.customization-tipPanel-contentImage:-moz-locale-dir(rtl) {
|
||||
list-style-image: url(chrome://browser/skin/customizableui/customize-illustration-rtl.png);
|
||||
}
|
||||
|
||||
.customization-tipPanel-link {
|
||||
-moz-appearance: none;
|
||||
background: transparent;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
color: rgb(25,82,171);
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.customization-tipPanel-link > .button-box > .button-text {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.customization-tipPanel-closeBox > .close-icon {
|
||||
margin-inline-end: -25px;
|
||||
}
|
||||
|
||||
#customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="left"],
|
||||
#customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="right"] {
|
||||
list-style-image: url("chrome://browser/skin/customizableui/panelarrow-customizeTip.png");
|
||||
}
|
||||
BIN
browser/themes/shared/customizableui/info-icon-customizeTip.png
Normal file
|
After Width: | Height: | Size: 286 B |
|
After Width: | Height: | Size: 501 B |
@@ -1200,8 +1200,10 @@ panelview:not([mainView]) .subviewbutton.panel-subview-footer > .toolbarbutton-t
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#widget-overflow-fixed-list .toolbarbutton-1 > .toolbarbutton-text,
|
||||
#widget-overflow-list .toolbarbutton-1 > .toolbarbutton-text,
|
||||
%endif
|
||||
.subviewbutton:not(.panel-subview-footer) > .toolbarbutton-text,
|
||||
/* Bookmark items need a more specific selector. */
|
||||
.PanelUI-subView .subviewbutton:not(.panel-subview-footer) > .menu-text,
|
||||
@@ -1371,6 +1373,10 @@ photonpanelmultiview panelview:not([mainView]) .subviewbutton.panel-subview-foot
|
||||
|
||||
/* END photon adjustments */
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
.widget-overflow-list > .toolbarbutton-1:not(:first-child),
|
||||
.widget-overflow-list > toolbaritem:not(:first-child),
|
||||
%endif
|
||||
panelview .toolbarbutton-1 {
|
||||
margin-top: 6px;
|
||||
}
|
||||
@@ -1595,20 +1601,63 @@ toolbarpaletteitem[place="palette"] > #search-container {
|
||||
min-height: 37px;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
.toolbaritem-combined-buttons@inAnyPanel@ {
|
||||
background-color: transparent;
|
||||
border-radius: 2px;
|
||||
border: 1px solid;
|
||||
border-color: transparent;
|
||||
border-bottom-color: var(--panel-separator-color);
|
||||
padding: 0;
|
||||
transition-property: background-color, border-color;
|
||||
transition-duration: 150ms;
|
||||
}
|
||||
|
||||
/* Make direct siblings overlap borders: */
|
||||
.toolbaritem-combined-buttons + .toolbaritem-combined-buttons@inAnyPanel@ {
|
||||
border-top-color: transparent !important;
|
||||
}
|
||||
|
||||
.toolbaritem-combined-buttons + .toolbaritem-combined-buttons@inAnyPanel@,
|
||||
toolbarpaletteitem[haswideitem][place="panel"] + toolbarpaletteitem[haswideitem][place="panel"] {
|
||||
margin-top: -1px;
|
||||
}
|
||||
%endif
|
||||
|
||||
.toolbaritem-combined-buttons@inAnyPanel@ > toolbarbutton {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
-moz-box-flex: 1;
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
min-width: calc(@menuPanelButtonWidth@);
|
||||
max-width: calc(@menuPanelButtonWidth@);
|
||||
padding: .5em;
|
||||
/* We'd prefer to use height: auto here but it leads to layout bugs in the panel. Cope:
|
||||
1.2em for line height + 2 * .5em padding + margin on the label (2 * 2px) */
|
||||
height: calc(2.2em + 4px);
|
||||
max-height: none;
|
||||
%else
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
%endif
|
||||
-moz-box-orient: horizontal;
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
/* In customize mode, extend the buttons *only* in the panel, just to make them not look stupid */
|
||||
toolbarpaletteitem[place=panel] > .toolbaritem-combined-buttons > toolbarbutton {
|
||||
min-width: calc(@menuPanelButtonWidth@ - 1px);
|
||||
max-width: calc(@menuPanelButtonWidth@ - 1px);
|
||||
}
|
||||
%else
|
||||
#edit-controls@inAnyPanel@ > #copy-button,
|
||||
#zoom-controls@inAnyPanel@ > #zoom-reset-button {
|
||||
/* reduce the width with 2px for this button to compensate for two separators
|
||||
of 1px. */
|
||||
min-width: calc(@menuPanelButtonWidth@ - 2px);
|
||||
max-width: calc(@menuPanelButtonWidth@ - 2px);
|
||||
}
|
||||
%endif
|
||||
|
||||
#main-window:not([customizing]) .toolbaritem-combined-buttons@inAnyPanel@ > toolbarbutton[disabled] > .toolbarbutton-icon {
|
||||
opacity: .25;
|
||||
@@ -1659,24 +1708,41 @@ toolbarpaletteitem[place=panel] > .toolbaritem-combined-buttons > toolbarbutton
|
||||
}
|
||||
|
||||
.cui-widget-panelview,
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#widget-overflow-scroller {
|
||||
%else
|
||||
#widget-overflow-mainView .panel-subview-body {
|
||||
%endif
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
#widget-overflow-scroller {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
%else
|
||||
max-height: 30em;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
%endif
|
||||
}
|
||||
|
||||
.widget-overflow-list {
|
||||
width: @menuPanelWidth@;
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
%endif
|
||||
}
|
||||
|
||||
toolbaritem[overflowedItem=true],
|
||||
.widget-overflow-list .toolbarbutton-1 {
|
||||
width: 100%;
|
||||
max-width: @menuPanelWidth@;
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
min-height: 36px;
|
||||
%endif
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 center;
|
||||
}
|
||||
@@ -1693,6 +1759,26 @@ toolbaritem[overflowedItem=true],
|
||||
padding-inline-start: .5em;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
.widget-overflow-list > .toolbaritem-combined-buttons {
|
||||
min-height: 28px;
|
||||
}
|
||||
|
||||
.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-button::after {
|
||||
content: "";
|
||||
display: -moz-box;
|
||||
width: 1px;
|
||||
height: 18px;
|
||||
margin-inline-end: -1px;
|
||||
background-image: linear-gradient(hsla(210,54%,20%,.2) 0, hsla(210,54%,20%,.2) 18px);
|
||||
background-clip: padding-box;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 1px 18px;
|
||||
box-shadow: 0 0 0 1px hsla(0,0%,100%,.2);
|
||||
}
|
||||
%endif
|
||||
|
||||
.subviewbutton[checked="true"] {
|
||||
background: url("chrome://global/skin/menu/shared-menu-check.png") center left 7px / 11px 11px no-repeat transparent;
|
||||
}
|
||||
|
||||
BIN
browser/themes/shared/customizableui/panelarrow-customizeTip.png
Normal file
|
After Width: | Height: | Size: 243 B |
|
After Width: | Height: | Size: 260 B |
@@ -5,7 +5,11 @@
|
||||
/*** Status and progress indicator ***/
|
||||
|
||||
#downloads-button {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
--downloads-indicator-image: url("chrome://browser/skin/downloads/download-icons.svg#arrow-with-bar");
|
||||
%else
|
||||
--downloads-indicator-image: url("chrome://browser/skin/download.svg");
|
||||
%endif
|
||||
}
|
||||
|
||||
#downloads-indicator-anchor {
|
||||
|
||||
6
browser/themes/shared/icons/back-large.svg
Normal file
@@ -0,0 +1,6 @@
|
||||
<!-- 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" width="16" height="16" viewBox="0 0 16 16">
|
||||
<path fill="context-fill" fill-opacity="context-fill-opacity" d="M14 6H6.5l3-3a.967.967 0 0 0 0-1.4L8.7.7a.967.967 0 0 0-1.4 0L.7 7.3a.967.967 0 0 0 0 1.4l6.6 6.6a.967.967 0 0 0 1.4 0l.8-.8a.965.965 0 0 0 0-1.4l-3-3.1H14c.6 0 1-.2 1-.8V7a.945.945 0 0 0-1-1z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 566 B |
6
browser/themes/shared/icons/bookmarksMenu.svg
Normal file
@@ -0,0 +1,6 @@
|
||||
<!-- 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" width="16" height="16" viewBox="0 0 16 16">
|
||||
<path fill="context-fill" d="M13 15H3a2.006 2.006 0 0 1-2-2V5a2.006 2.006 0 0 1 2-2h2l3-3 3 3h2a2.006 2.006 0 0 1 2 2v8a2.006 2.006 0 0 1-2 2zM4 5a.945.945 0 0 0-1 1 .945.945 0 0 0 1 1 .945.945 0 0 0 1-1 .945.945 0 0 0-1-1zm0 3a.945.945 0 0 0-1 1 .945.945 0 0 0 1 1 .945.945 0 0 0 1-1 .945.945 0 0 0-1-1zm0 3a1 1 0 0 0 0 2 1 1 0 0 0 0-2zm9-6H6v2h7zm0 3H6v2h7zm0 3H6v2h7z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 679 B |
6
browser/themes/shared/icons/download.svg
Normal file
@@ -0,0 +1,6 @@
|
||||
<!-- 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" width="16" height="16" viewBox="0 0 16 16">
|
||||
<path fill="context-fill" d="M7.293 12.707a1 1 0 0 0 1.414 0l5-5a1 1 0 0 0-1.414-1.414L9 9.586V1a1 1 0 1 0-2 0v8.586L3.707 6.293a1 1 0 0 0-1.414 1.414zM13 14H3a1 1 0 0 0 0 2h10a1 1 0 0 0 0-2z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 500 B |
@@ -5,7 +5,15 @@
|
||||
%endif
|
||||
|
||||
#identity-box {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
padding: 0 5px;
|
||||
%else
|
||||
font-size: .9em;
|
||||
padding: 3px 5px;
|
||||
/* The padding-left and padding-right transitions handle the delayed hiding of
|
||||
the forward button when hovered. */
|
||||
transition: padding-left, padding-right;
|
||||
%endif
|
||||
/* Set default fill for icons in the identity block.
|
||||
Individual icons can override this. */
|
||||
fill: currentColor;
|
||||
@@ -14,6 +22,7 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#identity-box:hover:not(.no-hover):not([open=true]) {
|
||||
background-color: hsla(240,5%,5%,.05);
|
||||
fill-opacity: .8;
|
||||
@@ -24,9 +33,14 @@
|
||||
background-color: hsla(240,5%,5%,.1);
|
||||
fill-opacity: .8;
|
||||
}
|
||||
%endif
|
||||
|
||||
#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity > #identity-icon-labels {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
color: #058B00;
|
||||
%else
|
||||
color: hsl(92,100%,30%);
|
||||
%endif
|
||||
}
|
||||
#urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #identity-icon-labels {
|
||||
%ifdef MOZ_OFFICIAL_BRANDING
|
||||
@@ -42,12 +56,14 @@
|
||||
#identity-icon-labels:-moz-locale-dir(rtl) {
|
||||
padding-right: 2px;
|
||||
}
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#identity-box:not(.chromeUI):not(.extensionPage) {
|
||||
--urlbar-separator-color: transparent;
|
||||
}
|
||||
#urlbar[pageproxystate=valid] > #identity-box.verifiedIdentity {
|
||||
--urlbar-separator-color: rgba(18, 188, 0, .5);
|
||||
}
|
||||
%endif
|
||||
|
||||
#identity-box {
|
||||
padding-inline-end: 2px;
|
||||
@@ -77,6 +93,23 @@
|
||||
border-image-slice: 1;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
@conditionalForwardWithUrlbar@ > #forward-button[disabled] + #urlbar > #identity-box {
|
||||
padding-inline-start: calc(var(--backbutton-urlbar-overlap) + 5px);
|
||||
}
|
||||
@conditionalForwardWithUrlbar@:hover:not([switchingtabs]) > #forward-button[disabled] + #urlbar > #identity-box {
|
||||
/* Forward button hiding is delayed when hovered, so we should use the same
|
||||
delay for the identity box. We handle both horizontal paddings (for LTR and
|
||||
RTL), the latter two delays here are for padding-left and padding-right. */
|
||||
transition-delay: 100s, 100s;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@:not(:hover) > #forward-button[disabled] + #urlbar > #identity-box {
|
||||
/* when not hovered anymore, trigger a new non-delayed transition to react to the forward button hiding */
|
||||
padding-inline-start: calc(var(--backbutton-urlbar-overlap) + 5.01px);
|
||||
}
|
||||
%endif
|
||||
|
||||
#identity-icon,
|
||||
#tracking-protection-icon,
|
||||
#connection-icon,
|
||||
@@ -94,6 +127,16 @@
|
||||
margin-inline-start: 0;
|
||||
list-style-image: url(chrome://browser/skin/identity-icon.svg);
|
||||
}
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#identity-box:not(.no-hover):hover > #identity-icon,
|
||||
#identity-box[open=true] > #identity-icon {
|
||||
list-style-image: url(chrome://browser/skin/identity-icon-hover.svg);
|
||||
}
|
||||
#identity-box.grantedPermissions:not(.no-hover):hover > #identity-icon,
|
||||
#identity-box.grantedPermissions[open=true] > #identity-icon {
|
||||
list-style-image: url(chrome://browser/skin/identity-icon-notice-hover.svg);
|
||||
}
|
||||
%endif
|
||||
|
||||
#identity-box.grantedPermissions > #identity-icon {
|
||||
list-style-image: url(chrome://browser/skin/identity-icon-notice.svg);
|
||||
@@ -197,7 +240,11 @@
|
||||
list-style-image: url(chrome://browser/skin/connection-secure.svg);
|
||||
visibility: visible;
|
||||
-moz-context-properties: fill;
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
fill: #12BC00;
|
||||
%else
|
||||
fill: #4d9a26;
|
||||
%endif
|
||||
}
|
||||
#urlbar[pageproxystate="valid"] > #identity-box.weakCipher > #connection-icon,
|
||||
#urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContent > #connection-icon,
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<!-- 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" width="16" height="16" viewBox="0 0 16 16">
|
||||
<path fill="context-fill" fill-opacity="context-fill-opacity" fill-rule="evenodd" d="M8 1a7 7 0 1 1-7 7 7 7 0 0 1 7-7zm0 3a1 1 0 1 1-1 1 1 1 0 0 1 1-1zm0 3a1 1 0 0 1 1 1v3a1 1 0 0 1-2 0V8a1 1 0 0 1 1-1z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 511 B |
@@ -0,0 +1,6 @@
|
||||
<!-- 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" width="16" height="16" viewBox="0 0 16 16">
|
||||
<path fill="context-fill" fill-opacity="context-fill-opacity" fill-rule="evenodd" d="M13.5 5A2.5 2.5 0 1 1 16 2.5 2.5 2.5 0 0 1 13.5 5zm0 1.039a3.5 3.5 0 0 0 1.125-.2 7.124 7.124 0 1 1-4.464-4.464 3.5 3.5 0 0 0-.2 1.125A3.54 3.54 0 0 0 13.5 6.039zM8 4a1 1 0 1 0 1 1 1 1 0 0 0-1-1zm1 4a1 1 0 0 0-2 0v3a1 1 0 0 0 2 0V8z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 626 B |
@@ -33,11 +33,22 @@
|
||||
skin/classic/browser/controlcenter/warning-yellow.svg (../shared/controlcenter/warning-yellow.svg)
|
||||
skin/classic/browser/customizableui/menuPanel-customizeFinish.png (../shared/customizableui/menuPanel-customizeFinish.png)
|
||||
skin/classic/browser/customizableui/menuPanel-customizeFinish@2x.png (../shared/customizableui/menuPanel-customizeFinish@2x.png)
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/customizableui/empty-overflow-panel.png (../shared/customizableui/empty-overflow-panel.png)
|
||||
skin/classic/browser/customizableui/empty-overflow-panel@2x.png (../shared/customizableui/empty-overflow-panel@2x.png)
|
||||
skin/classic/browser/customizableui/density-compact.svg (../shared/customizableui/density-compact.svg)
|
||||
skin/classic/browser/customizableui/density-normal.svg (../shared/customizableui/density-normal.svg)
|
||||
skin/classic/browser/customizableui/density-touch.svg (../shared/customizableui/density-touch.svg)
|
||||
#else
|
||||
skin/classic/browser/customizableui/customize-illustration.png (../shared/customizableui/customize-illustration.png)
|
||||
skin/classic/browser/customizableui/customize-illustration@2x.png (../shared/customizableui/customize-illustration@2x.png)
|
||||
skin/classic/browser/customizableui/customize-illustration-rtl.png (../shared/customizableui/customize-illustration-rtl.png)
|
||||
skin/classic/browser/customizableui/customize-illustration-rtl@2x.png (../shared/customizableui/customize-illustration-rtl@2x.png)
|
||||
skin/classic/browser/customizableui/info-icon-customizeTip.png (../shared/customizableui/info-icon-customizeTip.png)
|
||||
skin/classic/browser/customizableui/info-icon-customizeTip@2x.png (../shared/customizableui/info-icon-customizeTip@2x.png)
|
||||
skin/classic/browser/customizableui/panelarrow-customizeTip.png (../shared/customizableui/panelarrow-customizeTip.png)
|
||||
skin/classic/browser/customizableui/panelarrow-customizeTip@2x.png (../shared/customizableui/panelarrow-customizeTip@2x.png)
|
||||
#endif
|
||||
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)
|
||||
@@ -47,7 +58,9 @@
|
||||
skin/classic/browser/downloads/contentAreaDownloadsView.css (../shared/downloads/contentAreaDownloadsView.css)
|
||||
skin/classic/browser/downloads/download-blocked.svg (../shared/downloads/download-blocked.svg)
|
||||
skin/classic/browser/downloads/download-summary.svg (../shared/downloads/download-summary.svg)
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/downloads/download-icons.svg (../shared/downloads/download-icons.svg)
|
||||
#endif
|
||||
#ifdef MOZ_PHOTON_ANIMATIONS
|
||||
skin/classic/browser/downloads/notification-start-animation.svg (../shared/downloads/notification-start-animation.svg)
|
||||
#endif
|
||||
@@ -59,7 +72,14 @@
|
||||
skin/classic/browser/connection-mixed-active-loaded.svg (../shared/identity-block/connection-mixed-active-loaded.svg)
|
||||
skin/classic/browser/identity-icon.svg (../shared/identity-block/identity-icon.svg)
|
||||
skin/classic/browser/identity-icon-notice.svg (../shared/identity-block/identity-icon-notice.svg)
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/identity-icon-hover.svg (../shared/identity-block/identity-icon-hover.svg)
|
||||
skin/classic/browser/identity-icon-notice-hover.svg (../shared/identity-block/identity-icon-notice-hover.svg)
|
||||
#endif
|
||||
skin/classic/browser/info.svg (../shared/info.svg)
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
* skin/classic/browser/menuPanel.svg (../shared/menuPanel.svg)
|
||||
#endif
|
||||
* skin/classic/browser/menuPanel-small.svg (../shared/menuPanel-small.svg)
|
||||
skin/classic/browser/notification-icons.svg (../shared/notification-icons.svg)
|
||||
skin/classic/browser/tracking-protection-16.svg (../shared/identity-block/tracking-protection-16.svg)
|
||||
@@ -99,13 +119,20 @@
|
||||
skin/classic/browser/arrow-dropdown-16.svg (../shared/icons/arrow-dropdown-16.svg)
|
||||
skin/classic/browser/arrow-left.svg (../shared/icons/arrow-left.svg)
|
||||
skin/classic/browser/back.svg (../shared/icons/back.svg)
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/back-large.svg (../shared/icons/back-large.svg)
|
||||
#endif
|
||||
skin/classic/browser/back-12.svg (../shared/icons/back-12.svg)
|
||||
skin/classic/browser/bookmark.svg (../shared/icons/bookmark.svg)
|
||||
#ifdef MOZ_PHOTON_ANIMATIONS
|
||||
skin/classic/browser/bookmark-animation.svg (../shared/icons/bookmark-animation.svg)
|
||||
#endif
|
||||
skin/classic/browser/bookmark-hollow.svg (../shared/icons/bookmark-hollow.svg)
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/bookmarksMenu.svg (../shared/icons/bookmarksMenu.svg)
|
||||
#else
|
||||
skin/classic/browser/bookmark-star-on-tray.svg (../shared/icons/bookmark-star-on-tray.svg)
|
||||
#endif
|
||||
skin/classic/browser/characterEncoding.svg (../shared/icons/characterEncoding.svg)
|
||||
skin/classic/browser/chevron.svg (../shared/icons/chevron.svg)
|
||||
#ifdef MOZ_PHOTON_ANIMATIONS
|
||||
@@ -116,11 +143,18 @@
|
||||
skin/classic/browser/customize.svg (../shared/icons/customize.svg)
|
||||
skin/classic/browser/developer.svg (../shared/icons/developer.svg)
|
||||
skin/classic/browser/device-mobile.svg (../shared/icons/device-mobile.svg)
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/device-desktop.svg (../shared/icons/device-desktop.svg)
|
||||
#endif
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/download.svg (../shared/icons/download.svg)
|
||||
#endif
|
||||
skin/classic/browser/edit-copy.svg (../shared/icons/edit-copy.svg)
|
||||
skin/classic/browser/edit-cut.svg (../shared/icons/edit-cut.svg)
|
||||
skin/classic/browser/edit-paste.svg (../shared/icons/edit-paste.svg)
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/email-link.svg (../shared/icons/email-link.svg)
|
||||
#endif
|
||||
skin/classic/browser/feed.svg (../shared/icons/feed.svg)
|
||||
skin/classic/browser/find.svg (../shared/icons/find.svg)
|
||||
skin/classic/browser/forget.svg (../shared/icons/forget.svg)
|
||||
@@ -135,13 +169,17 @@
|
||||
#ifdef MOZ_PHOTON_ANIMATIONS
|
||||
skin/classic/browser/library-bookmark-animation.svg (../shared/icons/library-bookmark-animation.svg)
|
||||
#endif
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/link.svg (../shared/icons/link.svg)
|
||||
#endif
|
||||
skin/classic/browser/mail.svg (../shared/icons/mail.svg)
|
||||
skin/classic/browser/menu.svg (../shared/icons/menu.svg)
|
||||
skin/classic/browser/new-tab.svg (../shared/icons/new-tab.svg)
|
||||
skin/classic/browser/new-window.svg (../shared/icons/new-window.svg)
|
||||
skin/classic/browser/open.svg (../shared/icons/open.svg)
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/page-action.svg (../shared/icons/page-action.svg)
|
||||
#endif
|
||||
skin/classic/browser/print.svg (../shared/icons/print.svg)
|
||||
skin/classic/browser/privateBrowsing.svg (../shared/icons/privateBrowsing.svg)
|
||||
skin/classic/browser/quit.svg (../shared/icons/quit.svg)
|
||||
@@ -181,7 +219,9 @@
|
||||
skin/classic/browser/tabbrowser/connecting@2x.png (../shared/tabbrowser/connecting@2x.png)
|
||||
skin/classic/browser/tabbrowser/crashed.svg (../shared/tabbrowser/crashed.svg)
|
||||
skin/classic/browser/tabbrowser/newtab.svg (../shared/tabbrowser/newtab.svg)
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/tabbrowser/indicator-tab-attention.svg (../shared/tabbrowser/indicator-tab-attention.svg)
|
||||
#endif
|
||||
skin/classic/browser/tabbrowser/pendingpaint.png (../shared/tabbrowser/pendingpaint.png)
|
||||
skin/classic/browser/tabbrowser/tab-audio-playing.svg (../shared/tabbrowser/tab-audio-playing.svg)
|
||||
skin/classic/browser/tabbrowser/tab-audio-muted.svg (../shared/tabbrowser/tab-audio-muted.svg)
|
||||
|
||||
46
browser/themes/shared/menuPanel.svg
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- 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"
|
||||
width="1056" height="32" viewBox="0 0 1056 32"
|
||||
class="fieldtext">
|
||||
#include icon-colors.inc.svg
|
||||
|
||||
<path id="containers" d="M1050,30h-20a2,2,0,0,1-2-2V4.414a1.03,1.03,0,0,1,.29-0.707L1030,2h20l1.71,1.707a1.03,1.03,0,0,1,.29.707V28A2,2,0,0,1,1050,30Zm0-24h-20V28h20V6Zm-2,10h-16V8h16v8Zm-4-4.5a0.5,0.5,0,0,0-1,0V13h-6V11.5a0.5,0.5,0,0,0-1,0v2a0.5,0.5,0,0,0,.5.5h7a0.5,0.5,0,0,0,.5-0.5v-2Zm4,14.5h-16V18h16v8Zm-4-4.5a0.5,0.5,0,0,0-1,0V23h-6V21.5a0.5,0.5,0,0,0-1,0v2a0.5,0.5,0,0,0,.5.5h7a0.5,0.5,0,0,0,.5-0.5v-2Z"/>
|
||||
<path id="tabs" d="M1021.98,28h-28a2,2,0,0,1-2-2V22a2,2,0,0,1,2-2H994c4.591,0,4-3,4.009-8,0.009-4.686.166-8,6.261-8h7.41c6.13,0,6.27,3.314,6.3,8,0.02,5-.59,8,4.02,8h-0.02a2,2,0,0,1,2,2v4A2,2,0,0,1,1021.98,28Z"/>
|
||||
<path id="pocket" d="M975.969,29.969A13.969,13.969,0,0,1,962,16V8.333A4.333,4.333,0,0,1,966.333,4H985.6a4.333,4.333,0,0,1,4.333,4.333V16A13.969,13.969,0,0,1,975.969,29.969Zm7.507-19.035a2.009,2.009,0,0,0-1.424.59l-0.007-.007-6.095,6.015-5.479-5.422a2,2,0,1,0-2.917,2.727l-0.01.01,5.555,5.5h0l1.518,1.5a1.9,1.9,0,0,0,2.661,0l7.558-7.459a1.979,1.979,0,0,0,.649-1.46A2,2,0,0,0,983.476,10.933Z"/>
|
||||
<path id="webIDE" d="M951.947,10a24.679,24.679,0,0,1,.362,2.691L949,16h-4v4l-2,2h-4.393a14.261,14.261,0,0,0,1.358,3.076l-1.716,3.777A15,15,0,1,1,957.175,7.825L955,10h-3.053ZM938.292,26.023A17.1,17.1,0,0,1,936.54,22h-2.819A12.445,12.445,0,0,0,938.292,26.023ZM932.616,20h3.437a25.331,25.331,0,0,1-.462-4h-3.978A12.38,12.38,0,0,0,932.616,20Zm0-10a12.38,12.38,0,0,0-1,4h3.978a25.331,25.331,0,0,1,.462-4h-3.437Zm1.105-2h2.819a17.093,17.093,0,0,1,1.752-4.023A12.444,12.444,0,0,0,933.721,8ZM943,2.613c-0.393.031-.777,0.093-1.158,0.16A10.229,10.229,0,0,0,938.607,8H943V2.613ZM943,10h-4.914a24.566,24.566,0,0,0-.467,4H943V10Zm0,6h-5.381a24.566,24.566,0,0,0,.467,4H943V16Zm2-2h5.381a24.566,24.566,0,0,0-.467-4H945v4Zm1.158-11.227c-0.381-.067-0.765-0.128-1.158-0.16V8h4.393A10.229,10.229,0,0,0,946.158,2.773Zm3.55,1.2A17.093,17.093,0,0,1,951.46,8h2.819A12.444,12.444,0,0,0,949.708,3.977ZM947.068,28.3L939,32l3.726-8.047ZM944,23l13-13,4,4L948,27Zm3.4,6.6,11.2-11.2A15,15,0,0,1,947.4,29.6Z"/>
|
||||
<path id="app" d="M920.044,27.006l-4.354-4.863c-0.39.4-1.028,2.507-1.49,2.769h-4.4c-0.459-.262-1.094-2.375-1.484-2.769l-4.153,4.863H901V16.067l4.353-4.271C906.443,5.26,910.259,1,912,1s5.7,4.26,6.515,10.8L923,16.135V27.006h-2.956Zm-8.036-19.48c-0.61,0-1.819,2.268-2.484,4.251a14.406,14.406,0,0,1,2.535-.224,14.627,14.627,0,0,1,2.423.2C913.818,9.782,912.613,7.526,912.008,7.526Zm-0.762,18.23a4.106,4.106,0,0,0-.165,1.17,1.493,1.493,0,0,0,.858,1.466,1.535,1.535,0,0,0,.957-1.466,4.071,4.071,0,0,0-.165-1.17h1.079a9.949,9.949,0,0,1,.544,1.973A3.6,3.6,0,0,1,912,31.014a3.686,3.686,0,0,1-2.352-3.337,9.384,9.384,0,0,1,.544-1.921h1.051Z"/>
|
||||
<path id="forget" d="M880,31a15,15,0,1,1,15-15A15,15,0,0,1,880,31ZM879.963,8.208V4.159l-6.328,5.2,6.328,5.524v-4.27A5.279,5.279,0,0,1,885.391,16,5.233,5.233,0,0,1,880,21.391a5.406,5.406,0,0,1-5.28-3.516h-2.189A7.773,7.773,0,0,0,887.852,16,8.115,8.115,0,0,0,879.963,8.208Z"/>
|
||||
<path id="sidebars" d="M862,29H834a1,1,0,0,1-1-1V4a1,1,0,0,1,1-1h28a1,1,0,0,1,1,1V28A1,1,0,0,1,862,29ZM840,9h-3a1,1,0,0,0-1,1V25a1,1,0,0,0,1,1h3V9Zm3,17h16a1,1,0,0,0,1-1V10a1,1,0,0,0-1-1H843V26Zm8-20.986a0.991,0.991,0,1,0,1,.99A0.995,0.995,0,0,0,851,5.015Zm3,0a0.991,0.991,0,1,0,1,.99A0.995,0.995,0,0,0,854,5.015ZM859,5h-2a1,1,0,0,0,0,2h2A1,1,0,0,0,859,5Z"/>
|
||||
<path id="addon-generic" d="M815.988,2.013a13.987,13.987,0,1,1-13.975,14A14,14,0,0,1,815.988,2.013ZM814.923,4.4a2.112,2.112,0,0,0-2.371,2,2.064,2.064,0,0,0,.547,1.585,0.884,0.884,0,0,1,.285.717,1.458,1.458,0,0,1-1.706,1.329h-3.2a0.581,0.581,0,0,0-.552.584c-0.011.061,0,2.462,0,2.462a2.445,2.445,0,0,0,.289,1.489,0.8,0.8,0,0,0,.841.411,2.8,2.8,0,0,0,1.6-.487,1.632,1.632,0,0,1,1.221-.428c1.108,0,1.293.45,1.293,1.856,0,1.013-.469,1.931-1.262,1.931a1.054,1.054,0,0,1-.969-0.384,2.6,2.6,0,0,0-1.718-.63,0.99,0.99,0,0,0-1,.485c-0.339.544-.3,1.255-0.3,2.768,0,2.015,0,3.248,0,3.285a0.591,0.591,0,0,0,.552.668h3.2c1.072,0,2.874.361,2.874-1.05a1.611,1.611,0,0,0-.458-1.111,1.685,1.685,0,0,1-.377-1.149c0-.285-0.068-1.283,1.668-1.283,0.071,0,1.634.148,1.634,1.346a1.388,1.388,0,0,1-.245,1.04A1.4,1.4,0,0,0,816.185,23c0,1.5,1.683,1.039,2.213,1.039,1.884,0,2.763.017,3.031,0a0.628,0.628,0,0,0,.585-0.634C822,22.875,822,22.735,822,19.861a6.582,6.582,0,0,1,.172-2.259,0.642,0.642,0,0,1,.657-0.231,1.869,1.869,0,0,1,1.047.384,2.142,2.142,0,0,0,1.625,1.006c1.386,0,2.125-1.622,2.125-2.779,0-1.232-.628-2.754-2.158-2.754a2.029,2.029,0,0,0-1.516.723,1.384,1.384,0,0,1-.876.584,1.131,1.131,0,0,1-1.067-.877V10.738a0.734,0.734,0,0,0-.56-0.709c-0.012,0-1.881,0-3.34,0a1.407,1.407,0,0,1-1.541-1.389,1.292,1.292,0,0,1,.279-0.984,1.8,1.8,0,0,0,.548-1.283C817.392,5.666,817.042,4.4,814.923,4.4Z"/>
|
||||
<path id="mail" d="M787.333,16a4.507,4.507,0,0,1-6.666,0L769.39,6.7A3.349,3.349,0,0,1,772.333,5h23.334a3.348,3.348,0,0,1,2.943,1.7Zm-6.666,3.143a4.507,4.507,0,0,0,6.666,0L799,9.243V23.857A3.242,3.242,0,0,1,795.667,27H772.333A3.243,3.243,0,0,1,769,23.857V9.243Z"/>
|
||||
<path id="settings" d="M763.005,16c0,1.307.425,2.516,1.03,2.728L765,19.068a13.308,13.308,0,0,1-1.644,3.956l-0.921-.443c-0.578-.278-1.733.276-2.657,1.2s-1.478,2.079-1.2,2.657l0.444,0.923a13.357,13.357,0,0,1-3.964,1.622l-0.333-.949c-0.212-.6-1.421-1.03-2.728-1.03s-2.516.425-2.728,1.03l-0.34.969a13.322,13.322,0,0,1-3.956-1.644l0.443-.921c0.278-.578-0.276-1.733-1.2-2.657s-2.08-1.478-2.658-1.2l-0.923.444a13.366,13.366,0,0,1-1.622-3.964l0.949-.333C740.57,18.516,741,17.308,741,16s-0.425-2.516-1.03-2.728l-0.971-.341a13.255,13.255,0,0,1,1.667-3.946l0.9,0.433c0.578,0.278,1.733-.276,2.658-1.2s1.478-2.08,1.2-2.657l-0.433-.9A13.261,13.261,0,0,1,748.932,3l0.34,0.969C749.484,4.57,750.693,5,752,5s2.516-.425,2.728-1.03L755.068,3a13.321,13.321,0,0,1,3.956,1.644l-0.443.921c-0.277.577,0.276,1.733,1.2,2.657s2.079,1.478,2.657,1.2l0.923-.444a13.337,13.337,0,0,1,1.622,3.964l-0.949.333C763.43,13.485,763.005,14.693,763.005,16ZM752,8.946A7.054,7.054,0,1,0,759.054,16,7.054,7.054,0,0,0,752,8.946Z"/>
|
||||
<path id="developer" d="M724.986,11.177a2.978,2.978,0,0,1,.246.367,2.361,2.361,0,0,0,2.835-.346l4.975-4.932A7.808,7.808,0,0,1,734,9.952a7.969,7.969,0,0,1-10.791,7.435L711.4,29.075a3.192,3.192,0,0,1-4.486,0,3.125,3.125,0,0,1,0-4.447l11.675-11.563a7.863,7.863,0,0,1-.64-3.113,7.974,7.974,0,0,1,11.725-7.014l-4.972,4.929a2.307,2.307,0,0,0-.246,2.964A3.066,3.066,0,0,1,724.986,11.177ZM709.25,25A1.747,1.747,0,1,0,711,26.748,1.746,1.746,0,0,0,709.25,25Z"/>
|
||||
<path id="fullscreen" d="M696,22V10l6,6Zm-14,2h12l-6,6Zm11-2H683a1,1,0,0,1-1-1V11a1,1,0,0,1,1-1h10a1,1,0,0,1,1,1V21A1,1,0,0,1,693,22Zm-1-7a1,1,0,0,0-1-1h-6a1,1,0,0,0-1,1v4a1,1,0,0,0,1,1h6a1,1,0,0,0,1-1V15ZM688,2l6,6H681.982Zm-8,8V22l-6-6Z"/>
|
||||
<path id="print" d="M670,26h-4V24h-1l3,6H644l2-4h-4a2,2,0,0,1-2-2V14a2,2,0,0,1,2-2h2V10a2,2,0,0,1,2-2V3a1,1,0,0,1,1-1h18a1,1,0,0,1,1,1V8a2,2,0,0,1,2,2v2h2a2,2,0,0,1,2,2V24A2,2,0,0,1,670,26Zm-24,0,1-2h-1v2Zm1-10h-2a1,1,0,0,0,0,2h2A1,1,0,0,0,647,16ZM664,4.5a0.5,0.5,0,0,0-.5-0.5h-15a0.5,0.5,0,0,0-.5.5v9a0.5,0.5,0,0,0,.5.5h15a0.5,0.5,0,0,0,.5-0.5v-9ZM662.222,24H649.778L648,28h16Z"/>
|
||||
<path id="search" d="M626.853,23.318a10.074,10.074,0,0,1-5.361-1.545l-6.611,6.619a2.028,2.028,0,0,1-2.87,0l-0.4-.4a2.033,2.033,0,0,1,0-2.873l6.618-6.627A10.137,10.137,0,1,1,626.853,23.318Zm0-16.254a6.1,6.1,0,1,0,6.088,6.1A6.092,6.092,0,0,0,626.853,7.064Z"/>
|
||||
<path id="privateBrowsing" d="M574.273,11.973c-0.122,2.136.37,4.688-2.4,8.367-2.953,3.926-5.886,3.626-6.44,3.685-3.322.354-3.76-2.62-5.7-2.62-1.7,0-3.083,2.955-5.578,2.62-0.552-.074-3.487.241-6.44-3.685-2.768-3.679-2.276-6.231-2.4-8.367a41.419,41.419,0,0,0-.553-4.451,5.372,5.372,0,0,0,3.056,1.484c1.722,0.119,2.044-.61,5.678-1.662,3.929-1.137,6.3,3.522,6.3,3.522s2.668-4.591,6.3-3.522,3.78,1.78,5.5,1.662a6.249,6.249,0,0,0,3.232-1.484A41.574,41.574,0,0,0,574.273,11.973Zm-20.315.895c-2.148-.479-3.049.339-3.969,0.688a7.615,7.615,0,0,1-1.534.4s0.123,1.246,2.276,2.314,6.569,0.517,6.569.517S557.769,13.718,553.958,12.868ZM569.6,13.557c-0.92-.349-1.821-1.167-3.969-0.688-3.811.85-3.342,3.918-3.342,3.918s4.416,0.551,6.569-.517,2.276-2.314,2.276-2.314A7.615,7.615,0,0,1,569.6,13.557Z"/>
|
||||
<path id="new-tab" d="M541.977,28h-28a2,2,0,0,1-2-2V22a2,2,0,0,1,2-2H514c4.591,0,4-3,4.009-8,0.009-4.686.166-8,6.26-8h7.415c6.126,0,6.271,3.314,6.293,8,0.023,5-.592,8,4.023,8h-0.023a2,2,0,0,1,2,2v4A2,2,0,0,1,541.977,28ZM533,14h-4V10h-2v4h-4v2h4v4h2V16h4V14Z"/>
|
||||
<path id="new-window" d="M510,29H482a1,1,0,0,1-1-1V4a1,1,0,0,1,1-1h28a1,1,0,0,1,1,1V28A1,1,0,0,1,510,29ZM499,5.015a0.991,0.991,0,1,0,1,.99A0.995,0.995,0,0,0,499,5.015Zm3,0a0.991,0.991,0,1,0,1,.99A0.995,0.995,0,0,0,502,5.015ZM507,5h-2a1,1,0,0,0,0,2h2A1,1,0,0,0,507,5Zm1,5a1,1,0,0,0-1-1H485a1,1,0,0,0-1,1V25a1,1,0,0,0,1,1h22a1,1,0,0,0,1-1V10Z"/>
|
||||
<path id="encoding" d="M474,30H454a4,4,0,0,1-4-4V6a4,4,0,0,1,4-4h20a4,4,0,0,1,4,4V26A4,4,0,0,1,474,30Zm-1-19a6,6,0,0,0-6-6h-8a6,6,0,0,0-6,6v8a6,6,0,0,0,6,6h8c3.314,0,6-.686,6-4V11Zm-5.953,6.863a7.6,7.6,0,0,0,1.655-.171,7.822,7.822,0,0,0,1.587-.552v1.445a8.416,8.416,0,0,1-1.567.532,8.014,8.014,0,0,1-1.714.161A4.231,4.231,0,0,1,462.964,17a4.931,4.931,0,0,1-1.753,1.758,4.724,4.724,0,0,1-2.271.518,3.547,3.547,0,0,1-2.5-.83,3,3,0,0,1-.9-2.325,2.846,2.846,0,0,1,1.211-2.447,6.7,6.7,0,0,1,3.692-.952l1.8-.059V12a2.632,2.632,0,0,0-.566-1.86,2.271,2.271,0,0,0-1.729-.6,6.575,6.575,0,0,0-3,.82l-0.508-1.24a7.934,7.934,0,0,1,3.623-.918,4.438,4.438,0,0,1,2.076.425,2.656,2.656,0,0,1,1.206,1.353A3.647,3.647,0,0,1,464.7,8.653a3.833,3.833,0,0,1,1.909-.469,3.787,3.787,0,0,1,3.008,1.3,5.1,5.1,0,0,1,1.133,3.472V14H463.9Q463.98,17.863,467.047,17.863ZM462.2,13.819l-1.543.068a5.31,5.31,0,0,0-2.617.611,1.837,1.837,0,0,0-.8,1.646,1.673,1.673,0,0,0,.522,1.363,2.092,2.092,0,0,0,1.382.435,3.013,3.013,0,0,0,2.237-.825,3.16,3.16,0,0,0,.82-2.329V13.819Zm6.808-1.114a3.81,3.81,0,0,0-.625-2.344,2.124,2.124,0,0,0-1.8-.82,2.3,2.3,0,0,0-1.861.811,4.028,4.028,0,0,0-.786,2.354h5.069Z"/>
|
||||
<path id="share" d="M433.425,19.753l-0.658.08,0-.08L443.07,4.742l-13.5,15.01,0.154,0.45-0.494.06,0.547,0.094,3.651,10.653L426.77,20.562l-8.777,1.067L445,1V25.188Zm0,1.231,4.938,2.986-4.938,7.04-0.6-10.129Z"/>
|
||||
<path id="feed" d="M412.68,29.958l-3.1.031a1.516,1.516,0,0,1-1.538-1.516s0.687-7.114-6.308-14.356c-5.1-6.065-14.151-6.358-14.151-6.358a1.517,1.517,0,0,1-1.6-1.451l0.031-2.833a1.463,1.463,0,0,1,1.538-1.451s12.628,0.807,19.264,8.856c6.554,6.143,7.213,17.593,7.213,17.593A1.337,1.337,0,0,1,412.68,29.958Zm-25.159-18s7.416,0.88,11.585,4.753c4.264,3.961,4.9,11.794,4.9,11.794,0,0.832-.112,1.474-0.952,1.474l-2.852-.031a1.321,1.321,0,0,1-1.235-1.537,12.715,12.715,0,0,0-3.786-8.6c-2.877-2.641-7.694-2.8-7.694-2.8a1.437,1.437,0,0,1-1.521-1.412L386,13.371A1.436,1.436,0,0,1,387.521,11.96Zm2.488,10.03a4.012,4.012,0,1,1-4,4.012A4,4,0,0,1,390.009,21.989Z"/>
|
||||
<path id="sync" d="M381.914,17.518a13.937,13.937,0,0,1-.8,3.367,10.892,10.892,0,0,1-5.084,6.587,23.381,23.381,0,0,0,2.531,1.884,51.867,51.867,0,0,1-8.176.671c-0.073.012-.145-0.233-0.218-0.221l-0.009.219a19.383,19.383,0,0,1-5.989-1.271,10.818,10.818,0,0,0,3.225-4.19,16.7,16.7,0,0,0,1.216-6.063,36.351,36.351,0,0,0,2.73,4.119,8.152,8.152,0,0,0,4.263-6.1,7.53,7.53,0,0,0-1.165-4.689,7.645,7.645,0,0,0-3.463-2.839c0.461-.872,1-1.847,1.513-2.674a7.385,7.385,0,0,1,2.559-2.383A13.959,13.959,0,0,1,381.914,17.518ZM367.96,13.509s-2.271-2.971-3.244-4.054a8.006,8.006,0,0,0-4.306,7.011,7.6,7.6,0,0,0,4.837,6.526,11.93,11.93,0,0,1-1.982,2.818,21.3,21.3,0,0,1-2.45,2.158,13.955,13.955,0,0,1-5.641-17.528,10.883,10.883,0,0,1,4.232-5.453c0.189-.147.382-0.287,0.577-0.424-0.8-.739-3.667-1.049-3.667-1.049s5.431-2.093,13.959-1.16C367.87,6.295,367.96,13.509,367.96,13.509Z"/>
|
||||
<path id="save" d="M346.25,30h-20.5A1.755,1.755,0,0,1,324,28.25V3.75A1.755,1.755,0,0,1,325.75,2h13.5a5.164,5.164,0,0,1,3.033,1.19L346.717,7.3A4.6,4.6,0,0,1,348,10.241V28.25A1.755,1.755,0,0,1,346.25,30ZM345.774,9.293l-5-4.586C340.347,4.318,340,4.45,340,5v5h5.455C346.055,10,346.2,9.682,345.774,9.293Z"/>
|
||||
<path id="open" d="M319.749,13.924a67.491,67.491,0,0,0-1.34,7.977,37.552,37.552,0,0,0-.4,6.4,0.708,0.708,0,0,1-.714.7H290.679a0.709,0.709,0,0,1-.715-0.7,37.552,37.552,0,0,0-.4-6.4,67.491,67.491,0,0,0-1.34-7.977C287.973,12.779,288.606,12,289,12h29.974C319.368,12,320,12.779,319.749,13.924Zm-29.682-6.9h-0.076V5.019a1.987,1.987,0,0,1,1.968-2.006h8.105c1.087,0,2.276,1.755,2.276,1.755l1.635,2.222,13-.009a1.012,1.012,0,0,1,1.025,1V11H290.048Z"/>
|
||||
<path id="addOns" d="M277.051,30.97a1.987,1.987,0,0,0,1.977-2V21.86s0.3-1.829,1.515-1.829,1.088,1.934,3.356,1.934c1.133,0,3.085-.581,3.085-4.082s-1.952-3.924-3.085-3.924c-2.268,0-2.138,1.828-3.356,1.828s-1.515-1.881-1.515-1.881V10.994a1.988,1.988,0,0,0-1.977-2h-5.2s-1.725-.3-1.725-1.515,1.882-1.3,1.882-3.565c0-1.131-.632-2.926-4.135-2.926s-3.977,1.8-3.977,2.926c0,2.268,1.724,2.349,1.724,3.565S263.9,8.993,263.9,8.993h-4.951a1.989,1.989,0,0,0-1.976,2l0,3.906s-0.211,3.015,2.213,3.015c1.528,0,1.732-2.057,3.742-2.057,1,0,2.019.941,2.019,3.02S263.932,22,262.932,22c-2.01,0-2.214-2.055-3.742-2.055-2.424,0-2.213,2.909-2.213,2.909l0,6.115a1.988,1.988,0,0,0,1.976,2h6.638s3.154,0.212,3.154-2.214c0-1.528-1.991-1.824-1.991-3.835,0-1,1.109-2.238,3.19-2.238s3.314,1.238,3.314,2.238c0,2.012-1.928,2.307-1.928,3.835,0,2.425,3.154,2.214,3.154,2.214h2.572Z"/>
|
||||
#ifdef MOZ_PHOTON_THEME
|
||||
<path id="downloads" d="M248.7 26.1h-17.5c-1 0-1.8.8-1.8 1.8s.8 1.8 1.8 1.8h17.5c1 0 1.8-.8 1.8-1.8s-.8-1.8-1.8-1.8zm-10-2.2c.7.7 1.8.7 2.5 0l8.8-8.8c.7-.7.6-1.8-.1-2.5-.7-.6-1.7-.6-2.4 0l-5.8 5.8v-15c0-1-.8-1.8-1.8-1.8s-1.8.8-1.8 1.8v15l-5.8-5.8c-.7-.7-1.8-.6-2.5.1-.6.7-.6 1.7 0 2.4l8.9 8.8z"/>
|
||||
#else
|
||||
<path id="downloads" d="M253.285,18.118L242.09,29.126a3.008,3.008,0,0,1-4.242,0L226.59,18.118c-1.166-1.166-.772-2.121.879-2.121h6.5l0.062-12a2.027,2.027,0,0,1,2.032-2H244a2,2,0,0,1,2,2V16h6.406C254.057,16,254.451,16.952,253.285,18.118Z"/>
|
||||
#endif
|
||||
<path id="history" d="M208.007,30.007a14,14,0,1,1,14-14A14,14,0,0,1,208.007,30.007Zm0-24.007a10.008,10.008,0,1,0,10,10.008A10,10,0,0,0,208.007,6ZM206.1,15.9V10.412a1.829,1.829,0,0,1,1.829-1.829,1.951,1.951,0,0,1,1.965,1.829v5.032a22.977,22.977,0,0,1,3.52,5.939s-4.106-1.8-6.059-3.773A1.811,1.811,0,0,1,206.1,15.9Z"/>
|
||||
<path id="bookmark-filled" d="M188.4,11.546l-2.241-.371-5.3-.872-1.354-2.728v0l-1.09-2.192-1.088-2.2c-0.743-1.5-1.96-1.5-2.7,0l-1.089,2.2-1.088,2.192v0L171.1,10.3l-5.295.872-2.242.371c-1.677.275-2.093,1.49-.928,2.7l5.452,5.634-0.834,5.464L166.879,27.8c-0.253,1.643.766,2.348,2.264,1.576L171.2,28.3l2.051-1.071a0.007,0.007,0,0,0,.005,0l2.726-1.427,2.725,1.427a0.016,0.016,0,0,0,.007,0l2.048,1.071,2.06,1.082c1.5,0.772,2.514.068,2.266-1.576l-0.376-2.461-0.828-5.464,5.444-5.628C190.5,13.037,190.08,11.821,188.4,11.546Z"/>
|
||||
<path id="Bookmark-hollow" d="M144,8.365l1.725,3.526,0.79,1.616,1.773,0.3,4.069,0.681-3.007,3.153-1.182,1.24,0.254,1.7,0.63,4.207-3.426-1.821-1.639-.871-1.639.871-3.423,1.819,0.632-4.2,0.255-1.7-1.184-1.241-3-3.15,4.111-.683,1.79-.3,0.787-1.636L144,8.365M143.984,2a1.671,1.671,0,0,0-1.351,1.139l-3.472,7.213-7.582,1.259c-1.675.279-2.091,1.509-.926,2.735l5.445,5.709-1.207,8.031c-0.183,1.207.3,1.914,1.151,1.914a2.448,2.448,0,0,0,1.111-.317l6.832-3.631,6.832,3.631a2.447,2.447,0,0,0,1.11.317c0.85,0,1.333-.707,1.152-1.914l-1.2-8.031,5.438-5.7c1.165-1.229.749-2.461-.926-2.74l-7.527-1.259-3.527-7.213A1.668,1.668,0,0,0,143.984,2h0Z"/>
|
||||
<path id="home" d="M124,16L112,6,100,16H96L112,2l16,14h-4Zm-2,0v13.96h-8V20h-4v9.96h-8V16l10-8Z"/>
|
||||
<path id="stop" d="M93.121,24.879l-4.243,4.243-8.9-8.9L71.206,29l-4.2-4.2,8.774-8.774-8.9-8.9,4.243-4.243,8.9,8.9L88.794,3l4.2,4.2L84.222,15.98Z"/>
|
||||
<path id="reload" d="M62,14a2,2,0,0,1-2,2H48l5.833-5.833a8.993,8.993,0,1,0,1,12.686l3.035,2.6A13,13,0,1,1,56.669,7.331L62,2V14Z"/>
|
||||
<path id="placeholder" fill-rule="evenodd" d="M16,0A16,16,0,1,1,0,16,16,16,0,0,1,16,0ZM8,24V8H24V24H8Zm14-2h0Zm-2.121,0L16,18.121,12.121,22h7.757Zm-6-6L10,12.121v7.757Zm-1.757-6L16,13.879,19.879,10H12.121Zm6,6L22,19.879V12.121Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 16 KiB |
@@ -1,5 +1,183 @@
|
||||
/* Menu panel and palette styles */
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
toolbaritem[sdkstylewidget="true"] > toolbarbutton,
|
||||
:-moz-any(@primaryToolbarButtons@)[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > :-moz-any(@primaryToolbarButtons@) {
|
||||
list-style-image: url(chrome://browser/skin/menuPanel.svg);
|
||||
}
|
||||
|
||||
:-moz-any(@primaryToolbarButtons@)[cui-areatype="menu-panel"][panel-multiview-anchor=true] > .toolbarbutton-icon,
|
||||
:-moz-any(@primaryToolbarButtons@)[cui-areatype="menu-panel"][panel-multiview-anchor=true] > .toolbarbutton-badge-stack > .toolbarbutton-icon,
|
||||
:-moz-any(@primaryToolbarButtons@)[cui-areatype="menu-panel"][panel-multiview-anchor=true] > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
|
||||
filter: url(chrome://global/skin/filters.svg#fill);
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
#home-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #home-button {
|
||||
-moz-image-region: rect(0px, 128px, 32px, 96px);
|
||||
}
|
||||
|
||||
#bookmarks-menu-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #bookmarks-menu-button {
|
||||
-moz-image-region: rect(0px, 192px, 32px, 160px);
|
||||
}
|
||||
|
||||
#history-panelmenu[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #history-panelmenu {
|
||||
-moz-image-region: rect(0px, 224px, 32px, 192px);
|
||||
}
|
||||
|
||||
#downloads-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #downloads-button {
|
||||
-moz-image-region: rect(0px, 256px, 32px, 224px);
|
||||
}
|
||||
|
||||
#add-ons-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #add-ons-button {
|
||||
-moz-image-region: rect(0px, 288px, 32px, 256px);
|
||||
}
|
||||
|
||||
#open-file-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #open-file-button {
|
||||
-moz-image-region: rect(0px, 320px, 32px, 288px);
|
||||
}
|
||||
|
||||
#save-page-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #save-page-button {
|
||||
-moz-image-region: rect(0px, 352px, 32px, 320px);
|
||||
}
|
||||
|
||||
#sync-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #sync-button {
|
||||
-moz-image-region: rect(0px, 1024px, 32px, 992px);
|
||||
}
|
||||
|
||||
#containers-panelmenu[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #containers-panelmenu {
|
||||
-moz-image-region: rect(0px, 1056px, 32px, 1024px);
|
||||
}
|
||||
|
||||
#feed-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #feed-button {
|
||||
-moz-image-region: rect(0px, 416px, 32px, 384px);
|
||||
}
|
||||
|
||||
#social-share-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #social-share-button {
|
||||
-moz-image-region: rect(0px, 448px, 32px, 416px);
|
||||
}
|
||||
|
||||
#characterencoding-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #characterencoding-button {
|
||||
-moz-image-region: rect(0px, 480px, 32px, 448px);
|
||||
}
|
||||
|
||||
#new-window-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #new-window-button {
|
||||
-moz-image-region: rect(0px, 512px, 32px, 480px);
|
||||
}
|
||||
|
||||
#e10s-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #e10s-button {
|
||||
-moz-image-region: rect(0px, 512px, 32px, 480px);
|
||||
}
|
||||
|
||||
#new-tab-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #new-tab-button {
|
||||
-moz-image-region: rect(0px, 544px, 32px, 512px);
|
||||
}
|
||||
|
||||
#privatebrowsing-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #privatebrowsing-button {
|
||||
-moz-image-region: rect(0px, 576px, 32px, 544px);
|
||||
}
|
||||
|
||||
#find-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #find-button {
|
||||
-moz-image-region: rect(0px, 640px, 32px, 608px);
|
||||
}
|
||||
|
||||
#print-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #print-button {
|
||||
-moz-image-region: rect(0px, 672px, 32px, 640px);
|
||||
}
|
||||
|
||||
#fullscreen-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #fullscreen-button {
|
||||
-moz-image-region: rect(0px, 704px, 32px, 672px);
|
||||
}
|
||||
|
||||
#developer-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #developer-button {
|
||||
-moz-image-region: rect(0px, 736px, 32px, 704px);
|
||||
}
|
||||
|
||||
#preferences-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #preferences-button {
|
||||
-moz-image-region: rect(0px, 768px, 32px, 736px);
|
||||
}
|
||||
|
||||
#email-link-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #email-link-button {
|
||||
-moz-image-region: rect(0, 800px, 32px, 768px);
|
||||
}
|
||||
|
||||
#sidebar-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #sidebar-button {
|
||||
-moz-image-region: rect(0, 864px, 32px, 832px);
|
||||
}
|
||||
|
||||
#panic-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #panic-button {
|
||||
-moz-image-region: rect(0, 896px, 32px, 864px);
|
||||
}
|
||||
|
||||
#webide-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #webide-button {
|
||||
-moz-image-region: rect(0px, 960px, 32px, 928px);
|
||||
}
|
||||
|
||||
toolbaritem[sdkstylewidget="true"] > toolbarbutton {
|
||||
-moz-image-region: rect(0, 832px, 32px, 800px);
|
||||
}
|
||||
|
||||
/* Wide panel control icons */
|
||||
|
||||
#edit-controls@inAnyPanel@ > toolbarbutton,
|
||||
#zoom-controls@inAnyPanel@ > toolbarbutton,
|
||||
toolbarpaletteitem[place="palette"] > #edit-controls > toolbarbutton,
|
||||
toolbarpaletteitem[place="palette"] > #zoom-controls > toolbarbutton {
|
||||
list-style-image: url(chrome://browser/skin/menuPanel-small.svg);
|
||||
}
|
||||
|
||||
#edit-controls@inAnyPanel@ > #cut-button,
|
||||
toolbarpaletteitem[place="palette"] > #edit-controls > #cut-button {
|
||||
-moz-image-region: rect(0px, 32px, 16px, 16px);
|
||||
}
|
||||
|
||||
#edit-controls@inAnyPanel@ > #copy-button,
|
||||
toolbarpaletteitem[place="palette"] > #edit-controls > #copy-button {
|
||||
-moz-image-region: rect(0px, 48px, 16px, 32px);
|
||||
}
|
||||
|
||||
#edit-controls@inAnyPanel@ > #paste-button,
|
||||
toolbarpaletteitem[place="palette"] > #edit-controls > #paste-button {
|
||||
-moz-image-region: rect(0px, 64px, 16px, 48px);
|
||||
}
|
||||
|
||||
#zoom-controls@inAnyPanel@ > #zoom-out-button,
|
||||
toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button {
|
||||
-moz-image-region: rect(0px, 80px, 16px, 64px);
|
||||
}
|
||||
|
||||
#zoom-controls@inAnyPanel@ > #zoom-in-button,
|
||||
toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-in-button {
|
||||
-moz-image-region: rect(0px, 96px, 16px, 80px);
|
||||
}
|
||||
%endif
|
||||
|
||||
#add-share-provider {
|
||||
list-style-image: url(chrome://browser/skin/menuPanel-small.svg);
|
||||
-moz-image-region: rect(0px, 96px, 16px, 80px);
|
||||
@@ -107,6 +285,7 @@
|
||||
list-style-image: url("chrome://browser/skin/bookmark.svg");
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#bookmarks-menu-button[cui-areatype="menu-panel"],
|
||||
toolbarpaletteitem[place="palette"] > #bookmarks-menu-button {
|
||||
list-style-image: url("chrome://browser/skin/bookmark-star-on-tray.svg");
|
||||
@@ -119,3 +298,4 @@ toolbarpaletteitem[place="palette"] > #bookmarks-menu-button {
|
||||
#appMenuRestoreLastSession {
|
||||
list-style-image: url("chrome://browser/skin/reload.svg");
|
||||
}
|
||||
%endif
|
||||
|
||||
@@ -368,8 +368,14 @@
|
||||
|
||||
.tabbrowser-tab:-moz-any([image], [pinned]) > .tab-stack > .tab-content[attention]:not([selected="true"]),
|
||||
.tabbrowser-tab > .tab-stack > .tab-content[pinned][titlechanged]:not([selected="true"]) {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
background-image: url(chrome://browser/skin/tabbrowser/indicator-tab-attention.svg);
|
||||
background-position: center bottom -3px;
|
||||
%else
|
||||
background-image: radial-gradient(farthest-corner at center bottom, rgb(255,255,255) 3%, rgba(186,221,251,0.75) 20%, rgba(127,179,255,0.25) 40%, transparent 70%);
|
||||
background-position: center bottom var(--tab-toolbar-navbar-overlap);
|
||||
background-size: 85% 100%;
|
||||
%endif
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,22 +14,29 @@ toolbar[brighttext] .toolbarbutton-1 {
|
||||
}
|
||||
|
||||
#back-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#forward-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
|
||||
#reload-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
|
||||
#library-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
|
||||
%endif
|
||||
#nav-bar-overflow-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
|
||||
#panic-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
#back-button {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
list-style-image: url("chrome://browser/skin/back.svg");
|
||||
%else
|
||||
list-style-image: url("chrome://browser/skin/back-large.svg");
|
||||
%endif
|
||||
}
|
||||
|
||||
#forward-button {
|
||||
list-style-image: url("chrome://browser/skin/forward.svg");
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
%ifdef MOZ_PHOTON_ANIMATIONS
|
||||
.toolbarbutton-animatable-box > .toolbarbutton-animatable-image {
|
||||
animation-fill-mode: forwards;
|
||||
@@ -174,73 +181,84 @@ toolbar[brighttext] .toolbarbutton-1 {
|
||||
#stop-button {
|
||||
list-style-image: url("chrome://browser/skin/stop.svg");
|
||||
}
|
||||
%endif
|
||||
|
||||
#home-button {
|
||||
#home-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/home.svg");
|
||||
}
|
||||
|
||||
#bookmarks-menu-button {
|
||||
#bookmarks-menu-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/bookmark-hollow.svg");
|
||||
}
|
||||
|
||||
#bookmarks-menu-button[starred] {
|
||||
#bookmarks-menu-button@attributeSelectorForToolbar@[starred] {
|
||||
list-style-image: url("chrome://browser/skin/bookmark.svg");
|
||||
}
|
||||
|
||||
toolbar:not([brighttext]) #bookmarks-menu-button[starred] > .toolbarbutton-menubutton-button {
|
||||
toolbar:not([brighttext]) #bookmarks-menu-button@attributeSelectorForToolbar@[starred] > .toolbarbutton-menubutton-button {
|
||||
-moz-context-properties: fill;
|
||||
fill: var(--toolbarbutton-icon-fill-attention);
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#bookmarks-menu-button > .toolbarbutton-icon {
|
||||
list-style-image: url("chrome://browser/skin/bookmark-star-on-tray.svg");
|
||||
}
|
||||
%else
|
||||
#bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
|
||||
list-style-image: url("chrome://browser/skin/bookmarksMenu.svg");
|
||||
}
|
||||
%endif
|
||||
|
||||
#history-panelmenu {
|
||||
#history-panelmenu@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/history.svg");
|
||||
}
|
||||
|
||||
#downloads-button {
|
||||
#downloads-button@attributeSelectorForToolbar@ {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
list-style-image: url("chrome://browser/skin/downloads/download-icons.svg#arrow-with-bar");
|
||||
%else
|
||||
list-style-image: url("chrome://browser/skin/download.svg");
|
||||
%endif
|
||||
}
|
||||
|
||||
#add-ons-button {
|
||||
#add-ons-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/addons.svg");
|
||||
}
|
||||
|
||||
#open-file-button {
|
||||
#open-file-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/open.svg");
|
||||
}
|
||||
|
||||
#save-page-button {
|
||||
#save-page-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/save.svg");
|
||||
}
|
||||
|
||||
#sync-button {
|
||||
#sync-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/synced-tabs.svg");
|
||||
}
|
||||
|
||||
#containers-panelmenu {
|
||||
#containers-panelmenu@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/containers.svg");
|
||||
}
|
||||
|
||||
#feed-button {
|
||||
#feed-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/feed.svg");
|
||||
}
|
||||
|
||||
#social-share-button {
|
||||
#social-share-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/share.svg");
|
||||
}
|
||||
|
||||
#characterencoding-button {
|
||||
#characterencoding-button@attributeSelectorForToolbar@{
|
||||
list-style-image: url("chrome://browser/skin/characterEncoding.svg");
|
||||
}
|
||||
|
||||
#new-window-button {
|
||||
#new-window-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/new-window.svg");
|
||||
}
|
||||
|
||||
#e10s-button {
|
||||
#e10s-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/new-window.svg");
|
||||
}
|
||||
|
||||
@@ -248,34 +266,34 @@ toolbar:not([brighttext]) #bookmarks-menu-button[starred] > .toolbarbutton-menub
|
||||
transform: scaleY(-1);
|
||||
}
|
||||
|
||||
#new-tab-button {
|
||||
#new-tab-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/new-tab.svg");
|
||||
}
|
||||
|
||||
#privatebrowsing-button {
|
||||
#privatebrowsing-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/privateBrowsing.svg");
|
||||
}
|
||||
|
||||
#find-button {
|
||||
#find-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/find.svg");
|
||||
}
|
||||
|
||||
#print-button {
|
||||
#print-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/print.svg");
|
||||
}
|
||||
|
||||
%ifdef XP_MACOSX
|
||||
#restore-button,
|
||||
%endif
|
||||
#fullscreen-button {
|
||||
#fullscreen-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/fullscreen.svg");
|
||||
}
|
||||
|
||||
#developer-button {
|
||||
#developer-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/developer.svg");
|
||||
}
|
||||
|
||||
#preferences-button {
|
||||
#preferences-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/settings.svg");
|
||||
}
|
||||
|
||||
@@ -283,23 +301,29 @@ toolbar:not([brighttext]) #bookmarks-menu-button[starred] > .toolbarbutton-menub
|
||||
list-style-image: url("chrome://browser/skin/menu.svg");
|
||||
}
|
||||
|
||||
#cut-button {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
%define PSEUDO_FOR_COMBINED_BUTTONS
|
||||
%else
|
||||
%define PSEUDO_FOR_COMBINED_BUTTONS :not(@inAnyPanel@)
|
||||
%endif
|
||||
|
||||
#edit-controls@PSEUDO_FOR_COMBINED_BUTTONS@ > #cut-button {
|
||||
list-style-image: url("chrome://browser/skin/edit-cut.svg");
|
||||
}
|
||||
|
||||
#copy-button {
|
||||
#edit-controls@PSEUDO_FOR_COMBINED_BUTTONS@ > #copy-button {
|
||||
list-style-image: url("chrome://browser/skin/edit-copy.svg");
|
||||
}
|
||||
|
||||
#paste-button {
|
||||
#edit-controls@PSEUDO_FOR_COMBINED_BUTTONS@ > #paste-button {
|
||||
list-style-image: url("chrome://browser/skin/edit-paste.svg");
|
||||
}
|
||||
|
||||
#zoom-out-button {
|
||||
#zoom-controls@PSEUDO_FOR_COMBINED_BUTTONS@ > #zoom-out-button {
|
||||
list-style-image: url("chrome://browser/skin/zoom-out.svg");
|
||||
}
|
||||
|
||||
#zoom-in-button {
|
||||
#zoom-controls@PSEUDO_FOR_COMBINED_BUTTONS@ > #zoom-in-button {
|
||||
list-style-image: url("chrome://browser/skin/zoom-in.svg");
|
||||
}
|
||||
|
||||
@@ -395,28 +419,28 @@ toolbar:not([brighttext]) #bookmarks-menu-button[starred] > .toolbarbutton-menub
|
||||
}
|
||||
%endif
|
||||
|
||||
#email-link-button {
|
||||
#email-link-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/mail.svg");
|
||||
}
|
||||
|
||||
#sidebar-button {
|
||||
#sidebar-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/sidebars-right.svg");
|
||||
}
|
||||
|
||||
#sidebar-button:-moz-locale-dir(ltr):not([positionend]),
|
||||
#sidebar-button:-moz-locale-dir(rtl)[positionend] {
|
||||
#sidebar-button@attributeSelectorForToolbar@:-moz-locale-dir(ltr):not([positionend]),
|
||||
#sidebar-button@attributeSelectorForToolbar@:-moz-locale-dir(rtl)[positionend] {
|
||||
list-style-image: url("chrome://browser/skin/sidebars.svg");
|
||||
}
|
||||
|
||||
#panic-button {
|
||||
#panic-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/forget.svg");
|
||||
}
|
||||
|
||||
#panic-button[open] {
|
||||
#panic-button@attributeSelectorForToolbar@[open] {
|
||||
fill: rgb(213, 32, 20);
|
||||
}
|
||||
|
||||
#webide-button {
|
||||
#webide-button@attributeSelectorForToolbar@ {
|
||||
list-style-image: url("chrome://browser/skin/webIDE.svg");
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,15 @@
|
||||
* 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/. */
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
%filter substitution
|
||||
%define toolbarShadowColor hsla(209,67%,12%,0.35)
|
||||
%define forwardTransitionLength 150ms
|
||||
%define conditionalForwardWithUrlbar window:not([chromehidden~="toolbar"]) #urlbar-wrapper
|
||||
%endif
|
||||
|
||||
:root {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
--toolbarbutton-hover-background: hsla(240,5%,5%,.1);
|
||||
--toolbarbutton-active-background: hsla(240,5%,5%,.15);
|
||||
|
||||
@@ -13,6 +21,14 @@
|
||||
--backbutton-active-background: var(--toolbarbutton-active-background);
|
||||
|
||||
--backbutton-border-color: hsla(240,5%,5%,.3);
|
||||
%else
|
||||
--backbutton-urlbar-overlap: 6px;
|
||||
|
||||
/* icon width + border + horizontal padding (without the overlap from backbutton-urlbar-overlap) */
|
||||
--forwardbutton-width: 25px;
|
||||
|
||||
--toolbarbutton-inner-padding: 3px;
|
||||
%endif
|
||||
%ifdef MOZ_PHOTON_ANIMATIONS
|
||||
/* This default value of --toolbarbutton-height is defined to prevent
|
||||
CSS errors for an invalid variable. The value should not get used,
|
||||
@@ -26,6 +42,19 @@
|
||||
--toolbarbutton-inner-padding: 9px;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
toolbar:-moz-lwtheme {
|
||||
--toolbarbutton-hover-background: rgba(255,255,255,.25);
|
||||
--toolbarbutton-active-background: rgba(70%,70%,70%,.25);
|
||||
|
||||
--toolbarbutton-hover-bordercolor: rgba(0,0,0,.2);
|
||||
|
||||
--toolbarbutton-active-bordercolor: rgba(0,0,0,.3);
|
||||
--toolbarbutton-active-boxshadow: 0 0 2px rgba(0,0,0,.6) inset;
|
||||
|
||||
--toolbarbutton-checkedhover-backgroundcolor: rgba(85%,85%,85%,.25);
|
||||
}
|
||||
%else
|
||||
toolbar[brighttext] {
|
||||
--toolbarbutton-hover-background: hsla(0,0%,100%,.2);
|
||||
--toolbarbutton-active-background: hsla(0,0%,100%,.3);
|
||||
@@ -34,6 +63,7 @@ toolbar[brighttext] {
|
||||
--backbutton-hover-background: var(--toolbarbutton-active-background);
|
||||
--backbutton-active-background: hsla(0,0%,100%,.4);
|
||||
}
|
||||
%endif
|
||||
|
||||
/* ::::: primary toolbar buttons ::::: */
|
||||
|
||||
@@ -111,20 +141,35 @@ toolbar[brighttext] {
|
||||
margin-top: -8px;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
@conditionalForwardWithUrlbar@ > .toolbarbutton-1:-moz-any([disabled],:not([open]):not([disabled]):not(:active)) > .toolbarbutton-icon,
|
||||
%endif
|
||||
.findbar-button > .toolbarbutton-text,
|
||||
toolbarbutton.bookmark-item:not(.subviewbutton),
|
||||
#nav-bar .toolbarbutton-1 > .toolbarbutton-icon,
|
||||
#nav-bar .toolbarbutton-1 > .toolbarbutton-text,
|
||||
#nav-bar .toolbarbutton-1 > .toolbarbutton-badge-stack {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
padding: var(--toolbarbutton-inner-padding);
|
||||
%else
|
||||
padding: var(--toolbarbutton-inner-padding) 7px;
|
||||
background-origin: padding-box !important;
|
||||
background-clip: padding-box !important;
|
||||
border: 1px solid transparent;
|
||||
%endif
|
||||
border-radius: var(--toolbarbutton-border-radius);
|
||||
transition-property: background-color, border-color, box-shadow;
|
||||
transition-duration: 150ms;
|
||||
}
|
||||
|
||||
#nav-bar .toolbarbutton-1 > .toolbarbutton-icon {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
/* horizontal padding + actual icon width */
|
||||
max-width: calc(2 * var(--toolbarbutton-inner-padding) + 16px);
|
||||
%else
|
||||
/* Before Photon horizontal padding is 7px, but --toolbarbutton-inner-padding is set to 3px */
|
||||
max-width: 32px;
|
||||
%endif
|
||||
}
|
||||
|
||||
.bookmark-item > .toolbarbutton-menu-dropmarker,
|
||||
@@ -136,11 +181,19 @@ toolbarbutton.bookmark-item:not(.subviewbutton),
|
||||
#nav-bar .toolbarbutton-1 > .toolbarbutton-text {
|
||||
padding-top: var(--toolbarbutton-vertical-text-padding);
|
||||
padding-bottom: 0;
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
/* To make the hover feedback line up with sibling buttons, it needs the same
|
||||
* height as the button icons and the same vertical padding, but as a minimum,
|
||||
* because otherwise an increase in text sizes would break things.
|
||||
*/
|
||||
min-height: calc(16px + 2 * var(--toolbarbutton-inner-padding));
|
||||
%else
|
||||
/* To make the hover feedback line up with sibling buttons, it needs the same
|
||||
* height (16px) + padding (2 * 3px) + border (2 * 1px), but as a minimum
|
||||
* because otherwise an increase in text sizes would break things.
|
||||
*/
|
||||
min-height: calc(18px + 2 * var(--toolbarbutton-inner-padding));
|
||||
%endif
|
||||
}
|
||||
|
||||
#nav-bar .toolbaritem-combined-buttons {
|
||||
@@ -179,7 +232,13 @@ toolbarbutton.bookmark-item:not(.subviewbutton):hover:not([disabled="true"]):not
|
||||
#nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-icon,
|
||||
#nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-text,
|
||||
#nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-badge-stack {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
background-color: var(--toolbarbutton-hover-background);
|
||||
%else
|
||||
background: var(--toolbarbutton-hover-background);
|
||||
border-color: var(--toolbarbutton-hover-bordercolor);
|
||||
box-shadow: var(--toolbarbutton-hover-boxshadow);
|
||||
%endif
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
@@ -189,16 +248,70 @@ toolbarbutton.bookmark-item[open="true"],
|
||||
#nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-icon,
|
||||
#nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-text,
|
||||
#nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-badge-stack {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
background-color: var(--toolbarbutton-active-background);
|
||||
%else
|
||||
background: var(--toolbarbutton-active-background);
|
||||
border-color: var(--toolbarbutton-active-bordercolor);
|
||||
box-shadow: var(--toolbarbutton-active-boxshadow);
|
||||
%endif
|
||||
transition-duration: 10ms;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
#nav-bar .toolbarbutton-1[checked]:not(:active):hover > .toolbarbutton-icon {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
background-color: var(--toolbarbutton-hover-background);
|
||||
%else
|
||||
background-color: var(--toolbarbutton-checkedhover-backgroundcolor);
|
||||
%endif
|
||||
transition: background-color .4s;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
/* unified back/forward button */
|
||||
|
||||
:-moz-any(#back-button, #forward-button) > .toolbarbutton-icon {
|
||||
border-color: var(--backbutton-border-color) !important;
|
||||
background: var(--backbutton-background);
|
||||
}
|
||||
|
||||
#forward-button {
|
||||
-moz-box-align: stretch; /* let the button shape grow vertically with the location bar */
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
#forward-button > menupopup {
|
||||
margin-top: 1px !important;
|
||||
}
|
||||
|
||||
#forward-button > .toolbarbutton-icon {
|
||||
border-left-style: none !important;
|
||||
border-radius: 0 !important;
|
||||
padding-left: calc(var(--backbutton-urlbar-overlap) + 4px) !important;
|
||||
padding-right: 4px !important;
|
||||
max-width: calc(var(--forwardbutton-width) + var(--backbutton-urlbar-overlap)) !important;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@:not([switchingtabs]) > #forward-button {
|
||||
transition: margin-left @forwardTransitionLength@ ease-out;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ > #forward-button[disabled] {
|
||||
margin-left: calc(0px - var(--forwardbutton-width) - var(--backbutton-urlbar-overlap));
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@:hover:not([switchingtabs]) > #forward-button[disabled] {
|
||||
/* delay the hiding of the forward button when hovered to avoid accidental clicks on the url bar */
|
||||
transition-delay: 100s;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@:not(:hover) > #forward-button[disabled] {
|
||||
/* when not hovered anymore, trigger a new transition to hide the forward button immediately */
|
||||
margin-left: calc(-0.01px - var(--forwardbutton-width) - var(--backbutton-urlbar-overlap));
|
||||
}
|
||||
%endif
|
||||
|
||||
:root:not([uidensity=compact]) #back-button {
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
@@ -218,10 +331,12 @@ toolbarbutton.bookmark-item[open="true"],
|
||||
}
|
||||
|
||||
:root:not([uidensity=compact]) #back-button > .toolbarbutton-icon {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
background-color: var(--backbutton-background);
|
||||
background-origin: padding-box;
|
||||
background-clip: padding-box;
|
||||
border: 1px solid var(--backbutton-border-color);
|
||||
%endif
|
||||
border-radius: 10000px;
|
||||
max-width: 32px;
|
||||
padding: 7px;
|
||||
@@ -237,6 +352,7 @@ toolbarbutton.bookmark-item[open="true"],
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
:root:not([uidensity=compact]) #back-button:not([disabled]):not([open]):hover > .toolbarbutton-icon {
|
||||
background-color: var(--backbutton-hover-background) !important;
|
||||
box-shadow: 0 1px 6px hsla(0,0%,0%,.1);
|
||||
@@ -248,6 +364,7 @@ toolbarbutton.bookmark-item[open="true"],
|
||||
background-color: var(--backbutton-active-background) !important;
|
||||
border-color: hsla(240,5%,5%,.40);
|
||||
}
|
||||
%endif
|
||||
|
||||
/* bookmarks menu button */
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
* 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/. */
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
|
||||
#urlbar,
|
||||
.searchbar-textbox {
|
||||
-moz-appearance: none;
|
||||
@@ -33,6 +35,8 @@
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
%endif
|
||||
|
||||
:root[uidensity=compact] #urlbar,
|
||||
:root[uidensity=compact] .searchbar-textbox {
|
||||
min-height: 26px;
|
||||
@@ -60,6 +64,7 @@
|
||||
-moz-appearance: none;
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
/* Page action panel */
|
||||
.pageAction-panel-button > .toolbarbutton-icon {
|
||||
width: 16px;
|
||||
@@ -197,6 +202,7 @@
|
||||
animation-name: bookmark-animation-rtl;
|
||||
}
|
||||
%endif /* MOZ_PHOTON_ANIMATIONS */
|
||||
%endif /* MOZ_PHOTON_THEME */
|
||||
|
||||
/* Zoom button */
|
||||
#urlbar-zoom-button {
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
background-color: hsl(0, 0%, 78%);
|
||||
}
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
@media (-moz-windows-accent-color-in-titlebar: 0) {
|
||||
:root[tabsintitlebar]:not(:-moz-lwtheme) {
|
||||
background-color: hsl(235,33%,19%);
|
||||
@@ -57,6 +58,7 @@
|
||||
--titlebar-text-color: -moz-win-accentcolortext;
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
:root[tabsintitlebar] .tab-label:-moz-window-inactive {
|
||||
/* Calculated to match the opacity change of Windows Explorer
|
||||
@@ -81,7 +83,11 @@
|
||||
margin: 0 !important;
|
||||
padding: 10px 17px;
|
||||
-moz-context-properties: stroke;
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
stroke: var(--titlebar-text-color);
|
||||
%else
|
||||
stroke: black;
|
||||
%endif
|
||||
}
|
||||
|
||||
:root[sizemode=maximized] .titlebar-button {
|
||||
@@ -173,6 +179,7 @@
|
||||
}
|
||||
|
||||
@media (-moz-windows-default-theme) {
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
#main-menubar > menu {
|
||||
-moz-appearance: none;
|
||||
}
|
||||
@@ -191,6 +198,20 @@
|
||||
.titlebar-button:-moz-lwtheme-darktext:hover:active {
|
||||
background-color: hsla(0,0%,0%,.22);
|
||||
}
|
||||
%else
|
||||
.titlebar-button:hover {
|
||||
background-color: hsla(0,0%,0%,.12);
|
||||
}
|
||||
.titlebar-button:hover:active {
|
||||
background-color: hsla(0,0%,0%,.22);
|
||||
}
|
||||
.titlebar-button:-moz-lwtheme-brighttext:hover {
|
||||
background-color: hsla(0,0%,100%,.12);
|
||||
}
|
||||
.titlebar-button:-moz-lwtheme-brighttext:hover:active {
|
||||
background-color: hsla(0,0%,100%,.22);
|
||||
}
|
||||
%endif
|
||||
|
||||
.titlebar-button:not(:hover) > .toolbarbutton-icon:-moz-window-inactive {
|
||||
opacity: 0.5;
|
||||
@@ -324,6 +345,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#main-window[sizemode=normal] #TabsToolbar {
|
||||
padding-left: 1px;
|
||||
padding-right: 1px;
|
||||
}
|
||||
%endif
|
||||
#appcontent:not(:-moz-lwtheme) {
|
||||
background-color: -moz-dialog;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,28 @@
|
||||
--toolbar-bgimage: var(--toolbar-non-lwt-bgimage);
|
||||
|
||||
--toolbarbutton-vertical-text-padding: calc(var(--toolbarbutton-inner-padding) - 1px);
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
--toolbarbutton-border-radius: 2px;
|
||||
%else
|
||||
--space-above-tabbar: 15px;
|
||||
|
||||
--toolbarbutton-border-radius: 1px;
|
||||
|
||||
--toolbarbutton-hover-background: rgba(0,0,0,.1);
|
||||
--toolbarbutton-active-background: rgba(0,0,0,.15);
|
||||
|
||||
--backbutton-border-color: var(--urlbar-border-color-hover);
|
||||
--backbutton-background: rgba(255,255,255,.15);
|
||||
|
||||
--toolbarbutton-hover-bordercolor: rgba(0,0,0,.2);
|
||||
--toolbarbutton-hover-boxshadow: none;
|
||||
|
||||
--toolbarbutton-active-bordercolor: rgba(0,0,0,.3);
|
||||
--toolbarbutton-active-boxshadow: 0 0 0 1px rgba(0,0,0,.15) inset;
|
||||
|
||||
--toolbarbutton-checkedhover-backgroundcolor: rgba(0,0,0,.1);
|
||||
%endif
|
||||
|
||||
--urlbar-dropmarker-url: url("chrome://browser/skin/urlbar-history-dropmarker.png");
|
||||
--urlbar-dropmarker-region: rect(0px, 11px, 14px, 0px);
|
||||
@@ -63,6 +84,18 @@
|
||||
--toolbar-bgimage: none;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
toolbar[brighttext] {
|
||||
--toolbarbutton-hover-background: rgba(255,255,255,.25);
|
||||
--toolbarbutton-hover-bordercolor: rgba(255,255,255,.5);
|
||||
|
||||
--toolbarbutton-active-background: rgba(255,255,255,.4);
|
||||
--toolbarbutton-active-bordercolor: rgba(255,255,255,.7);
|
||||
--toolbarbutton-active-boxshadow: 0 0 0 1px rgba(255,255,255,.4) inset;
|
||||
|
||||
--toolbarbutton-checkedhover-backgroundcolor: rgba(255,255,255,.3);
|
||||
}
|
||||
%endif
|
||||
#menubar-items {
|
||||
-moz-box-orient: vertical; /* for flex hack */
|
||||
}
|
||||
@@ -77,6 +110,20 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
/* We want a 4px gap between the TabsToolbar and the toolbar-menubar when the
|
||||
toolbar-menu is displayed, and a 16px gap when it is not. 1px is taken care
|
||||
of by the (light) outer shadow of the tab, the remaining 3/15 are these margins. */
|
||||
#toolbar-menubar:not([autohide=true]) ~ #TabsToolbar:not([inFullscreen]),
|
||||
#toolbar-menubar[autohide=true]:not([inactive]) ~ #TabsToolbar:not([inFullscreen]) {
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
#main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen])[chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar,
|
||||
#main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen]) #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar {
|
||||
margin-top: var(--space-above-tabbar);
|
||||
}
|
||||
%endif
|
||||
#navigator-toolbox,
|
||||
#navigator-toolbox > toolbar {
|
||||
-moz-appearance: none;
|
||||
@@ -90,6 +137,13 @@
|
||||
}
|
||||
|
||||
@media (-moz-windows-default-theme) {
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
@media (-moz-os-version: windows-win7) {
|
||||
#navigator-toolbox::after {
|
||||
border-bottom-color: #aabccf;
|
||||
}
|
||||
}
|
||||
%endif
|
||||
@media (-moz-os-version: windows-win8),
|
||||
(-moz-os-version: windows-win10) {
|
||||
#navigator-toolbox::after {
|
||||
@@ -112,6 +166,18 @@
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
@media (-moz-os-version: windows-win7) {
|
||||
#nav-bar {
|
||||
background-image: linear-gradient(@toolbarHighlight@, transparent) !important;
|
||||
}
|
||||
|
||||
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar) {
|
||||
background-image: none;
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
|
||||
overflow: -moz-hidden-unscrollable;
|
||||
max-height: 4em;
|
||||
@@ -407,6 +473,27 @@ menuitem.bookmark-item {
|
||||
%include ../shared/toolbarbuttons.inc.css
|
||||
%include ../shared/toolbarbutton-icons.inc.css
|
||||
%include ../shared/menupanel.inc.css
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
@media (-moz-os-version: windows-win7) {
|
||||
:root {
|
||||
--toolbarbutton-hover-background: linear-gradient(hsla(0,0%,100%,.6), hsla(0,0%,100%,.1));
|
||||
--toolbarbutton-hover-bordercolor: hsla(210,54%,20%,.15) hsla(210,54%,20%,.2) hsla(210,54%,20%,.25);
|
||||
--toolbarbutton-hover-boxshadow: 0 1px hsla(0,0%,100%,.3) inset,
|
||||
0 1px hsla(210,54%,20%,.03),
|
||||
0 0 2px hsla(210,54%,20%,.1);
|
||||
|
||||
--toolbarbutton-active-background: hsla(210,54%,20%,.15) linear-gradient(hsla(0,0%,100%,.6), hsla(0,0%,100%,.1));
|
||||
--toolbarbutton-active-bordercolor: hsla(210,54%,20%,.3) hsla(210,54%,20%,.35) hsla(210,54%,20%,.4);
|
||||
--toolbarbutton-active-boxshadow: 0 1px 1px hsla(210,54%,20%,.1) inset,
|
||||
0 0 1px hsla(210,54%,20%,.2) inset,
|
||||
/* allows keyhole-forward-clip-path to be used for non-hover as well as hover: */
|
||||
0 1px 0 hsla(210,54%,20%,0),
|
||||
0 0 2px hsla(210,54%,20%,0);
|
||||
|
||||
--toolbarbutton-checkedhover-backgroundcolor: rgba(90%,90%,90%,.4);
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
.unified-nav-back[_moz-menuactive]:-moz-locale-dir(ltr),
|
||||
.unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
|
||||
@@ -556,6 +643,8 @@ menuitem.bookmark-item {
|
||||
|
||||
%include ../shared/urlbar-searchbar.inc.css
|
||||
|
||||
%ifdef MOZ_PHOTON_THEME
|
||||
|
||||
#urlbar,
|
||||
.searchbar-textbox {
|
||||
font-size: 1.15em;
|
||||
@@ -573,6 +662,155 @@ menuitem.bookmark-item {
|
||||
border-color: Highlight;
|
||||
}
|
||||
|
||||
%else
|
||||
|
||||
#main-window {
|
||||
--urlbar-border-color: ThreeDShadow;
|
||||
--urlbar-border-color-hover: var(--urlbar-border-color);
|
||||
}
|
||||
|
||||
#navigator-toolbox:-moz-lwtheme {
|
||||
--urlbar-border-color: var(--toolbarbutton-hover-bordercolor);
|
||||
}
|
||||
|
||||
@media (-moz-windows-default-theme) {
|
||||
@media (-moz-os-version: windows-win7),
|
||||
(-moz-os-version: windows-win8) {
|
||||
#main-window:not(:-moz-lwtheme) {
|
||||
--urlbar-border-color: hsla(210,54%,20%,.25) hsla(210,54%,20%,.27) hsla(210,54%,20%,.3);
|
||||
--urlbar-border-color-hover: hsla(210,54%,20%,.35) hsla(210,54%,20%,.37) hsla(210,54%,20%,.4);
|
||||
}
|
||||
}
|
||||
|
||||
@media (-moz-os-version: windows-win10) {
|
||||
#main-window:not(:-moz-lwtheme) {
|
||||
--urlbar-border-color: hsl(0,0%,90%);
|
||||
--urlbar-border-color-hover: hsl(0,0%,80%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#urlbar,
|
||||
.searchbar-textbox {
|
||||
-moz-appearance: none;
|
||||
margin: 0 3px;
|
||||
padding: 0;
|
||||
background-clip: padding-box;
|
||||
border: 1px solid;
|
||||
border-color: var(--urlbar-border-color);
|
||||
}
|
||||
|
||||
#urlbar:hover,
|
||||
.searchbar-textbox:hover {
|
||||
border-color: var(--urlbar-border-color-hover);
|
||||
}
|
||||
|
||||
@media (-moz-windows-default-theme) {
|
||||
#urlbar,
|
||||
.searchbar-textbox {
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
@media (-moz-os-version: windows-win7),
|
||||
(-moz-os-version: windows-win8) {
|
||||
#urlbar:not(:-moz-lwtheme),
|
||||
.searchbar-textbox:not(:-moz-lwtheme) {
|
||||
box-shadow: 0 1px 0 hsla(0,0%,0%,.01) inset,
|
||||
0 1px 0 hsla(0,0%,100%,.1);
|
||||
}
|
||||
}
|
||||
|
||||
@media (-moz-os-version: windows-win10) {
|
||||
#urlbar:not(:-moz-lwtheme),
|
||||
.searchbar-textbox:not(:-moz-lwtheme) {
|
||||
padding: 1px;
|
||||
transition-property: border-color, box-shadow;
|
||||
transition-duration: .1s;
|
||||
}
|
||||
|
||||
#urlbar:not(:-moz-lwtheme)[focused],
|
||||
.searchbar-textbox:not(:-moz-lwtheme)[focused] {
|
||||
box-shadow: 0 0 0 1px Highlight inset;
|
||||
}
|
||||
}
|
||||
|
||||
#urlbar:not(:-moz-lwtheme)[focused],
|
||||
.searchbar-textbox:not(:-moz-lwtheme)[focused] {
|
||||
border-color: Highlight;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-moz-os-version: windows-win10) {
|
||||
#urlbar,
|
||||
.searchbar-textbox {
|
||||
font-size: 1.15em;
|
||||
min-height: 28px;
|
||||
}
|
||||
|
||||
:root {
|
||||
/* let toolbar buttons match the location and search bar's minimum height */
|
||||
--toolbarbutton-inner-padding: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
#urlbar:-moz-lwtheme,
|
||||
.searchbar-textbox:-moz-lwtheme {
|
||||
background-color: rgba(255,255,255,.8);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#urlbar:-moz-lwtheme:hover:not([readonly]),
|
||||
.searchbar-textbox:-moz-lwtheme:hover {
|
||||
background-color: rgba(255,255,255,.9);
|
||||
}
|
||||
|
||||
#urlbar:-moz-lwtheme[focused]:not([readonly]),
|
||||
.searchbar-textbox:-moz-lwtheme[focused] {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ > #urlbar {
|
||||
border-inline-start: none;
|
||||
padding-inline-start: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(ltr) {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(rtl) {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@ {
|
||||
clip-path: url("chrome://browser/content/browser.xul#urlbar-back-button-clip-path");
|
||||
margin-inline-start: calc(-1 * var(--backbutton-urlbar-overlap));
|
||||
}
|
||||
|
||||
@media (-moz-os-version: windows-win10) {
|
||||
@conditionalForwardWithUrlbar@ {
|
||||
clip-path: url("chrome://browser/content/browser.xul#urlbar-back-button-clip-path-win10");
|
||||
}
|
||||
|
||||
:root {
|
||||
--backbutton-urlbar-overlap: 9px;
|
||||
}
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@:-moz-locale-dir(rtl),
|
||||
@conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(rtl) {
|
||||
/* let urlbar-back-button-clip-path clip the urlbar's right side for RTL */
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
@conditionalForwardWithUrlbar@:-moz-locale-dir(rtl) {
|
||||
-moz-box-direction: reverse;
|
||||
}
|
||||
%endif
|
||||
|
||||
html|*.urlbar-input:-moz-lwtheme::placeholder,
|
||||
.searchbar-textbox:-moz-lwtheme > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input::placeholder {
|
||||
opacity: 1.0;
|
||||
@@ -871,6 +1109,120 @@ treechildren.searchbar-treebody::-moz-tree-row(selected) {
|
||||
border-top: 1px solid GrayText;
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
/* combined go/reload/stop button in location bar */
|
||||
|
||||
#urlbar-go-button,
|
||||
#reload-button,
|
||||
#stop-button {
|
||||
-moz-appearance: none;
|
||||
border-style: none;
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go.png");
|
||||
padding: 0 9px;
|
||||
margin-inline-start: 5px;
|
||||
border-inline-start: 1px solid var(--urlbar-separator-color);
|
||||
border-image: linear-gradient(transparent 15%,
|
||||
var(--urlbar-separator-color) 15%,
|
||||
var(--urlbar-separator-color) 85%,
|
||||
transparent 85%);
|
||||
border-image-slice: 1;
|
||||
}
|
||||
|
||||
#reload-button {
|
||||
-moz-image-region: rect(0, 14px, 14px, 0);
|
||||
}
|
||||
|
||||
#reload-button:not([disabled]):hover {
|
||||
-moz-image-region: rect(14px, 14px, 28px, 0);
|
||||
}
|
||||
|
||||
#reload-button:not([disabled]):hover:active {
|
||||
-moz-image-region: rect(28px, 14px, 42px, 0);
|
||||
}
|
||||
|
||||
#reload-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
#urlbar-go-button {
|
||||
-moz-image-region: rect(0, 42px, 14px, 28px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:hover {
|
||||
-moz-image-region: rect(14px, 42px, 28px, 28px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:hover:active {
|
||||
-moz-image-region: rect(28px, 42px, 42px, 28px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
#stop-button {
|
||||
-moz-image-region: rect(0, 28px, 14px, 14px);
|
||||
}
|
||||
|
||||
#stop-button:not([disabled]):hover {
|
||||
-moz-image-region: rect(14px, 28px, 28px, 14px);
|
||||
}
|
||||
|
||||
#stop-button:hover:active {
|
||||
-moz-image-region: rect(28px, 28px, 42px, 14px);
|
||||
}
|
||||
|
||||
@media (min-resolution: 1.1dppx) {
|
||||
#urlbar-go-button,
|
||||
#reload-button,
|
||||
#stop-button {
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
|
||||
}
|
||||
|
||||
#urlbar-go-button > .toolbarbutton-icon,
|
||||
#reload-button > .toolbarbutton-icon,
|
||||
#stop-button > .toolbarbutton-icon {
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
#urlbar-go-button {
|
||||
-moz-image-region: rect(0, 84px, 28px, 56px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:hover {
|
||||
-moz-image-region: rect(28px, 84px, 56px, 56px);
|
||||
}
|
||||
|
||||
#urlbar-go-button:hover:active {
|
||||
-moz-image-region: rect(56px, 84px, 84px, 56px);
|
||||
}
|
||||
|
||||
#reload-button {
|
||||
-moz-image-region: rect(0, 28px, 28px, 0);
|
||||
}
|
||||
|
||||
#reload-button:not([disabled]):hover {
|
||||
-moz-image-region: rect(28px, 28px, 56px, 0);
|
||||
}
|
||||
|
||||
#reload-button:not([disabled]):hover:active {
|
||||
-moz-image-region: rect(56px, 28px, 84px, 0);
|
||||
}
|
||||
|
||||
#stop-button {
|
||||
-moz-image-region: rect(0, 56px, 28px, 28px);
|
||||
}
|
||||
|
||||
#stop-button:not([disabled]):hover {
|
||||
-moz-image-region: rect(28px, 56px, 56px, 28px);
|
||||
}
|
||||
|
||||
#stop-button:hover:active {
|
||||
-moz-image-region: rect(56px, 56px, 84px, 28px);
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
/* popup blocker button */
|
||||
|
||||
#page-report-button {
|
||||
@@ -1351,6 +1703,31 @@ notification[value="translation"] {
|
||||
transform: perspective(0.01px);
|
||||
}
|
||||
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
#main-window[customize-entered] > #tab-view-deck {
|
||||
background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png");
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
#main-window[customization-lwtheme]:-moz-lwtheme {
|
||||
background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png");
|
||||
background-repeat: repeat;
|
||||
background-attachment: fixed;
|
||||
background-position: left top;
|
||||
}
|
||||
|
||||
#main-window[customize-entered] #browser-bottombox,
|
||||
#main-window[customize-entered] #customization-container {
|
||||
border-left: 1px solid @toolbarShadowColor@;
|
||||
border-right: 1px solid @toolbarShadowColor@;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
#main-window[customize-entered] #browser-bottombox {
|
||||
border-bottom: 1px solid @toolbarShadowColor@;
|
||||
}
|
||||
%endif
|
||||
|
||||
#customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="left"] {
|
||||
margin-right: -2px;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,11 @@
|
||||
|
||||
@media (-moz-os-version: windows-win7),
|
||||
(-moz-os-version: windows-win8) {
|
||||
%ifndef MOZ_PHOTON_THEME
|
||||
:root {
|
||||
--space-above-tabbar: 15px;
|
||||
}
|
||||
%endif
|
||||
/* It'd be nice if there was an element in the scrollbox's inner content
|
||||
that collapsed to the current width of the tabs. Since there isn't we
|
||||
need to handle overflowing and non-overflowing tabs separately.
|
||||
|
||||
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 115 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
@@ -54,6 +54,12 @@ browser.jar:
|
||||
skin/classic/browser/urlbar-history-dropmarker-win7@2x.png
|
||||
skin/classic/browser/webRTC-indicator.css (../shared/webRTC-indicator.css)
|
||||
* skin/classic/browser/controlcenter/panel.css (controlcenter/panel.css)
|
||||
#ifndef MOZ_PHOTON_THEME
|
||||
skin/classic/browser/customizableui/customizeMode-gridTexture.png (customizableui/customizeMode-gridTexture.png)
|
||||
skin/classic/browser/customizableui/background-noise-toolbar.png (customizableui/background-noise-toolbar.png)
|
||||
skin/classic/browser/customizableui/customizeMode-separatorHorizontal.png (customizableui/customizeMode-separatorHorizontal.png)
|
||||
skin/classic/browser/customizableui/customizeMode-separatorVertical.png (customizableui/customizeMode-separatorVertical.png)
|
||||
#endif
|
||||
skin/classic/browser/customizableui/menu-arrow.svg (customizableui/menu-arrow.svg)
|
||||
* skin/classic/browser/customizableui/panelUI.css (customizableui/panelUI.css)
|
||||
* skin/classic/browser/downloads/allDownloadsViewOverlay.css (downloads/allDownloadsViewOverlay.css)
|
||||
|
||||