Bug 1398696 - Override the window background to Windows Aero Basic colors for Light/Dark theme on Windows 7. r=dao
This color is originally set to the accent-color of lwthemes, which is expected,
but we want to have the original Aero Basic look in the background on Windows 7
for light/dark and themes to mirror the default theme.
MozReview-Commit-ID: 7KfBF9Ey27A
--- a/browser/themes/windows/compacttheme.css
+++ b/browser/themes/windows/compacttheme.css
@@ -13,16 +13,27 @@
theme. It can't be changed to transparent when there is no compositor
(Win 7 in classic / basic theme), or else dragging and focus become
broken. So instead just show the normal titlebar in that case, and override
the window color as transparent when the compositor is available. */
@media (-moz-windows-compositor: 0) {
#main-window[tabsintitlebar] #titlebar:-moz-lwtheme {
visibility: visible;
}
+
+ /* Prevent accent color overriding the window background for
+ * light and dark theme on Aero Basic. This is copied from browser-aero.css. */
+ @media (-moz-windows-default-theme) {
+ #main-window {
+ background-color: rgb(185,209,234) !important;
+ }
+ #main-window:-moz-window-inactive {
+ background-color: rgb(215,228,242) !important;
+ }
+ }
}
#toolbar-menubar {
text-shadow: none !important;
}
@media (-moz-os-version: windows-win7) {
@media (-moz-windows-default-theme) {