Bug 1398696 - Override the window background to Windows Aero Basic colors for Light/Dark theme on Windows 7. r=dao
authorJohann Hofmann <jhofmann@mozilla.com>
Tue, 17 Oct 2017 14:13:57 +0200
changeset 386624 de4a2586cbfddbd66739b8ccdf52f1feb99c6a3f
parent 386623 0300190ef9879f07055cc8d69cc6d5c9b41a4132
child 386625 55172a4afa4a8af95f808c104f8832cf431db908
push id32698
push userarchaeopteryx@coole-files.de
push dateTue, 17 Oct 2017 21:50:01 +0000
treeherdermozilla-central@77d38f80dce6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1398696
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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) {