From 88fae20e2cf57d2878187bcc12a6c6a77d0beed8 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Tue, 28 Dec 2021 16:35:55 +0900 Subject: [PATCH] Add: Option - dark color, proton chrome --- src/userChrome.scss | 8 ++++++-- src/utils/_option.scss | 2 ++ user.js | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/userChrome.scss b/src/userChrome.scss index d5a8c88..a8d11cb 100644 --- a/src/userChrome.scss +++ b/src/userChrome.scss @@ -33,10 +33,14 @@ } /* Fully Dark Mode ************************************************************/ -@import "theme/fully_dark"; +@include Option($fullyDark) { + @import "theme/fully_dark"; +} /* Proton Theme Mode **********************************************************/ -@import "theme/proton_chrome"; +@include Option($protonChrome) { + @import "theme/proton_chrome"; +} /** Decoration ****************************************************************/ @import "theme/decoration"; diff --git a/src/utils/_option.scss b/src/utils/_option.scss index 71c4303..3fe56d1 100644 --- a/src/utils/_option.scss +++ b/src/utils/_option.scss @@ -6,6 +6,8 @@ $compatibilityTheme: "userChrome.theme.compatibility.theme"; $compatibilityOS: "userChrome.theme.compatibility.os"; $systemDefault: "userChrome.theme.system_default"; $fullyColor: "userChrome.theme.fully_color"; +$darkColor: "userChrome.theme.fully_dark"; +$protonChrome: "userChrome.theme.proton_chrome"; @mixin Option($optionName) { @supports -moz-bool-pref("#{$optionName}") { diff --git a/user.js b/user.js index d15eb42..58ba914 100644 --- a/user.js +++ b/user.js @@ -42,6 +42,8 @@ user_pref("userChrome.theme.compatibility.theme", true); user_pref("userChrome.theme.compatibility.os", true); user_pref("userChrome.theme.system_default", true); user_pref("userChrome.theme.fully_color", true); +user_pref("userChrome.theme.fully_dark", true); +user_pref("userChrome.theme.proton_chrome", true); // ** Useful Options *********************************************************** // Integrated calculator at urlbar