From 2f9127689a6fd34e0d41411cb0ebedd4485936f1 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Wed, 29 Dec 2021 15:40:50 +0900 Subject: [PATCH] Add: Option - decorations --- src/decoration/_index.scss | 16 ++++++++++++---- src/utils/_option.scss | 5 +++++ user.js | 5 +++++ 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/decoration/_index.scss b/src/decoration/_index.scss index 6d4aaae..f434c67 100644 --- a/src/decoration/_index.scss +++ b/src/decoration/_index.scss @@ -1,13 +1,21 @@ /*= Cursor Types =============================================================*/ -@import "cursor"; +@include Option($cursor) { + @import "cursor"; +} @media (prefers-reduced-motion: no-preference) { /*= Field Border ===========================================================*/ - @import "field_border"; + @include Option($fieldBorder) { + @import "field_border"; + } /*= Downloads Panel ========================================================*/ - @import "download_panel"; + @include Option($downloadPanel) { + @import "download_panel"; + } /*= Animate ================================================================*/ - @import "animate"; + @include Option($animate) { + @import "animate"; + } } diff --git a/src/utils/_option.scss b/src/utils/_option.scss index 2ff18a4..719ae73 100644 --- a/src/utils/_option.scss +++ b/src/utils/_option.scss @@ -9,6 +9,11 @@ $fullyColor: "userChrome.theme.fully_color"; $darkColor: "userChrome.theme.fully_dark"; $protonChrome: "userChrome.theme.proton_chrome"; +$cursor: "userChrome.decoration.cursor"; +$fieldBorder: "userChrome.decoration.field_border"; +$downloadPanel: "userChrome.decoration.download_panel"; +$animate: "userChrome.decoration.animate"; + @mixin Option($optionName) { @supports -moz-bool-pref("#{$optionName}") { @content; diff --git a/user.js b/user.js index cc0f0f6..be4fb83 100644 --- a/user.js +++ b/user.js @@ -45,6 +45,11 @@ user_pref("userChrome.theme.fully_color", true); user_pref("userChrome.theme.fully_dark", true); user_pref("userChrome.theme.proton_chrome", true); +user_pref("userChrome.decoration.cursor", true); +user_pref("userChrome.decoration.field_border", true); +user_pref("userChrome.decoration.download_panel", true); +user_pref("userChrome.decoration.animate", true); + // ** Useful Options *********************************************************** // Integrated calculator at urlbar user_pref("browser.urlbar.suggest.calculator", true);