From 3a10a22d2141f431f220492494486bbe7430c348 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Wed, 7 Jun 2023 19:57:37 +0800 Subject: [PATCH] Fixed Firefox 114.0 theme issues --- src/other/firefox/WhiteSur/parts/tabsbar.css | 4 ++++ src/other/firefox/common/parts/popups.css | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/other/firefox/WhiteSur/parts/tabsbar.css b/src/other/firefox/WhiteSur/parts/tabsbar.css index 0dcf55e..e05538d 100644 --- a/src/other/firefox/WhiteSur/parts/tabsbar.css +++ b/src/other/firefox/WhiteSur/parts/tabsbar.css @@ -316,6 +316,10 @@ tab[selected]:-moz-window-inactive { transition: all 200ms; } +.tab-background, .tab-stack { + min-height: 32px !important; +} + /* Tab hover */ #TabsToolbar .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) { background-color: var(--gnome-tabbar-tab-active-hover-background) !important; diff --git a/src/other/firefox/common/parts/popups.css b/src/other/firefox/common/parts/popups.css index 921866f..c42d739 100644 --- a/src/other/firefox/common/parts/popups.css +++ b/src/other/firefox/common/parts/popups.css @@ -47,10 +47,23 @@ menuitem, menupopup menu { box-shadow: none !important; } -menuitem[type="checkbox"] image, menuitem[type="radio"] image { +menuitem[type="checkbox"] image, +menuitem[type="radio"] image { visibility: visible !important; } +@media (-moz-gtk-non-native-menus) or (-moz-non-native-content-theme) { + menuitem:is([type="checkbox"], [checked="true"]) .menu-iconic-icon { + appearance: none !important; + -moz-default-appearance: none !important; + } + + menuitem[type="radio"] .menu-iconic-icon { + appearance: none !important; + -moz-default-appearance: none !important; + } +} + menuitem[disabled="true"], menupopup menu[disabled="true"], menuitem[disabled="true"]:hover,