From 9c3e6918cf96cff40998a900c1c8deddf00f2c39 Mon Sep 17 00:00:00 2001 From: daijro Date: Thu, 19 Sep 2024 06:02:17 -0500 Subject: [PATCH] Fix context menu UI on light mode #9 --- settings/chrome.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/settings/chrome.css b/settings/chrome.css index 996b203..2184835 100644 --- a/settings/chrome.css +++ b/settings/chrome.css @@ -111,10 +111,17 @@ /* Context menu */ menupopup, panel { - --panel-background: black !important; --panel-border-radius: 0px !important; } +/* Set menu popups to black on dark mode */ +@media (prefers-color-scheme: dark) { + menupopup, + panel { + --panel-background: black !important; + } +} + /* * Items inside menu * menu, menuitem:where([_moz-menuactive]:not([disabled="true"])){