From 350f20e5e9876e4512965d43c72efe84a88d9a6e Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Sun, 7 Jan 2024 22:01:11 +0900 Subject: [PATCH] Fix: Theme - Mac background field color #851 https://github.com/mozilla/gecko-dev/commit/ff5ed156f0e56afbcadc6f2e16fe5254d7df76d5 https://github.com/mozilla/gecko-dev/commit/b21a492ac7c3630407d8e36b8370c77550b4c56a --- css/leptonChrome.css | 4 ++-- src/theme/system_default_theme/_mac.scss | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index ecee222e..5b02ae84 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -780,7 +780,7 @@ --mac-selected-bgcolor: color-mix(in srgb, rgb(255, 255, 255) 15%, -moz-dialog); --mac-field-bgcolor: Window; --mac-panel-bgcolor: Menu; - --mac-sidebar-bgcolor: -moz-mac-source-list; + --mac-sidebar-bgcolor: Window; --mac-sidebar-hover-bgcolor: color-mix(in srgb, ButtonFace 60%, var(--mac-sidebar-bgcolor)); --mac-hover-bgcolor: Window; --mac-disabled-bgcolor: transparent; @@ -14102,7 +14102,7 @@ --mac-selected-bgcolor: color-mix(in srgb, rgb(255, 255, 255) 15%, -moz-dialog); --mac-field-bgcolor: Window; --mac-panel-bgcolor: Menu; - --mac-sidebar-bgcolor: -moz-mac-source-list; + --mac-sidebar-bgcolor: Window; --mac-sidebar-hover-bgcolor: color-mix(in srgb, ButtonFace 60%, var(--mac-sidebar-bgcolor)); --mac-hover-bgcolor: Window; --mac-disabled-bgcolor: transparent; diff --git a/src/theme/system_default_theme/_mac.scss b/src/theme/system_default_theme/_mac.scss index c94e52c2..b9121930 100644 --- a/src/theme/system_default_theme/_mac.scss +++ b/src/theme/system_default_theme/_mac.scss @@ -8,7 +8,12 @@ --mac-selected-bgcolor: color-mix(in srgb, rgb(255, 255, 255) 15%, -moz-dialog); --mac-field-bgcolor: Window; --mac-panel-bgcolor: Menu; - --mac-sidebar-bgcolor: -moz-mac-source-list; + @if mode.isSTANDARD() { + --mac-sidebar-bgcolor: Window; // TODO: -moz-sidebar; + } + @if mode.isESR() { + --mac-sidebar-bgcolor: -moz-mac-source-list; + } --mac-sidebar-hover-bgcolor: color-mix(in srgb, ButtonFace 60%, var(--mac-sidebar-bgcolor)); --mac-hover-bgcolor: Window; --mac-disabled-bgcolor: transparent;