From 58191d7530e608a332a34d8ef4dd22a6732f2690 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Thu, 18 Jan 2024 16:30:20 +0800 Subject: [PATCH] update --- shell/lib-install.sh | 1 + src/other/firefox/common/parts/csd.css | 14 ++++++++------ src/other/firefox/common/parts/headerbar.css | 5 ----- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/shell/lib-install.sh b/shell/lib-install.sh index 16a3c4bf..ae41efd3 100755 --- a/shell/lib-install.sh +++ b/shell/lib-install.sh @@ -739,6 +739,7 @@ config_firefox() { echo "user_pref(\"browser.uidensity\", 0);" >> "${d}/prefs.js" echo "user_pref(\"layers.acceleration.force-enabled\", true);" >> "${d}/prefs.js" echo "user_pref(\"mozilla.widget.use-argb-visuals\", true);" >> "${d}/prefs.js" + echo "user_pref(\"widget.gtk.rounded-bottom-corners.enabled\", true);" >> "${d}/prefs.js" fi done } diff --git a/src/other/firefox/common/parts/csd.css b/src/other/firefox/common/parts/csd.css index 68b4f871..9961c6f8 100644 --- a/src/other/firefox/common/parts/csd.css +++ b/src/other/firefox/common/parts/csd.css @@ -7,16 +7,18 @@ #nav-bar { border-top-left-radius: 12px !important; border-top-right-radius: 12px !important; + box-shadow: var(--gnome-headerbar-box-shadow) !important; + } + + #nav-bar:-moz-window-inactive { + box-shadow: var(--gnome-inactive-headerbar-box-shadow) !important; } /* stylelint-disable-next-line media-query-no-invalid */ @media (-moz-bool-pref: "widget.gtk.rounded-bottom-corners.enabled") { - #nav-bar { - /* The body clip below covers this. */ - border-radius: 0 !important; - } - - body, dialog, + body, + dialog, + body::backdrop, dialog::backdrop { /* Use an uniform clip to allow WebRender to optimize it better */ border-radius: 12px !important; diff --git a/src/other/firefox/common/parts/headerbar.css b/src/other/firefox/common/parts/headerbar.css index 5ea8c508..0b4b3eae 100644 --- a/src/other/firefox/common/parts/headerbar.css +++ b/src/other/firefox/common/parts/headerbar.css @@ -9,11 +9,6 @@ /* Headerbar CSD colors */ :root[tabsintitlebar] #nav-bar { border: none !important; - border-bottom: none !important; - box-shadow: var(--gnome-headerbar-box-shadow) !important; -} -:root[tabsintitlebar] #nav-bar:-moz-window-inactive { - box-shadow: var(--gnome-inactive-headerbar-box-shadow) !important; } /* Headerbar buttons */