From cc2902242c6bbfa9db0595f708ad616da73e0dd6 Mon Sep 17 00:00:00 2001 From: Gerome Matilla Date: Sun, 16 Aug 2020 16:20:18 +0800 Subject: [PATCH] add css variable for mainwindow bg color --- userChrome.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/userChrome.css b/userChrome.css index 763208d..5860c5d 100644 --- a/userChrome.css +++ b/userChrome.css @@ -36,6 +36,7 @@ /* Light Mode */ :root:-moz-lwtheme-darktext { + --bf-main-window: transparent; --bf-bg: #F2F2F266; --bf-color: #0A0A0A; @@ -59,6 +60,7 @@ /* Dark Mode */ :root:-moz-lwtheme-brighttext { + --bf-main-window: transparent; --bf-bg: #00000066; --bf-color: #F2F2F2; @@ -95,7 +97,7 @@ Main window /* Add transparency to light and dark color schemes */ #main-window:-moz-lwtheme-brighttext, #main-window:-moz-lwtheme-darktext { - background: transparent !important; + background: var(--bf-main-window) !important; -moz-appearance: var(--bf-moz-appearance) !important; }