From 32e99d8d2084b973bc3174a18430dfcb8420fa60 Mon Sep 17 00:00:00 2001 From: rydesun Date: Mon, 23 Aug 2021 17:40:25 +0800 Subject: [PATCH] Fix shadow around firefox popup --- .config/picom/picom.conf | 4 +++- .mozilla/firefox/profile/chrome/userChrome.css | 7 +------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf index 400754d..b89b3c6 100644 --- a/.config/picom/picom.conf +++ b/.config/picom/picom.conf @@ -9,7 +9,9 @@ shadow-offset-y = -32 shadow-opacity = 0.24 shadow-exclude = [ - "class_g = 'Thunderbird' && argb" + "class_g = 'firefox' && window_type = 'utility'", + "class_g = 'Tor Browser' && window_type = 'utility'", + "class_g = 'Thunderbird' && window_type = 'utility'" ] ################################# diff --git a/.mozilla/firefox/profile/chrome/userChrome.css b/.mozilla/firefox/profile/chrome/userChrome.css index 1698b72..2b90aee 100644 --- a/.mozilla/firefox/profile/chrome/userChrome.css +++ b/.mozilla/firefox/profile/chrome/userChrome.css @@ -70,11 +70,6 @@ treechildren::-moz-tree-separator { display: none !important; } -/* 弹出的工具栏去除半透明阴影, 防止与picom阴影效果重复 */ -box.panel-arrowcontent { - margin: 0px !important; -} - /* 弹出工具栏 */ panelview#widget-overflow-mainView vbox.panel-subview-body { display: block !important; @@ -85,7 +80,7 @@ panelview#widget-overflow-mainView vbox#widget-overflow-fixed-list { flex-wrap: wrap !important; } panelview#widget-overflow-mainView vbox#widget-overflow-fixed-list toolbarbutton { - width: calc(100% / 8) !important; + width: calc(100% / 10) !important; height: 40px !important; } panelview#widget-overflow-mainView vbox#widget-overflow-fixed-list label.toolbarbutton-text {