From 887b1eac660fc66168b4f3f5e5332f052d6bd468 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Mon, 5 Jul 2021 16:37:11 +0900 Subject: [PATCH] Add: Fully Theme Mode - Menu color --- userChrome.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/userChrome.css b/userChrome.css index e6d6e4f..e3f74da 100644 --- a/userChrome.css +++ b/userChrome.css @@ -72,6 +72,25 @@ } /* Fully Theme Mode *********************************************************/ + /* Default Themes + https://github.com/mozilla/gecko-dev/blob/master/toolkit/mozapps/extensions/default-theme/manifest.json + https://github.com/mozilla/gecko-dev/blob/master/browser/themes/addons/light/manifest.json + https://github.com/mozilla/gecko-dev/blob/master/browser/themes/addons/dark/manifest.json + */ + + /*== Menu color ===========================================================*/ + :root { + /* is same as toolbar color https://github.com/mozilla/gecko-dev/blob/master/toolkit/themes/windows/global/global.css#L17-L67 */ + --menu-color: var(--toolbar-color) !important; + --menu-background-color: var(--toolbar-bgcolor) !important; + + --menu-border-color: var(--toolbarbutton-active-background, var(--button-active-bgcolor)) !important; + --menuitem-hover-background-color: var(--toolbarbutton-hover-background, var(--button-hover-bgcolor)) !important; + + --menu-disabled-color: color-mix(in srgb, var(--toolbar-color) 40%, transparent) !important; + --menuitem-disabled-hover-background-color: color-mix(in srgb, var(--menuitem-hover-background-color) 40%, transparent) !important; + } + /*= Notification ===========================================================*/ @-moz-document url("chrome://global/content/alerts/alert.xhtml") { /* line below removes background from the notification "window" on linux */