From 7772ba544ec39b761c35be6a95adc80b69293393 Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Mon, 5 Apr 2021 16:29:18 +0000 Subject: [PATCH] Bug 1701448 - Tweak in-content page styling further for Proton. r=desktop-theme-reviewers,dao * Update green color used for success * Fix actions menulist alignment * Make various elements use new accent colors * Fix lack of border on HTML checkboxes * Update various colors to proton colors * Update input border-radius to 2px * Update border colors Differential Revision: https://phabricator.services.mozilla.com/D110033 --- .../content/components/login-item.css | 24 ++--- .../content/components/login-list.css | 18 ++-- .../components/preferences/privacy.inc.xhtml | 6 +- .../themes/linux/preferences/applications.css | 40 --------- .../themes/osx/preferences/applications.css | 30 ------- browser/themes/shared/aboutSessionRestore.css | 26 +++--- browser/themes/shared/aboutWelcomeBack.css | 24 ++--- .../themes/shared/preferences/containers.css | 2 +- .../shared/preferences/no-search-bar.svg | 3 +- .../shared/preferences/preferences.inc.css | 46 ++++++---- browser/themes/shared/preferences/privacy.css | 27 ++---- .../themes/shared/preferences/search-bar.svg | 4 +- .../privatebrowsing/aboutPrivateBrowsing.css | 1 + .../windows/preferences/applications.css | 39 -------- .../startup/aboutdevtools/aboutdevtools.css | 1 - .../content/components/list-item.css | 5 +- toolkit/content/aboutTelemetry.css | 7 +- .../extensions/content/aboutaddons.css | 6 +- toolkit/themes/linux/global/menulist.css | 2 +- toolkit/themes/linux/global/richlistbox.css | 2 +- toolkit/themes/osx/global/menulist.css | 2 +- toolkit/themes/osx/global/richlistbox.css | 2 +- toolkit/themes/shared/aboutNetworking.css | 2 +- toolkit/themes/shared/icons/radio.svg | 2 +- .../themes/shared/in-content/common.inc.css | 89 +++++++++++++------ toolkit/themes/windows/global/menulist.css | 2 +- toolkit/themes/windows/global/richlistbox.css | 2 +- 27 files changed, 177 insertions(+), 237 deletions(-) diff --git a/browser/components/aboutlogins/content/components/login-item.css b/browser/components/aboutlogins/content/components/login-item.css index c5d91a6f8b47..7d244daa74e7 100644 --- a/browser/components/aboutlogins/content/components/login-item.css +++ b/browser/components/aboutlogins/content/components/login-item.css @@ -8,17 +8,27 @@ --reveal-checkbox-opacity: .8; --reveal-checkbox-opacity-hover: .6; --reveal-checkbox-opacity-active: 1; - --success-color: #00c100; + --success-color: #2AC3A2; --edit-delete-button-color: #4a4a4f; } /* Only overwrite the deemphasized text color in non-dark mode. */ -@media not all and (prefers-color-scheme: dark) { +@media not (prefers-color-scheme: dark) { :host { --in-content-deemphasized-text: #737373; } } +@media (prefers-color-scheme: dark) { + :host { + --reveal-checkbox-opacity: .8; + --reveal-checkbox-opacity-hover: 1; + --reveal-checkbox-opacity-active: .6; + --success-color: #54FFBD; + --edit-delete-button-color: #cfcfd1; + } +} + .container { overflow: auto; padding: 40px; @@ -454,13 +464,3 @@ input[name="password"] { text-decoration: underline; font-weight: 600; } - -@media (prefers-color-scheme: dark) { - :host { - --reveal-checkbox-opacity: .8; - --reveal-checkbox-opacity-hover: 1; - --reveal-checkbox-opacity-active: .6; - --success-color: #86DE74; - --edit-delete-button-color: #cfcfd1; - } -} diff --git a/browser/components/aboutlogins/content/components/login-list.css b/browser/components/aboutlogins/content/components/login-list.css index 3a6e386e0b9b..773dac68ce4d 100644 --- a/browser/components/aboutlogins/content/components/login-list.css +++ b/browser/components/aboutlogins/content/components/login-list.css @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ :host { - border-inline-end: 1px solid var(--in-content-box-border-color); + border-inline-end: 1px solid var(--in-content-border-color); background-color: var(--in-content-box-background); display: flex; flex-direction: column; @@ -14,7 +14,7 @@ display: flex; align-items: center; padding: 9px 16px; - border-bottom: 1px solid var(--in-content-box-border-color); + border-bottom: 1px solid var(--in-content-border-color); background-color: var(--in-content-box-background); color: var(--in-content-deemphasized-text); font-size: 0.8em; @@ -99,7 +99,7 @@ ol { } .create-login-button-container { - border-top: 1px solid var(--in-content-box-border-color); + border-top: 1px solid var(--in-content-border-color); display: flex; flex-direction: column; } @@ -117,17 +117,25 @@ ol { border-top: 1px solid var(--in-content-border-color); } +@supports not -moz-bool-pref("browser.proton.enabled") { .login-list-item:hover { background-color: var(--in-content-page-background); } +} /*** END !proton ***/ -.login-list-item:hover:active { +@supports -moz-bool-pref("browser.proton.enabled") { +.login-list-item:not(.selected):hover { + background-color: var(--in-content-button-background-hover); +} + +.login-list-item:not(.selected):hover:active { background-color: var(--in-content-button-background-active); } +} /*** END proton ***/ .login-list-item.keyboard-selected { border-inline-start-color: var(--in-content-border-color); - background-color: var(--in-content-page-background); + background-color: var(--in-content-button-background-hover); } .login-list-item.selected { diff --git a/browser/components/preferences/privacy.inc.xhtml b/browser/components/preferences/privacy.inc.xhtml index f1dd462289bb..496b9ad64ef6 100644 --- a/browser/components/preferences/privacy.inc.xhtml +++ b/browser/components/preferences/privacy.inc.xhtml @@ -123,7 +123,7 @@ -