From ed43d04b8e8031a4177954e6b3dcdd231fa85331 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Sat, 16 Apr 2022 23:26:52 +0900 Subject: [PATCH] Add: Option - `userChrome.compatibility.os.linux_non_native_titlebar_button` --- src/compatibility/_os.scss | 28 +++++++++++++++------------- user.js | 2 ++ userChrome.css | 28 +++++++++++++++------------- 3 files changed, 32 insertions(+), 26 deletions(-) diff --git a/src/compatibility/_os.scss b/src/compatibility/_os.scss index 416a4bd..16d0606 100644 --- a/src/compatibility/_os.scss +++ b/src/compatibility/_os.scss @@ -121,19 +121,21 @@ } /*= Linux - Titlebar button at lwtheme =====================================*/ - .titlebar-button:-moz-lwtheme { - appearance: auto !important; - } - .titlebar-min:-moz-lwtheme, - .titlebar-max:-moz-lwtheme, - .titlebar-restore:-moz-lwtheme, - .titlebar-close:-moz-lwtheme { - list-style-image: none !important; - } - .titlebar-button:-moz-lwtheme:hover, - .titlebar-button:-moz-lwtheme:hover:active { - background-color: unset !important; - color: unset !important; + @include NotOption("userChrome.compatiblity.os.linux_non_native_titlebar_button") { + .titlebar-button:-moz-lwtheme { + appearance: auto !important; + } + .titlebar-min:-moz-lwtheme, + .titlebar-max:-moz-lwtheme, + .titlebar-restore:-moz-lwtheme, + .titlebar-close:-moz-lwtheme { + list-style-image: none !important; + } + .titlebar-button:-moz-lwtheme:hover, + .titlebar-button:-moz-lwtheme:hover:active { + background-color: unset !important; + color: unset !important; + } } } diff --git a/user.js b/user.js index 7d2c08e..1c996ef 100644 --- a/user.js +++ b/user.js @@ -59,6 +59,8 @@ user_pref("userChrome.tab.bottom_rounded_corner", true); // user_pref("userChrome.compatibility.navbar_top_border", true); // user_pref("userChrome.compatibility.dynamic_separator", true); // Need dynamic_seperator +// user_pref("userChrome.compatiblity.os.linux_non_native_titlebar_button", true); + // == Theme Custom Settings ==================================================== // -- User Chrome -------------------------------------------------------------- // user_pref("userChrome.decoration.disable_panel_animate", true); diff --git a/userChrome.css b/userChrome.css index bdab54c..28036f6 100644 --- a/userChrome.css +++ b/userChrome.css @@ -273,21 +273,23 @@ } /*= Linux - Titlebar button at lwtheme =====================================*/ - .titlebar-button:-moz-lwtheme { - appearance: auto !important; - } + @supports not -moz-bool-pref("userChrome.compatiblity.os.linux_non_native_titlebar_button") { + .titlebar-button:-moz-lwtheme { + appearance: auto !important; + } - .titlebar-min:-moz-lwtheme, - .titlebar-max:-moz-lwtheme, - .titlebar-restore:-moz-lwtheme, - .titlebar-close:-moz-lwtheme { - list-style-image: none !important; - } + .titlebar-min:-moz-lwtheme, + .titlebar-max:-moz-lwtheme, + .titlebar-restore:-moz-lwtheme, + .titlebar-close:-moz-lwtheme { + list-style-image: none !important; + } - .titlebar-button:-moz-lwtheme:hover, - .titlebar-button:-moz-lwtheme:hover:active { - background-color: unset !important; - color: unset !important; + .titlebar-button:-moz-lwtheme:hover, + .titlebar-button:-moz-lwtheme:hover:active { + background-color: unset !important; + color: unset !important; + } } } /*= Linux - Light System Default Theme's Selected Tab ========================*/