Bug 1403110 - Fix disabled button color on Windows 7 aero. r=nhnt11 draft
authorJohann Hofmann <jhofmann@mozilla.com>
Tue, 26 Sep 2017 12:52:13 +0200
changeset 670409 04d5ed3002d2aa48bce9edc0caaaf3ce6b04eb2e
parent 670404 bc56729898954e32d3a3731d03d178ed78924c33
child 733222 616b3069abdea19fc994976da11db4a0619af26d
push id81617
push userbmo:jhofmann@mozilla.com
push dateTue, 26 Sep 2017 10:53:18 +0000
reviewersnhnt11
bugs1403110
milestone58.0a1
Bug 1403110 - Fix disabled button color on Windows 7 aero. r=nhnt11 MozReview-Commit-ID: INfoRsLNPT9
browser/themes/windows/browser.css
browser/themes/windows/compacttheme.css
--- a/browser/themes/windows/browser.css
+++ b/browser/themes/windows/browser.css
@@ -110,17 +110,18 @@
  * instead of in the tabs toolbar.
  */
 @media (-moz-os-version: windows-win7) {
   @media (-moz-windows-default-theme) {
     :root:not(:-moz-lwtheme) {
       --tabs-border: #4A4A4F;
     }
 
-    #TabsToolbar:not(:-moz-lwtheme) {
+    #TabsToolbar:not(:-moz-lwtheme),
+    #TabsToolbar:not(:-moz-lwtheme) toolbarbutton[disabled="true"] {
       color: hsl(240,9%,98%);
     }
 
     /* Always show full-height tab separators on tabs with borders. */
     .tabbrowser-tab:not(:-moz-lwtheme)::before {
       border-image: none !important;
     }
 
--- a/browser/themes/windows/compacttheme.css
+++ b/browser/themes/windows/compacttheme.css
@@ -25,27 +25,32 @@
     background: transparent !important;
   }
 }
 
 #toolbar-menubar {
   text-shadow: none !important;
 }
 
-@media (-moz-windows-glass) {
-  /* Always show light toolbar elements on aero glass surface. */
-  #TabsToolbar {
-    color: hsl(240,9%,98%);
-  }
+@media (-moz-os-version: windows-win7) {
+  @media (-moz-windows-default-theme) {
+    /* Always show light toolbar elements on aero surface. */
+    #TabsToolbar,
+    #TabsToolbar toolbarbutton[disabled="true"] {
+      color: hsl(240,9%,98%);
+    }
 
-  /* Keep showing the correct color inside the tabs. */
-  .tabbrowser-tab {
-    color: var(--chrome-color) !important;
+    /* Keep showing the correct color inside the tabs. */
+    .tabbrowser-tab {
+      color: var(--chrome-color) !important;
+    }
   }
+}
 
+@media (-moz-windows-glass) {
   /* Make the menubar text readable on aero glass (copied from browser-aero.css). */
   #toolbar-menubar {
     text-shadow: 0 0 .5em white, 0 0 .5em white, 0 1px 0 rgba(255,255,255,.4);
   }
 
   #main-menubar:not(:-moz-window-inactive) {
     background-color: rgba(255,255,255,.5);
     color: black;