Bug 1297788 - Dark compact theme should also apply to the location bar's drop-down list of suggested sites draft
authorKostas Lavdas <rick3162@gmail.com>
Wed, 25 Oct 2017 00:06:12 +0300
changeset 685568 129ef4716a5dbd9f0015f035f91059f1ca5c299d
parent 685513 2e23bd7b6bec7e78a6f26ed75aa1e8efce7144c1
child 737188 919936d601a81de0ea0c5c634f6312fa996d5bb0
push id85975
push userbmo:rick3162@gmail.com
push dateTue, 24 Oct 2017 21:07:00 +0000
bugs1297788
milestone58.0a1
Bug 1297788 - Dark compact theme should also apply to the location bar's drop-down list of suggested sites I've added 4 rules in "browser/themes/shared/autocomplete.inc.css" in order to fix the above; r?jaws MozReview-Commit-ID: BQFNFWNspKk
browser/themes/shared/autocomplete.inc.css
--- a/browser/themes/shared/autocomplete.inc.css
+++ b/browser/themes/shared/autocomplete.inc.css
@@ -1,88 +1,88 @@
-%if 0
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-%endif
-
-#PopupAutoComplete > richlistbox > richlistitem {
-  height: 20px;
-  min-height: 20px;
-  border: 0;
-  border-radius: 0;
-  padding: 0px 1px 0px 1px;
-}
-
-#PopupAutoComplete > richlistbox > richlistitem > .ac-site-icon {
-  margin-inline-start: 4px;
-  margin-inline-end: 0;
-}
-
-#PopupAutoComplete > richlistbox > richlistitem > .ac-title {
-  font: icon;
-  margin-inline-start: 4px;
-}
-
-#PopupAutoComplete > richlistbox {
-  padding: 0;
-}
-
-
-/* Login form autocompletion */
-#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon {
-  display: initial;
-  list-style-image: url(chrome://browser/skin/notification-icons/login.svg);
-  -moz-context-properties: fill;
-  fill: GrayText;
-}
-
-#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon[selected] {
-  fill: HighlightText;
-}
-
-
-/* Insecure field warning */
-#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] {
-  background-color: var(--arrowpanel-dimmed);
-  border-bottom: 1px solid var(--panel-separator-color);
-  padding-bottom: 4px;
-  padding-top: 4px;
-}
-
-#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"][selected] {
-  background-color: var(--arrowpanel-dimmed-further);
-  color: -moz-DialogText;
-}
-
-#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] > .ac-title {
-  color: GrayText;
-  font-size: 1em;
-}
-
-#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"][selected] > .ac-title {
-  color: inherit;
-}
-
-#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] > .ac-site-icon {
-  list-style-image: url(chrome://browser/skin/connection-mixed-active-loaded.svg);
-  -moz-context-properties: fill;
-  fill: GrayText;
-}
-
-
-.autocomplete-richlistbox {
-    background-color: var(--url-and-searchbar-background-color, hsla(0, 0%, 100%, .8)) !important;
-}
-
-#PopupAutoCompleteRichResult > richlistbox > richlistitem > hbox > description > .ac-title-text,
-#PopupAutoCompleteRichResult > richlistbox > richlistitem[selected] > hbox > description > .ac-title-text,
-#PopupAutoCompleteRichResult > richlistbox > richlistitem[selected] > hbox > description > .ac-url-text {
-    color: var(--chrome-selection-color) ;
-}
-
-#PopupAutoCompleteRichResult > richlistbox > richlistitem > hbox > description > .ac-url-text {
-    color: var(--chrome-selection-background-color) ;
-}
-
-#PopupAutoCompleteRichResult > richlistbox > richlistitem[selected] {
-    background-color: var(--chrome-selection-background-color) ;
+%if 0
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+%endif
+
+#PopupAutoComplete > richlistbox > richlistitem {
+  height: 20px;
+  min-height: 20px;
+  border: 0;
+  border-radius: 0;
+  padding: 0px 1px 0px 1px;
+}
+
+#PopupAutoComplete > richlistbox > richlistitem > .ac-site-icon {
+  margin-inline-start: 4px;
+  margin-inline-end: 0;
+}
+
+#PopupAutoComplete > richlistbox > richlistitem > .ac-title {
+  font: icon;
+  margin-inline-start: 4px;
+}
+
+#PopupAutoComplete > richlistbox {
+  padding: 0;
+}
+
+
+/* Login form autocompletion */
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon {
+  display: initial;
+  list-style-image: url(chrome://browser/skin/notification-icons/login.svg);
+  -moz-context-properties: fill;
+  fill: GrayText;
+}
+
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon[selected] {
+  fill: HighlightText;
+}
+
+
+/* Insecure field warning */
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] {
+  background-color: var(--arrowpanel-dimmed);
+  border-bottom: 1px solid var(--panel-separator-color);
+  padding-bottom: 4px;
+  padding-top: 4px;
+}
+
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"][selected] {
+  background-color: var(--arrowpanel-dimmed-further);
+  color: -moz-DialogText;
+}
+
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] > .ac-title {
+  color: GrayText;
+  font-size: 1em;
+}
+
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"][selected] > .ac-title {
+  color: inherit;
+}
+
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] > .ac-site-icon {
+  list-style-image: url(chrome://browser/skin/connection-mixed-active-loaded.svg);
+  -moz-context-properties: fill;
+  fill: GrayText;
+}
+
+
+#PopupAutoCompleteRichResult > .autocomplete-richlistbox:-moz-lwtheme-brighttext {
+    background-color: var(--url-and-searchbar-background-color, hsla(0, 0%, 100%, .8));
+}
+
+#PopupAutoCompleteRichResult > richlistbox > richlistitem > hbox > description > .ac-title-text:-moz-lwtheme-brighttext,
+#PopupAutoCompleteRichResult > richlistbox > richlistitem[selected] > hbox > description > .ac-title-text:-moz-lwtheme-brighttext,
+#PopupAutoCompleteRichResult > richlistbox > richlistitem[selected] > hbox > description > .ac-url-text:-moz-lwtheme-brighttext {
+    color: var(--chrome-selection-color) ;
+}
+
+#PopupAutoCompleteRichResult > richlistbox > richlistitem > hbox > description > .ac-url-text:-moz-lwtheme-brighttext {
+    color: var(--chrome-selection-background-color) ;
+}
+
+#PopupAutoCompleteRichResult > richlistbox > richlistitem[selected]:-moz-lwtheme-brighttext {
+    background-color: var(--chrome-selection-background-color) ;
 }
\ No newline at end of file