зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1441102 - Replace --titlebar-text-color with a class. r=florian
MozReview-Commit-ID: 9ruAARse3LU --HG-- extra : rebase_source : f77863888cc658dbde3d008686810b231070c5c8
This commit is contained in:
Родитель
c9e54dcc26
Коммит
a64b1b9f8a
|
@ -586,7 +586,7 @@
|
|||
<hbox id="titlebar-content">
|
||||
<spacer id="titlebar-spacer" flex="1"/>
|
||||
<hbox id="titlebar-buttonbox-container">
|
||||
<hbox id="titlebar-buttonbox">
|
||||
<hbox id="titlebar-buttonbox" class="titlebar-color">
|
||||
<toolbarbutton class="titlebar-button" id="titlebar-min" oncommand="window.minimize();"/>
|
||||
<toolbarbutton class="titlebar-button" id="titlebar-max" oncommand="onTitlebarMaxClick();"/>
|
||||
<toolbarbutton class="titlebar-button" id="titlebar-close" command="cmd_closeWindow"/>
|
||||
|
@ -607,7 +607,9 @@
|
|||
|
||||
<toolbox id="navigator-toolbox">
|
||||
<!-- Menu -->
|
||||
<toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
|
||||
<toolbar type="menubar" id="toolbar-menubar"
|
||||
class="chromeclass-menubar titlebar-color"
|
||||
customizable="true"
|
||||
mode="icons"
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
toolbarname="&menubarCmd.label;"
|
||||
|
@ -630,6 +632,7 @@
|
|||
</toolbar>
|
||||
|
||||
<toolbar id="TabsToolbar"
|
||||
class="titlebar-color"
|
||||
fullscreentoolbar="true"
|
||||
customizable="true"
|
||||
mode="icons"
|
||||
|
|
|
@ -40,14 +40,18 @@
|
|||
@media (-moz-windows-accent-color-in-titlebar: 0) {
|
||||
:root[tabsintitlebar]:not(:-moz-lwtheme) {
|
||||
background-color: hsl(235,33%,19%);
|
||||
--titlebar-text-color: hsl(240,9%,98%);
|
||||
}
|
||||
:root[tabsintitlebar] .titlebar-color:not(:-moz-lwtheme) {
|
||||
color: hsl(240,9%,98%);
|
||||
}
|
||||
}
|
||||
|
||||
@media (-moz-windows-accent-color-in-titlebar) {
|
||||
:root[tabsintitlebar]:not(:-moz-window-inactive):not(:-moz-lwtheme) {
|
||||
background-color: -moz-win-accentcolor;
|
||||
--titlebar-text-color: -moz-win-accentcolortext;
|
||||
}
|
||||
:root[tabsintitlebar] .titlebar-color:not(:-moz-window-inactive):not(:-moz-lwtheme) {
|
||||
color: -moz-win-accentcolortext;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -82,7 +86,7 @@
|
|||
margin: 0 !important;
|
||||
padding: 8px 17px;
|
||||
-moz-context-properties: stroke;
|
||||
stroke: var(--titlebar-text-color);
|
||||
stroke: currentColor;
|
||||
}
|
||||
|
||||
.titlebar-button > .toolbarbutton-icon {
|
||||
|
@ -279,8 +283,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
:root[darkwindowframe="true"]:not(:-moz-lwtheme):not(:-moz-window-inactive) {
|
||||
--titlebar-text-color: white;
|
||||
:root[darkwindowframe="true"] .titlebar-color:not(:-moz-window-inactive):not(:-moz-lwtheme) {
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Show borders on Win 7 & 8, but not on 10 and later: */
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
%define glassShadowColor hsla(240,5%,5%,0.3)
|
||||
|
||||
:root {
|
||||
--titlebar-text-color: currentColor;
|
||||
|
||||
--toolbar-non-lwt-bgcolor: -moz-dialog;
|
||||
--toolbar-non-lwt-textcolor: -moz-dialogtext;
|
||||
--toolbar-non-lwt-bgimage: linear-gradient(rgba(255,255,255,.15), rgba(255,255,255,.15));
|
||||
|
@ -114,11 +112,6 @@
|
|||
color: var(--toolbar-color, inherit);
|
||||
}
|
||||
|
||||
#toolbar-menubar,
|
||||
#TabsToolbar {
|
||||
color: var(--titlebar-text-color);
|
||||
}
|
||||
|
||||
/*
|
||||
* Windows 7 draws the chrome background color as the tab background
|
||||
* instead of in the tabs toolbar.
|
||||
|
@ -170,12 +163,12 @@
|
|||
/* Please keep the menu text colors in this media block in sync with
|
||||
* compacttheme.css, minus the :not(:-moz-lwtheme) condition - see Bug 1165718.
|
||||
*/
|
||||
:root[tabsintitlebar]:not([inFullscreen]):not(:-moz-lwtheme) {
|
||||
--titlebar-text-color: CaptionText;
|
||||
:root[tabsintitlebar]:not([inFullscreen]) .titlebar-color:not(:-moz-lwtheme) {
|
||||
color: CaptionText;
|
||||
}
|
||||
|
||||
:root[tabsintitlebar]:not([inFullscreen]):not(:-moz-lwtheme):-moz-window-inactive {
|
||||
--titlebar-text-color: InactiveCaptionText;
|
||||
:root[tabsintitlebar]:not([inFullscreen]) .titlebar-color:not(:-moz-lwtheme):-moz-window-inactive {
|
||||
color: InactiveCaptionText;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -127,12 +127,12 @@
|
|||
/* Use proper menu text styling in Win7 classic mode (copied from browser.css) */
|
||||
@media (-moz-windows-compositor: 0),
|
||||
(-moz-windows-default-theme: 0) {
|
||||
:root[tabsintitlebar]:not([inFullscreen]) {
|
||||
--titlebar-text-color: CaptionText;
|
||||
:root[tabsintitlebar]:not([inFullscreen]) .titlebar-color {
|
||||
color: CaptionText;
|
||||
}
|
||||
|
||||
:root[tabsintitlebar]:not([inFullscreen]):-moz-window-inactive {
|
||||
--titlebar-text-color: InactiveCaptionText;
|
||||
:root[tabsintitlebar]:not([inFullscreen]) .titlebar-color:-moz-window-inactive {
|
||||
color: InactiveCaptionText;
|
||||
}
|
||||
|
||||
#main-window[tabsintitlebar] #main-menubar > menu {
|
||||
|
|
Загрузка…
Ссылка в новой задаче