Bug 1398696 - Override the window background to Windows Aero Basic colors for Light/Dark theme on Windows 7. r=dao draft
authorJohann Hofmann <jhofmann@mozilla.com>
Tue, 17 Oct 2017 14:13:57 +0200
changeset 681584 fc754c78ce710be5f64196d0baf7e4d4f53b0d84
parent 681450 0d9c6250f99dc4b6aa1a94f5260737d046c52b1e
child 736168 f4472fc06f1f4c942ca158f9d76ea205da5861ba
push id84852
push userbmo:jhofmann@mozilla.com
push dateTue, 17 Oct 2017 12:15:45 +0000
reviewersdao
bugs1398696
milestone58.0a1
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
browser/themes/windows/compacttheme.css
--- 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) {