From 3f5bc73e69e2d312dd4279a0b2791eb58f6464cb Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 31 Aug 2022 15:58:48 +0300 Subject: [PATCH] Remove dependence on --menu-x variables Firefox 105 won't have these anymore as per https://bugzilla.mozilla.org/show_bug.cgi?id=1782858 --- chrome/menulike_bookmarks_folder_popups.css | 2 +- chrome/menupopup_forced_color_schemes.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/menulike_bookmarks_folder_popups.css b/chrome/menulike_bookmarks_folder_popups.css index 32f9b2e..726a847 100644 --- a/chrome/menulike_bookmarks_folder_popups.css +++ b/chrome/menulike_bookmarks_folder_popups.css @@ -6,7 +6,7 @@ See the above repository for updates as well as full license text. */ menupopup[placespopup="true"]{ padding: 0 !important; margin: 0 !important; - --arrowpanel-background: var(--menu-background-color) !important; + --arrowpanel-background: var(--menu-background-color,Menu) !important; border-radius: var(--panel-border-radius) !important; } .menupopup-arrowscrollbox{ diff --git a/chrome/menupopup_forced_color_schemes.css b/chrome/menupopup_forced_color_schemes.css index 51e8a35..93213b7 100644 --- a/chrome/menupopup_forced_color_schemes.css +++ b/chrome/menupopup_forced_color_schemes.css @@ -14,6 +14,8 @@ See the above repository for updates as well as full license text. */ @supports -moz-bool-pref("userchrome.menupopups.force-light"){ menupopup{ + color-scheme: light !important; + /* variables for pre-fx105 */ --menuitem-hover-background-color: #e0e0e6 !important; --menu-background-color: #f9f9fb !important; --menu-color: #15141a !important; @@ -25,6 +27,8 @@ See the above repository for updates as well as full license text. */ } @supports -moz-bool-pref("userchrome.menupopups.force-dark"){ menupopup{ + color-scheme: dark !important; + /* variables for pre-fx105 */ --menuitem-hover-background-color: #52525e !important; --menu-background-color: #2b2a33 !important; --menu-color: #fbfbfe !important;