Bug 1379173 - Don't drop the custom titlebar color in inactive windows. r?johannh draft
authorDão Gottwald <dao@mozilla.com>
Fri, 07 Jul 2017 22:23:20 +0200
changeset 605495 8cc53f7509afcd089789518ba00fa74be3bb8a5d
parent 605265 a0b5515b13ebfd3220a06fd1cd31f98a9557f031
child 636504 13878be00d165a763d7308c0c38026157a5a1606
push id67421
push userdgottwald@mozilla.com
push dateFri, 07 Jul 2017 20:23:50 +0000
reviewersjohannh
bugs1379173
milestone56.0a1
Bug 1379173 - Don't drop the custom titlebar color in inactive windows. r?johannh MozReview-Commit-ID: f2uRvzhoYQ
browser/themes/windows/browser-aero.css
--- a/browser/themes/windows/browser-aero.css
+++ b/browser/themes/windows/browser-aero.css
@@ -46,19 +46,21 @@
   #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) {
 %ifdef MOZ_PHOTON_THEME
-        :root:not(:-moz-window-inactive):not(:-moz-lwtheme) {
-          background-color: hsl(235,33%,19%);
-          --titlebar-text-color: hsl(240,9%,98%);
+        @media (-moz-windows-accent-color-applies: 0) {
+          :root: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) {
             background-color: -moz-win-accentcolor;
             --titlebar-text-color: -moz-win-accentcolortext;
           }
         }