Clean: SASS - use built in theme fn

This commit is contained in:
alstjr7375 2022-03-21 07:18:40 +09:00
parent 2cb29c4d26
commit aa7e85eb7b
3 changed files with 25 additions and 6418 deletions

View file

@ -1,19 +1,16 @@
// lwtheme-mozlightdark: Legacy - v96
/*= Lightmode - Color darker =================================================*/
:root[lwtheme-mozlightdark]:not([lwthemetextcolor="bright"]), /* Legacy */
:root[style*="--lwt-accent-color: rgb(240, 240, 244); --lwt-text-color: rgba(21, 20, 26);"] {
#{built-in-light-theme()} {
--lwt-accent-color: rgb(229, 229, 235) !important; /* Original: rgb(240, 240, 244) */
}
@include OS($win10, $mac) {
:root[lwtheme-mozlightdark]:not([lwthemetextcolor="bright"]) #navigator-toolbox, /* Legacy */
:root[style*="--lwt-accent-color: rgb(240, 240, 244); --lwt-text-color: rgba(21, 20, 26);"] {
#{selector.nest(built-in-light-theme(), "#navigator-toolbox")} {
background-color: var(--lwt-accent-color) !important;
}
}
/*= Darkmode - Color lighter =================================================*/
:root[lwtheme-mozlightdark][lwthemetextcolor="bright"], /* Legacy */
:root[style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"] {
#{built-in-dark-theme()} {
--toolbar-bgcolor: rgba(43, 42, 51, 5) !important; /* Original: rgba(43, 42, 51, 1) */
}

View file

@ -1,6 +1,8 @@
@use "utils/os" as *;
@use "utils/option" as *;
@use "utils/color_scheme" as *;
@use "utils/theme" as *;
@use "sass:selector";
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
@namespace html "http://www.w3.org/1999/xhtml";

File diff suppressed because it is too large Load diff