Bug 1169911 - fix windows 10 titlebar coloring/border issues, r?dao draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 03 Jun 2015 23:21:31 +0100
changeset 269707 b88fd98f9f1eafd2be480ce2afc5a886c0bf3877
parent 269627 4017f25a873397e2a8b4835eda4c7d93b8694004
child 506649 14efae2ff6d25a0ac4056678ffd568deda9a2de1
push id2544
push usergijskruitbosch@gmail.com
push dateWed, 03 Jun 2015 22:21:38 +0000
reviewersdao
bugs1169911
milestone41.0a1
Bug 1169911 - fix windows 10 titlebar coloring/border issues, r?dao
browser/themes/windows/browser-aero.css
--- a/browser/themes/windows/browser-aero.css
+++ b/browser/themes/windows/browser-aero.css
@@ -103,24 +103,41 @@
     display: none;
   }
 
   #main-window[sizemode="maximized"] #titlebar-buttonbox {
     -moz-margin-end: 3px;
   }
 
   #main-window {
-    -moz-appearance: -moz-win-borderless-glass;
+    -moz-appearance: -moz-win-glass;
     background: transparent;
   }
 
-  #appcontent {
+  #browser {
     -moz-appearance: -moz-win-exclude-glass;
   }
 
+  @media (-moz-os-version: windows-vista),
+         (-moz-os-version: windows-win7),
+         (-moz-os-version: windows-win8) {
+    #main-window {
+      -moz-appearance: -moz-win-borderless-glass;
+    }
+
+    #browser {
+      -moz-appearance: none;
+    }
+
+    #appcontent {
+      -moz-appearance: -moz-win-exclude-glass;
+    }
+  }
+
+
   /* Artificially draw window borders that are covered by lwtheme, see bug 591930. */
   #main-window[sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme {
     border-top: 2px solid;
     -moz-border-top-colors: @glassActiveBorderColor@ rgba(255,255,255,.6);
   }
 
   #main-window[sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme:-moz-window-inactive {
     -moz-border-top-colors: @glassInactiveBorderColor@ rgba(255,255,255,.6);