Bug 1308407 - fix text-shadow on dark devedition theme on Linux, r?dao draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 12 Oct 2016 13:53:35 +0100
changeset 424233 c459385ff745a799770f3c12e15a56bb09f553d8
parent 420017 955840bfd3c20eb24dd5a01be27bdc55c489a285
child 533627 4dea477ec6a3defd352db1089b1cb828ccfa6ce4
push id32105
push usergijskruitbosch@gmail.com
push dateWed, 12 Oct 2016 12:54:01 +0000
reviewersdao
bugs1308407
milestone52.0a1
Bug 1308407 - fix text-shadow on dark devedition theme on Linux, r?dao MozReview-Commit-ID: 1mIC2KxLDEk
browser/themes/linux/devedition.css
--- a/browser/themes/linux/devedition.css
+++ b/browser/themes/linux/devedition.css
@@ -20,16 +20,26 @@
 }
 
 :root[devtoolstheme="dark"] .findbar-closebutton:not(:hover),
 :root[devtoolstheme="dark"] #sidebar-header > .close-icon:not(:hover),
 .tab-close-button[selected]:not(:hover) {
   background-image: -moz-image-rect(url("chrome://global/skin/icons/close.svg"), 0, 80, 16, 64);
 }
 
+/* We're a dark-text lightweight theme (because there's only 1 lwtheme for the
+ * devedition theme) and so if we don't do anything, the text shadow will be
+ * white (to make black text more readable against variable backgrounds). But
+ * text is white in the dark devedition theme, and so we shouldn't have a
+ * white text-shadow.
+ */
+:root[devtoolstheme="dark"]:-moz-lwtheme {
+  text-shadow: none;
+}
+
 /* The menubar and tabs toolbar should match the devedition theme */
 #TabsToolbar,
 #toolbar-menubar {
   -moz-appearance: none !important;
 }
 #main-menubar {
   color: var(--chrome-color);
 }