From 610a3d41f1d42c41f4de1e463d0623950bd30d2d Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Tue, 22 Mar 2022 06:53:27 +0900 Subject: [PATCH] Fix: Option - Remove `userChrome.tab.proton` --- src/theme/system_default_theme/_mac.scss | 2 +- src/theme/system_default_theme/_win10.scss | 2 +- src/utils/_option.scss | 2 -- userChrome.css | 4 ++-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/theme/system_default_theme/_mac.scss b/src/theme/system_default_theme/_mac.scss index efb7975..0bfbbac 100644 --- a/src/theme/system_default_theme/_mac.scss +++ b/src/theme/system_default_theme/_mac.scss @@ -160,7 +160,7 @@ } } /*- Proton Tab Selected ----------------------------------------------------*/ - @include Option("userChrome.tab.proton") { + @include NotOption("userChrome.tab.connect_to_window") { #{system-default-theme()} { --mac-proton-tab-selected-bgcolor: color-mix(in srgb, rgb(255, 255, 255) 20%, -moz-dialog); } diff --git a/src/theme/system_default_theme/_win10.scss b/src/theme/system_default_theme/_win10.scss index 9b63909..b94ba01 100644 --- a/src/theme/system_default_theme/_win10.scss +++ b/src/theme/system_default_theme/_win10.scss @@ -195,7 +195,7 @@ } /*- Proton Tab Selected ----------------------------------------------------*/ - @include Option($tabProton) { + @include NotOption("userChrome.tab.connect_to_window") { #{system-default-theme()} { --win-proton-tab-selected-bgcolor: color-mix(in srgb, var(--win-bgcolor) 5%, var(--win-component-bgcolor)); } diff --git a/src/utils/_option.scss b/src/utils/_option.scss index 4ee326a..3311464 100644 --- a/src/utils/_option.scss +++ b/src/utils/_option.scss @@ -1,7 +1,5 @@ @use "each"; -$tabProton: "userChrome.tab.proton"; - @mixin Option($optionNames...) { @include each.AtEach("supports", $optionNames, "-moz-bool-pref", ("seperator": " or ", "quoted": true)) { @content; diff --git a/userChrome.css b/userChrome.css index 0724778..2ce9ddb 100644 --- a/userChrome.css +++ b/userChrome.css @@ -526,7 +526,7 @@ } /*- Proton Tab Selected ----------------------------------------------------*/ - @supports -moz-bool-pref("userChrome.tab.proton") { + @supports not -moz-bool-pref("userChrome.tab.connect_to_window") { :root:not(:-moz-lwtheme), :root[lwt-default-theme-in-dark-mode] { --win-proton-tab-selected-bgcolor: color-mix(in srgb, var(--win-bgcolor) 5%, var(--win-component-bgcolor)); @@ -811,7 +811,7 @@ } } /*- Proton Tab Selected ----------------------------------------------------*/ - @supports -moz-bool-pref("userChrome.tab.proton") { + @supports not -moz-bool-pref("userChrome.tab.connect_to_window") { :root:not(:-moz-lwtheme), :root[lwt-default-theme-in-dark-mode] { --mac-proton-tab-selected-bgcolor: color-mix(in srgb, rgb(255, 255, 255) 20%, -moz-dialog);