Bug 1379268 - Don't apply the accent color beyond the title bar when the native title bar is enabled. r?johannh draft
authorDão Gottwald <dao@mozilla.com>
Tue, 11 Jul 2017 15:28:49 +0200
changeset 606813 683276db1444838a525a632dccc614b316f8eb9f
parent 606556 0e41d07a703f19224f60b01577b2cbb5708046c9
child 636868 ebabe879d78edb281b03916164c5aab358c98a10
push id67810
push userdgottwald@mozilla.com
push dateTue, 11 Jul 2017 13:29:53 +0000
reviewersjohannh
bugs1379268
milestone56.0a1
Bug 1379268 - Don't apply the accent color beyond the title bar when the native title bar is enabled. r?johannh MozReview-Commit-ID: HUe1XuncqND
browser/themes/windows/browser-aero.css
--- a/browser/themes/windows/browser-aero.css
+++ b/browser/themes/windows/browser-aero.css
@@ -45,34 +45,34 @@
    * the titlebar */
   #browser {
     -moz-appearance: -moz-win-exclude-glass;
   }
 
   @media not all and (-moz-os-version: windows-win7) {
     @media not all and (-moz-os-version: windows-win8) {
       @media (-moz-windows-default-theme) {
+        :root:not(:-moz-lwtheme) {
+          background-color: hsl(0, 0%, 78%);
+        }
+
 %ifdef MOZ_PHOTON_THEME
         @media (-moz-windows-accent-color-applies: 0) {
-          :root:not(:-moz-lwtheme) {
+          :root[tabsintitlebar]:not(:-moz-lwtheme) {
             background-color: hsl(235,33%,19%);
             --titlebar-text-color: hsl(240,9%,98%);
           }
         }
 
         @media (-moz-windows-accent-color-applies) {
-          :root:not(:-moz-window-inactive):not(:-moz-lwtheme) {
+          :root[tabsintitlebar]:not(:-moz-window-inactive):not(:-moz-lwtheme) {
             background-color: -moz-win-accentcolor;
             --titlebar-text-color: -moz-win-accentcolortext;
           }
         }
-%else
-        :root:not(:-moz-lwtheme) {
-          background-color: hsl(0, 0%, 78%);
-        }
 %endif
 
         :root[tabsintitlebar] .tab-label:-moz-window-inactive {
           /* Calculated to match the opacity change of Windows Explorer
              titlebar text change for inactive windows. */
           opacity: .6;
         }
       }