Bug 623986 - Make the buttontext redable of disabled toolbarbuttons with LW-themes. r=aleth a=mkmelin
authorRichard Marti <richard.marti@gmail.com>
Fri, 25 Dec 2015 12:16:19 +0100
changeset 26636 5a9e51058e4af314477e7cac7ed67c48d180f904
parent 26635 586fcf020eb01e66902092088c3b5fdde5835302
child 26637 99c9e6aa9268f455ede199cce023bd00d3fd3464
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaleth, mkmelin
bugs623986
Bug 623986 - Make the buttontext redable of disabled toolbarbuttons with LW-themes. r=aleth a=mkmelin
mail/themes/linux/mail/messenger.css
mail/themes/osx/mail/messenger.css
mail/themes/windows/mail/messenger.css
--- a/mail/themes/linux/mail/messenger.css
+++ b/mail/themes/linux/mail/messenger.css
@@ -226,16 +226,21 @@ toolbar:not(.inline-toolbar):not(:-moz-l
 }
 
 .toolbarbutton-menubutton-button > .toolbarbutton-icon,
 .toolbarbutton-1 .toolbarbutton-icon {
   width: 18px;
   height: 18px;
 }
 
+.toolbarbutton-1[disabled=true]:-moz-lwtheme,
+.toolbarbutton-menubutton-button[disabled=true]:-moz-lwtheme {
+  color: inherit;
+}
+
 toolbar[mode="full"] .toolbarbutton-1 {
   min-width: 55px;
 }
 
 sidebarheader .toolbarbutton-text:not([value]) {
   display: none;
 }
 
--- a/mail/themes/osx/mail/messenger.css
+++ b/mail/themes/osx/mail/messenger.css
@@ -198,16 +198,21 @@ toolbar:not([mode="icons"]) .toolbarbutt
   min-width: 0;
 }
 
 .toolbarbutton-1 .toolbarbutton-icon {
   width: 18px;
   height: 18px;
 }
 
+.toolbarbutton-1[disabled=true]:-moz-lwtheme,
+.toolbarbutton-menubutton-button[disabled=true]:-moz-lwtheme {
+  color: inherit !important;
+}
+
 .toolbarbutton-1[disabled="true"] .toolbarbutton-text,
 .toolbarbutton-1[disabled="true"] .toolbarbutton-icon,
 .toolbarbutton-1[type="menu-button"] > .toolbarbutton-menubutton-button[disabled="true"]
   > .toolbarbutton-icon {
   opacity: .4;
 }
 
 .toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
--- a/mail/themes/windows/mail/messenger.css
+++ b/mail/themes/windows/mail/messenger.css
@@ -72,16 +72,26 @@ toolbox[labelalign="end"] .toolbarbutton
   -moz-padding-start: 5px;
   -moz-padding-end: 4px;
 }
 
 .toolbarbutton-1[checked="true"] {
   padding: 1px 5px !important;
 }
 
+.toolbarbutton-1[disabled=true]:-moz-lwtheme,
+.toolbarbutton-menubutton-button[disabled=true]:-moz-lwtheme {
+  color: inherit;
+  text-shadow: inherit;
+}
+
+.toolbarbutton-1[disabled=true]:-moz-lwtheme .toolbarbutton-text {
+  opacity: .4;
+}
+
 toolbox[labelalign="end"] > toolbar[mode="full"] .toolbarbutton-1 .toolbarbutton-text {
   padding-inline-start: 2px;
 }
 
 toolbox[labelalign="end"] > toolbar[mode="full"] deck .toolbarbutton-text {
   text-align: start;
 }