From 64185571b62183b09b78937f5c04e7927891bd7a Mon Sep 17 00:00:00 2001 From: jvabn Date: Sat, 3 May 2025 13:19:25 -0700 Subject: [PATCH 1/2] Minor tweaks to sound icon sizing; hid new default sound icon --- .../chrome.css | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/themes/5c4d7772-d963-4672-ab03-e9d541438881/chrome.css b/themes/5c4d7772-d963-4672-ab03-e9d541438881/chrome.css index a5e95b6e..6ca691cd 100644 --- a/themes/5c4d7772-d963-4672-ab03-e9d541438881/chrome.css +++ b/themes/5c4d7772-d963-4672-ab03-e9d541438881/chrome.css @@ -1,10 +1,15 @@ :root { --bmb-sound-icon-scale: 1.5; - --bmb-sound-icon-scale-essentials: 1.28; + --bmb-sound-icon-scale-essentials: 1.26; --bmb-sound-icon-scale-glance: 1.15; } /* ================== General ================== */ +/* Hide firefox sound button */ +.tab-audio-button { + display: none !important; +} + /* Tab icon overlay styles */ .tab-icon-overlay { border: none !important; @@ -12,7 +17,7 @@ background-color: transparent !important; transition: 0.2s; - &:is([soundplaying], [muted], [activemedia-blocked]):not([selected]) { + &:is([soundplaying], [muted], [activemedia-blocked]) { display: block !important; } } @@ -58,7 +63,7 @@ & .tab-icon-overlay, & .tab-icon-stack { &:is([soundplaying], [muted], [activemedia-blocked]) { - transform: translate(20%, 24%) + transform: translate(20%, 25%) scale(var(--bmb-sound-icon-scale-essentials)) !important; display: block !important; /* Remove extra margin created for vanilla icons */ @@ -84,8 +89,7 @@ & .tab-icon-overlay, & .tab-icon-stack { &:is([soundplaying], [muted], [activemedia-blocked]) { - transform: translate(-10%, 25%) - scale(var(--bmb-sound-icon-scale-glance)) !important; + transform: translate(-8%, 25%) scale(var(--bmb-sound-icon-scale-glance)) !important; display: block !important; margin: 0px !important; } @@ -93,7 +97,7 @@ } } -/* ================== Zen glance tab (pinned and essentials) ================== */ +/* ================== Zen glance tab (pinned tabs) ================== */ #navigator-toolbox[zen-sidebar-expanded] #tabbrowser-tabs .tabbrowser-tab[zen-glance-tab] { @@ -104,7 +108,7 @@ & .tab-icon-overlay { &:is([soundplaying], [muted], [activemedia-blocked]) { margin: 0px !important; - transform: translate(-35%, 25%) scale(var(--bmb-sound-icon-scale-glance)) !important; + transform: translate(-30%, 25%) scale(var(--bmb-sound-icon-scale-glance)) !important; display: block !important; } } From c6e63df5957f204fa9c89a83de936128be451da8 Mon Sep 17 00:00:00 2001 From: jvabn Date: Wed, 7 May 2025 15:23:47 -0700 Subject: [PATCH 2/2] Minor adjustment of position of glance tab sound icon --- themes/5c4d7772-d963-4672-ab03-e9d541438881/chrome.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/5c4d7772-d963-4672-ab03-e9d541438881/chrome.css b/themes/5c4d7772-d963-4672-ab03-e9d541438881/chrome.css index 6ca691cd..5d47960b 100644 --- a/themes/5c4d7772-d963-4672-ab03-e9d541438881/chrome.css +++ b/themes/5c4d7772-d963-4672-ab03-e9d541438881/chrome.css @@ -108,7 +108,7 @@ & .tab-icon-overlay { &:is([soundplaying], [muted], [activemedia-blocked]) { margin: 0px !important; - transform: translate(-30%, 25%) scale(var(--bmb-sound-icon-scale-glance)) !important; + transform: translate(-35%, 25%) scale(var(--bmb-sound-icon-scale-glance)) !important; display: block !important; } }