Backed out changeset 633d738656d5 (bug 1383051) for causing bug 1396281
MozReview-Commit-ID: FUYZSbgaiqx
|
@ -591,7 +591,9 @@
|
|||
<spacer id="titlebar-spacer" flex="1"/>
|
||||
<hbox id="titlebar-buttonbox-container">
|
||||
#ifdef XP_WIN
|
||||
<hbox id="private-browsing-indicator-titlebar">
|
||||
<hbox class="private-browsing-indicator"/>
|
||||
</hbox>
|
||||
#endif
|
||||
<hbox id="titlebar-buttonbox">
|
||||
<toolbarbutton class="titlebar-button" id="titlebar-min" oncommand="window.minimize();"/>
|
||||
|
@ -649,7 +651,7 @@
|
|||
collapsed="true">
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK)
|
||||
<hbox class="private-browsing-indicator"
|
||||
<hbox id="private-browsing-indicator"
|
||||
skipintoolbarset="true"/>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -721,6 +721,12 @@ html|span.ac-emphasize-text-url {
|
|||
|
||||
/* End customization mode */
|
||||
|
||||
|
||||
#main-window[privatebrowsingmode=temporary] #private-browsing-indicator {
|
||||
background: url("chrome://browser/skin/privatebrowsing-mask.png") center no-repeat;
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
%include ../shared/UITour.inc.css
|
||||
|
||||
#UITourHighlight {
|
||||
|
|
|
@ -22,6 +22,7 @@ browser.jar:
|
|||
* skin/classic/browser/pageInfo.css
|
||||
skin/classic/browser/pageInfo.png
|
||||
skin/classic/browser/page-livemarks.png
|
||||
skin/classic/browser/privatebrowsing-mask.png
|
||||
skin/classic/browser/searchbar.css
|
||||
skin/classic/browser/setDesktopBackground.css
|
||||
skin/classic/browser/slowStartup-16.png
|
||||
|
|
После Ширина: | Высота: | Размер: 1.3 KiB |
|
@ -53,11 +53,6 @@
|
|||
|
||||
/** Begin titlebar **/
|
||||
|
||||
#titlebar-content {
|
||||
/* Ensure the the content part of the titlebar does not shrink. */
|
||||
min-height: inherit;
|
||||
}
|
||||
|
||||
#titlebar-buttonbox > .titlebar-button {
|
||||
display: none;
|
||||
}
|
||||
|
@ -69,13 +64,10 @@
|
|||
margin-left: 7px;
|
||||
}
|
||||
|
||||
.titlebar-placeholder[type="fullscreen-button"] {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.titlebar-placeholder[type="fullscreen-button"],
|
||||
#titlebar-secondary-buttonbox {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
margin-right: 7px;
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
#main-window:not(:-moz-lwtheme) > #titlebar {
|
||||
|
@ -1232,18 +1224,66 @@ html|*.addon-webext-perm-list {
|
|||
|
||||
/* End customization mode */
|
||||
|
||||
/* Private browsing indicator */
|
||||
.private-browsing-indicator {
|
||||
background-image: url("chrome://browser/skin/privatebrowsing-mask.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% auto;
|
||||
width: 38px;
|
||||
height: 28px;
|
||||
/**
|
||||
* The private browsing mask graphic has a 3px flare at the top. The distance
|
||||
* we want between the mask and items on either side is 7px, so we use 4px,
|
||||
* since the other 3px is accounted for by the empty space on either side.
|
||||
*/
|
||||
margin-left: 4px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
:root[privatebrowsingmode=temporary][tabsintitlebar]:not([inFullscreen]) > #tab-view-deck > #browser-panel > #navigator-toolbox > #TabsToolbar > .private-browsing-indicator,
|
||||
:root[privatebrowsingmode=temporary]:not([tabsintitlebar]) > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > .private-browsing-indicator {
|
||||
#titlebar-secondary-buttonbox > .private-browsing-indicator {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#main-window[privatebrowsingmode=temporary]:not([tabsintitlebar]) > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > .private-browsing-indicator {
|
||||
background-image: url("chrome://browser/skin/privatebrowsing-mask-short.png");
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
#main-window:not([privatebrowsingmode=temporary]) .private-browsing-indicator,
|
||||
#main-window[privatebrowsingmode=temporary][inFullscreen] > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > .private-browsing-indicator,
|
||||
#main-window[privatebrowsingmode=temporary]:not([inFullscreen]) > #tab-view-deck > #browser-panel > #navigator-toolbox > #TabsToolbar > .private-browsing-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#TabsToolbar > .private-browsing-indicator:-moz-locale-dir(rtl),
|
||||
-moz-box-ordinal-group: 0;
|
||||
@media (min-resolution: 2dppx) {
|
||||
.private-browsing-indicator {
|
||||
background-image: url("chrome://browser/skin/privatebrowsing-mask@2x.png");
|
||||
}
|
||||
#main-window[privatebrowsingmode=temporary]:not([tabsintitlebar]) > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > .private-browsing-indicator {
|
||||
background-image: url("chrome://browser/skin/privatebrowsing-mask-short@2x.png");
|
||||
}
|
||||
}
|
||||
|
||||
/* End private browsing indicator */
|
||||
#TabsToolbar > .private-browsing-indicator {
|
||||
/* We offset by 38px for mask graphic, plus 4px to account for the
|
||||
* margin-left, which sums to 42px.
|
||||
*/
|
||||
margin-right: -42px;
|
||||
}
|
||||
|
||||
#main-window[privatebrowsingmode=temporary] .titlebar-placeholder[type="fullscreen-button"],
|
||||
#main-window[privatebrowsingmode=temporary] > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > #titlebar-fullscreen-button {
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
#main-window[privatebrowsingmode=temporary][inFullscreen] .titlebar-placeholder[type="fullscreen-button"] {
|
||||
/* Override display:none for .titlebar-placeholder in fullscreen so we can have consistent
|
||||
position and padding for the private browsing indicator. */
|
||||
display: -moz-box;
|
||||
}
|
||||
|
||||
#TabsToolbar > .private-browsing-indicator:-moz-locale-dir(rtl) {
|
||||
-moz-box-ordinal-group: 0;
|
||||
}
|
||||
|
||||
%include ../shared/UITour.inc.css
|
||||
|
||||
|
|
|
@ -27,6 +27,10 @@ browser.jar:
|
|||
skin/classic/browser/page-livemarks.png
|
||||
skin/classic/browser/page-livemarks@2x.png
|
||||
skin/classic/browser/pageInfo.css
|
||||
skin/classic/browser/privatebrowsing-mask.png
|
||||
skin/classic/browser/privatebrowsing-mask@2x.png
|
||||
skin/classic/browser/privatebrowsing-mask-short.png
|
||||
skin/classic/browser/privatebrowsing-mask-short@2x.png
|
||||
skin/classic/browser/searchbar.css
|
||||
skin/classic/browser/slowStartup-16.png
|
||||
skin/classic/browser/toolbarbutton-dropmarker.png
|
||||
|
|
После Ширина: | Высота: | Размер: 1.0 KiB |
После Ширина: | Высота: | Размер: 2.6 KiB |
После Ширина: | Высота: | Размер: 918 B |
После Ширина: | Высота: | Размер: 2.1 KiB |
|
@ -70,24 +70,3 @@
|
|||
display: -moz-box;
|
||||
}
|
||||
|
||||
/* Private browsing indicator */
|
||||
|
||||
.private-browsing-indicator {
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% auto;
|
||||
background-position: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-left: 8px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.private-browsing-indicator {
|
||||
background-image: url("chrome://browser/skin/private-browsing.svg");
|
||||
}
|
||||
|
||||
:root:not([privatebrowsingmode=temporary]) .private-browsing-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* End private browsing indicator */
|
||||
|
|
|
@ -1,11 +0,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="24px" height="24px">
|
||||
<path fill="#8000D7" d="M12,24L12,24C5.4,24,0,18.6,0,12l0,0C0,5.4,5.4,0,12,0l0,0c6.6,0,12,5.4,12,12l0,0
|
||||
C24,18.6,18.6,24,12,24z"/>
|
||||
<path fill="#FFFFFF" d="M15.4,11c-1-0.1-1.9,0.5-2.1,1.5c0,0.3,1.2,0.7,2.3,0.7s2.1-0.7,2.1-0.9C17.7,12.1,17,11.1,15.4,11
|
||||
L15.4,11z M8.6,11c-1.6,0.1-2.3,1-2.3,1.3c0,0.2,1.1,0.9,2.1,0.9c1,0,2.3-0.4,2.3-0.7C10.5,11.5,9.5,10.9,8.6,11L8.6,11z M16.4,16.5
|
||||
c-1.7,0-2.8-2-4.4-2c-1.6,0-2.8,2-4.4,2c-2.1,0-3.6-1.9-3.6-5.3c0-2.1,0.6-2.7,3.3-2.7s3.4,1.1,4.7,1.1s2.1-1.1,4.7-1.1
|
||||
S20,9.2,20,11.2C20,14.6,18.5,16.5,16.4,16.5L16.4,16.5z"/>
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 844 B |
|
@ -152,7 +152,6 @@
|
|||
skin/classic/browser/open.svg (../shared/icons/open.svg)
|
||||
skin/classic/browser/page-action.svg (../shared/icons/page-action.svg)
|
||||
skin/classic/browser/print.svg (../shared/icons/print.svg)
|
||||
skin/classic/browser/private-browsing.svg (../shared/icons/private-browsing.svg)
|
||||
skin/classic/browser/privateBrowsing.svg (../shared/icons/privateBrowsing.svg)
|
||||
skin/classic/browser/restore-session.svg (../shared/icons/restore-session.svg)
|
||||
skin/classic/browser/quit.svg (../shared/icons/quit.svg)
|
||||
|
|
|
@ -234,12 +234,6 @@
|
|||
z-index: 1;
|
||||
}
|
||||
|
||||
#titlebar-buttonbox,
|
||||
#titlebar-buttonbox-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.titlebar-placeholder[type="caption-buttons"] {
|
||||
margin-left: 22px; /* space needed for Aero Snap */
|
||||
}
|
||||
|
@ -1087,22 +1081,89 @@ notification[value="translation"] {
|
|||
|
||||
/* End customization mode */
|
||||
|
||||
/* Private browsing indicator */
|
||||
/* Private browsing indicators */
|
||||
|
||||
:root:-moz-any([tabsintitlebar], [inFullscreen]) .private-browsing-indicator {
|
||||
margin-inline-end: 12px;
|
||||
}
|
||||
|
||||
.private-browsing-indicator,
|
||||
margin-inline-start: 12px;
|
||||
}
|
||||
|
||||
:root[privatebrowsingmode=temporary][tabsintitlebar]:not([inFullscreen]) > #tab-view-deck > #browser-panel > #navigator-toolbox > #TabsToolbar > .private-browsing-indicator,
|
||||
:root[privatebrowsingmode=temporary]:not([tabsintitlebar]) > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > .private-browsing-indicator {
|
||||
/**
|
||||
* Currently, we have two places where we put private browsing indicators on
|
||||
* Windows. When tabsintitlebar is enabled, we draw the indicator in the titlebar.
|
||||
* When tabsintitlebar is disabled, we draw the indicator at the end of the
|
||||
* tabstrip. The titlebar indicator is the fiddliest of the bunch, since we
|
||||
* want the bottom border of the image to line up with the bottom of the window
|
||||
* caption buttons. That's why there's so much special-casing going on in here.
|
||||
*/
|
||||
.private-browsing-indicator {
|
||||
display: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* End private browsing indicator */
|
||||
#private-browsing-indicator-titlebar {
|
||||
display: block;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#main-window[privatebrowsingmode=temporary][tabsintitlebar] #private-browsing-indicator-titlebar > .private-browsing-indicator {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#main-window[privatebrowsingmode=temporary]:-moz-any([inFullscreen],:not([tabsintitlebar])) #TabsToolbar > .private-browsing-indicator {
|
||||
display: -moz-box;
|
||||
}
|
||||
|
||||
#TabsToolbar > .private-browsing-indicator {
|
||||
background: url("chrome://browser/skin/privatebrowsing-mask-tabstrip.png") no-repeat center -3px;
|
||||
margin-inline-start: 4px;
|
||||
width: 48px;
|
||||
}
|
||||
|
||||
/* Bug 1008183: We're intentionally using the titlebar asset here for fullscreen
|
||||
* mode, since the tabstrip "mimics" the titlebar in that case with its own
|
||||
* min/max/close window buttons.
|
||||
*/
|
||||
#private-browsing-indicator-titlebar > .private-browsing-indicator,
|
||||
#main-window[inFullscreen] #TabsToolbar > .private-browsing-indicator {
|
||||
background: url("chrome://browser/skin/privatebrowsing-mask-titlebar.png") no-repeat center 0px;
|
||||
margin-inline-end: 4px;
|
||||
width: 40px;
|
||||
height: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@media (-moz-windows-classic) {
|
||||
/**
|
||||
* We have to use top instead of background-position in this case, otherwise
|
||||
* the bottom of the indicator would get cut off by the bounds of the
|
||||
* private-browsing-indicator element.
|
||||
*/
|
||||
#main-window[sizemode="normal"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator {
|
||||
top: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-moz-os-version: windows-win7) {
|
||||
@media (-moz-windows-glass) {
|
||||
#main-window[sizemode="normal"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator {
|
||||
top: 1px;
|
||||
}
|
||||
#main-window[sizemode="maximized"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator {
|
||||
top: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This next block targets Aero Basic, which has different positioning for the
|
||||
* window caption buttons, and therefore needs to be special-cased.
|
||||
*/
|
||||
@media (-moz-windows-default-theme) {
|
||||
@media (-moz-windows-compositor: 0) {
|
||||
#main-window[sizemode="normal"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator {
|
||||
background-image: url("chrome://browser/skin/privatebrowsing-mask-titlebar-win7-tall.png");
|
||||
height: 28px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* End private browsing indicators */
|
||||
|
||||
%include ../shared/UITour.inc.css
|
||||
|
||||
|
|
|
@ -23,6 +23,11 @@ browser.jar:
|
|||
skin/classic/browser/monitor_16-10.png
|
||||
skin/classic/browser/pageInfo.css
|
||||
skin/classic/browser/pageInfo.png
|
||||
skin/classic/browser/privatebrowsing-mask-tabstrip.png
|
||||
skin/classic/browser/privatebrowsing-mask-tabstrip-win7.png
|
||||
skin/classic/browser/privatebrowsing-mask-titlebar.png
|
||||
skin/classic/browser/privatebrowsing-mask-titlebar-win7.png
|
||||
skin/classic/browser/privatebrowsing-mask-titlebar-win7-tall.png
|
||||
skin/classic/browser/searchbar.css
|
||||
skin/classic/browser/setDesktopBackground.css
|
||||
skin/classic/browser/slowStartup-16.png
|
||||
|
@ -89,4 +94,6 @@ browser.jar:
|
|||
% override chrome://browser/skin/feeds/videoFeedIcon.png chrome://browser/skin/feeds/feedIcon.png
|
||||
% override chrome://browser/skin/feeds/videoFeedIcon16.png chrome://browser/skin/feeds/feedIcon16.png
|
||||
|
||||
% override chrome://browser/skin/privatebrowsing-mask-tabstrip.png chrome://browser/skin/privatebrowsing-mask-tabstrip-win7.png os=WINNT osversion<=6.1
|
||||
% override chrome://browser/skin/privatebrowsing-mask-titlebar.png chrome://browser/skin/privatebrowsing-mask-titlebar-win7.png os=WINNT osversion<=6.1
|
||||
% override chrome://browser/skin/toolbarbutton-dropdown-arrow.png chrome://browser/skin/toolbarbutton-dropdown-arrow-win7.png os=WINNT osversion<=6.1
|
||||
|
|
После Ширина: | Высота: | Размер: 949 B |
После Ширина: | Высота: | Размер: 403 B |
После Ширина: | Высота: | Размер: 940 B |
После Ширина: | Высота: | Размер: 860 B |
После Ширина: | Высота: | Размер: 370 B |