From ca1ff8ba07653b2eddd36f91091fe8b0a330a85a Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sat, 20 Feb 2021 19:09:38 +0200 Subject: [PATCH] create privatemode_indicator_as_menu_button.css --- chrome/privatemode_indicator_as_menu_button.css | 9 +++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 chrome/privatemode_indicator_as_menu_button.css diff --git a/chrome/privatemode_indicator_as_menu_button.css b/chrome/privatemode_indicator_as_menu_button.css new file mode 100644 index 0000000..a9a77fc --- /dev/null +++ b/chrome/privatemode_indicator_as_menu_button.css @@ -0,0 +1,9 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/privatemode_indicator_as_menu_button.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Removes the private-browsing-mode indicator from tabs toolbar and changes the menu-button icon to the private-browsing indicator in private windows */ + +.private-browsing-indicator{ display: none } +:root[privatebrowsingmode="temporary"] #PanelUI-menu-button{ + list-style-image: url("chrome://browser/skin/private-browsing.svg") !important; +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 49b8358..eed76c2 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -113,5 +113,6 @@ "custom_menupopup_check_icons.css":["icon","menu","minimal","popup"], "show_toolbars_in_popup_windows.css":["toolbars","popup"], "centered_tab_content.css":["tab","icon"], -"window_control_fallback_for_custom_windows_theme.css":["window-controls","buttons","colors","patch"] +"window_control_fallback_for_custom_windows_theme.css":["window-controls","buttons","colors","patch"], +"privatemode_indicator_as_menu_button.css":["icon","buttons"] } diff --git a/tags.csv b/tags.csv index a178750..58dd06c 100644 --- a/tags.csv +++ b/tags.csv @@ -113,3 +113,4 @@ custom_menupopup_check_icons.css,icon,menu,minimal,popup show_toolbars_in_popup_windows.css,toolbars,popup centered_tab_content.css,tab,icon window_control_fallback_for_custom_windows_theme.css,window-controls,buttons,colors,patch +privatemode_indicator_as_menu_button.css,icon,buttons