From d9685ac6bd9c63b7b42262fc04ffc0721b70b441 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Mon, 22 Aug 2022 14:57:50 +0900 Subject: [PATCH] Fix: Sound Tab - Apply `userChrome.tab.sound_show_label` preferentially --- css/leptonChrome.css | 6 ++++-- src/tab/_sound_tab.scss | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 67f7e5d..bf32cc0 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -6208,8 +6208,10 @@ /*= Sound Tab ================================================================*/ /*= Sound Tab - Hide Label ===================================================*/ @supports -moz-bool-pref("userChrome.tab.sound_hide_label") { - .tab-secondary-label:is([soundplaying], [muted], [activemedia-blocked], [pictureinpicture]) { - display: none !important; + @supports not -moz-bool-pref("userChrome.tab.sound_show_label") { + .tab-secondary-label:is([soundplaying], [muted], [activemedia-blocked], [pictureinpicture]) { + display: none !important; + } } } /*= Sound Tab - Show Label ===================================================*/ diff --git a/src/tab/_sound_tab.scss b/src/tab/_sound_tab.scss index 23ca831..6adad7b 100644 --- a/src/tab/_sound_tab.scss +++ b/src/tab/_sound_tab.scss @@ -1,6 +1,8 @@ /*= Sound Tab - Hide Label ===================================================*/ @include Option("userChrome.tab.sound_hide_label") { - @import "sound_tab/hide_label"; + @include NotOption("userChrome.tab.sound_show_label") { + @import "sound_tab/hide_label"; + } } /*= Sound Tab - Show Label ===================================================*/