Bug 989683 - restrict how we inherit the menubar text color to tabsintitlebar cases on non-aero, r=dao

This commit is contained in:
Gijs Kruitbosch 2014-04-09 13:54:44 +01:00
Родитель f6e2866184
Коммит 9c78e3edbd
2 изменённых файлов: 28 добавлений и 4 удалений

Просмотреть файл

@ -144,6 +144,18 @@
border-right-style: none !important;
}
/* Use a different color only on Windows 8 and higher for inactive windows.
* On aero, the menubar fog disappears for inactive windows, and renders gray
* illegible.
*/
@media not all and (-moz-os-version: windows-vista) {
@media not all and (-moz-os-version: windows-win7) {
#toolbar-menubar:not(:-moz-lwtheme):-moz-window-inactive {
color: ThreeDShadow;
}
}
}
#main-window[darkwindowframe="true"] #toolbar-menubar:not(:-moz-lwtheme):not(:-moz-window-inactive),
#main-window[darkwindowframe="true"] #TabsToolbar:not(:-moz-lwtheme):not(:-moz-window-inactive) {
color: white;

Просмотреть файл

@ -109,12 +109,24 @@
%endif
/* Make the menu inherit the toolbar's color. On non-compositor (Aero Basic, XP modern, classic)
* this is defined above. Otherwise (Aero Glass, Windows 8 inactive windows), this is hardcoded
* to black in browser-aero.css. */
#main-menubar > menu:not(:-moz-lwtheme) {
color: inherit;
* this is defined above, but only for tabsintitlebar. Otherwise (Aero Glass, Windows 8),
* this is hardcoded to black in browser-aero.css, even without tabsintitlebar. */
%ifdef WINDOWS_AERO
@media not all and (-moz-windows-compositor) {
%endif
#main-window[tabsintitlebar] #main-menubar > menu:not(:-moz-lwtheme) {
color: inherit;
}
%ifdef WINDOWS_AERO
}
@media (-moz-windows-compositor) {
#main-menubar > menu:not(:-moz-lwtheme) {
color: inherit;
}
}
%endif
/**
* In the classic themes, the titlebar has a horizontal gradient, which is
* problematic for reading the text of background tabs when they're in the