Bug 1567714 - Fix .urlbar-display text color on themes. r=dao
authorTim Nguyen <ntim.bugs@gmail.com>
Wed, 21 Aug 2019 08:15:30 +0000
changeset 489140 32488e3b4c08bdc95eeb3aaa5be360cf3f0d46fe
parent 489139 eaa150b76520436278334337b869f22634faccdc
child 489141 6879692f1dc14a99204cf741cba95260ee401e22
push id36465
push userdvarga@mozilla.com
push dateWed, 21 Aug 2019 16:47:43 +0000
treeherdermozilla-central@4ab60925635c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1567714
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1567714 - Fix .urlbar-display text color on themes. r=dao Differential Revision: https://phabricator.services.mozilla.com/D42744
browser/themes/linux/browser.css
browser/themes/osx/browser.css
browser/themes/shared/urlbar-searchbar.inc.css
browser/themes/windows/browser.css
--- a/browser/themes/linux/browser.css
+++ b/browser/themes/linux/browser.css
@@ -205,20 +205,17 @@ menuitem.bookmark-item {
 }
 
 #urlbar-display-box {
   margin-top: -1px;
   margin-bottom: -1px;
 }
 
 .urlbar-display {
-  margin-top: 0;
-  margin-bottom: 0;
   margin-inline-start: 0;
-  color: GrayText;
 }
 
 #search-container {
   min-width: calc(54px + 11ch);
 }
 
 /* identity box */
 
--- a/browser/themes/osx/browser.css
+++ b/browser/themes/osx/browser.css
@@ -288,22 +288,16 @@
 #search-container {
   min-width: calc(54px + 11ch);
 }
 
 #wrapper-urlbar-container[place="palette"] {
   max-width: 20em;
 }
 
-.urlbar-display {
-  margin-top: 0;
-  margin-bottom: 0;
-  color: GrayText;
-}
-
 #pageAction-urlbar-shareURL,
 #pageAction-panel-shareURL {
   list-style-image: url("chrome://browser/skin/share.svg");
 }
 
 /* ----- AUTOCOMPLETE ----- */
 
 %include ../shared/autocomplete.inc.css
--- a/browser/themes/shared/urlbar-searchbar.inc.css
+++ b/browser/themes/shared/urlbar-searchbar.inc.css
@@ -353,16 +353,29 @@
 
 .urlbar-icon:-moz-focusring,
 .urlbar-icon-wrapper:-moz-focusring {
   outline: var(--toolbarbutton-focus-outline);
   outline-offset: -2px;
   -moz-outline-radius: var(--toolbarbutton-border-radius);
 }
 
+.urlbar-display {
+  margin-top: 0;
+  margin-bottom: 0;
+}
+
+.urlbar-display:not(:-moz-lwtheme) {
+  color: GrayText;
+}
+
+.urlbar-display:-moz-lwtheme {
+  opacity: 0.5;
+}
+
 #urlbar-go-button,
 .search-go-button {
   list-style-image: url("chrome://browser/skin/forward.svg");
 }
 
 #urlbar-go-button:-moz-locale-dir(rtl),
 .search-go-button:-moz-locale-dir(rtl) {
   transform: scaleX(-1);
--- a/browser/themes/windows/browser.css
+++ b/browser/themes/windows/browser.css
@@ -574,20 +574,17 @@ menuitem.bookmark-item {
 }
 
 #urlbar-zoom-button {
   -moz-appearance: none;
   color: inherit;
 }
 
 .urlbar-display {
-  margin-top: 0;
-  margin-bottom: 0;
   margin-inline-start: 0;
-  color: GrayText;
 }
 
 #pageAction-urlbar-shareURL,
 #pageAction-panel-shareURL {
   list-style-image: url("chrome://browser/skin/share.svg");
 }
 
 #search-container {