Skip to content

Commit

Permalink
Bug 1453722 - Improvements to Dark Theme search bar. r=dao
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: AH3QVBRKymc

--HG--
extra : rebase_source : d30c465bb72f11484183932633b44822e7ccddb3
  • Loading branch information
htwyford committed Jun 1, 2018
1 parent c4f749f commit c9db70e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 3 deletions.
1 change: 1 addition & 0 deletions browser/components/nsBrowserGlue.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ BrowserGlue.prototype = {
popup_text: "rgb(249, 249, 250)",
popup_border: "#27272b",
toolbar_field_text: "rgb(249, 249, 250)",
toolbar_field_border: "rgba(249, 249, 250, 0.2)",
author: vendorShortName,
});

Expand Down
6 changes: 5 additions & 1 deletion browser/themes/linux/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
}

:root[lwt-popup-brighttext] {
--panel-separator-color: hsla(0,0%,80%,.25);
--panel-separator-color: rgba(249,249,250,.2);

--arrowpanel-dimmed: rgba(249,249,250,.1);
--arrowpanel-dimmed-further: rgba(249,249,250,.15);
--arrowpanel-dimmed-even-further: rgba(249,249,250,.2);
}

#menubar-items {
Expand Down
6 changes: 5 additions & 1 deletion browser/themes/osx/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@
}

:root[lwt-popup-brighttext] {
--panel-separator-color: hsla(0,0%,80%,.25);
--panel-separator-color: rgba(249,249,250,.2);

--arrowpanel-dimmed: rgba(249,249,250,.1);
--arrowpanel-dimmed-further: rgba(249,249,250,.15);
--arrowpanel-dimmed-even-further: rgba(249,249,250,.2);
}

#navigator-toolbox {
Expand Down
5 changes: 5 additions & 0 deletions browser/themes/shared/compacttheme.inc.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
--lwt-toolbar-field-background-color: rgb(71, 71, 73);
--lwt-toolbar-field-color: var(--chrome-color);
--urlbar-separator-color: #5F6670;

/* !important to override LightweightThemeManager.addBuiltInTheme in
nsBrowserGlue.js */
--autocomplete-popup-background: #2A2A2E !important;
--autocomplete-popup-highlight-background: #0060DF;
}

:root:-moz-lwtheme-darktext {
Expand Down
4 changes: 4 additions & 0 deletions browser/themes/shared/searchbar.inc.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
color: var(--panel-disabled-color);
}

:root[lwt-popup-brighttext] .search-panel-header {
color: var(--autocomplete-popup-color);
}

.search-panel-header > label {
margin-top: 2px !important;
margin-bottom: 1px !important;
Expand Down
6 changes: 5 additions & 1 deletion browser/themes/windows/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@
}

:root[lwt-popup-brighttext] {
--panel-separator-color: hsla(0,0%,80%,.25);
--panel-separator-color: rgba(249,249,250,.2);

--arrowpanel-dimmed: rgba(249,249,250,.1);
--arrowpanel-dimmed-further: rgba(249,249,250,.15);
--arrowpanel-dimmed-even-further: rgba(249,249,250,.2);
}

#navigator-toolbox:-moz-lwtheme {
Expand Down

0 comments on commit c9db70e

Please sign in to comment.