From 73cf2fe3b33f6ec37175038aa849598097c3a0f9 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sat, 6 Mar 2021 07:07:32 +0200 Subject: [PATCH] create passive_tab_audio_label.css --- chrome/passive_tab_audio_label.css | 6 ++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 chrome/passive_tab_audio_label.css diff --git a/chrome/passive_tab_audio_label.css b/chrome/passive_tab_audio_label.css new file mode 100644 index 0000000..cf7ad01 --- /dev/null +++ b/chrome/passive_tab_audio_label.css @@ -0,0 +1,6 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/passive_tab_audio_label.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* For proton theme. Makes the audio "playing"/"muted" label not toggle muted state. The audio icon will still do so of course, but clicking the label will be just like clicking the tab itself. */ +.tab-icon-sound{ pointer-events: none } +.tab-icon-sound > image{ pointer-events: auto } \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 9c5bb77..149ea47 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -116,5 +116,6 @@ "vertical_popup_menubar.css":["menubar","menu","toolbars","popup"], "window_control_fallback_for_custom_windows_theme.css":["window-controls","buttons","colors","patch"], "window_control_placeholder_support.css":["window-control","patch"], -"buttonlike_toolbarbuttons.css":["buttons"] +"buttonlike_toolbarbuttons.css":["buttons"], +"passive_tab_audio_label.css":["tab","proton"] } diff --git a/tags.csv b/tags.csv index 0a4f284..f4348a7 100644 --- a/tags.csv +++ b/tags.csv @@ -116,3 +116,4 @@ vertical_popup_menubar.css,menubar,menu,toolbars,popup window_control_fallback_for_custom_windows_theme.css,window-controls,buttons,colors,patch window_control_placeholder_support.css,window-control,patch buttonlike_toolbarbuttons.css,buttons +passive_tab_audio_label.css,tab,proton