Add: Option - decorations

This commit is contained in:
alstjr7375 2021-12-29 15:40:50 +09:00
parent 3892de12c6
commit 2f9127689a
3 changed files with 22 additions and 4 deletions

View file

@ -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";
}
}

View file

@ -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;

View file

@ -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);