From 5575800d2a8092598b84d100bb10a414e0e2f820 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 2 May 2021 11:56:40 +0300 Subject: [PATCH] create iconized_main_menu.css --- chrome/iconized_main_menu.css | 26 ++++++++++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 chrome/iconized_main_menu.css diff --git a/chrome/iconized_main_menu.css b/chrome/iconized_main_menu.css new file mode 100644 index 0000000..80a462d --- /dev/null +++ b/chrome/iconized_main_menu.css @@ -0,0 +1,26 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/iconized_main_menu.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Adds icons to main menu items which were removed in Proton */ + +#appMenu-protonMainView > .panel-subview-body > toolbarbutton > image{ + fill: currentColor; + -moz-context-properties: fill; + margin-inline: 0 8px !important; +} +#appMenu-new-tab-button2{ list-style-image: url("chrome://browser/skin/new-tab.svg") } +#appMenu-new-window-button2{ list-style-image: url("chrome://browser/skin/window.svg") } +#appMenu-new-private-window-button2{ list-style-image: url("chrome://browser/skin/privateBrowsing.svg") } +#appMenu-bookmarks-button{ list-style-image: url("chrome://browser/skin/bookmark-star-on-tray.svg") } +#appMenu-history-button{ list-style-image: url("chrome://browser/skin/history.svg") } +#appMenu-downloads-button{ list-style-image: url("chrome://browser/skin/downloads/download-icons.svg#arrow-with-bar") } +#appMenu-passwords-button{ list-style-image: url("chrome://global/skin/icons/security.svg") } +#appMenu-extensions-themes-button{ list-style-image: url("chrome://mozapps/skin/extensions/extension.svg") } +#appMenu-print-button2{ list-style-image: url("chrome://global/skin/icons/print.svg") } +#appMenu-save-file-button2{ list-style-image: url("chrome://browser/skin/save.svg") } +#appMenu-find-button2{ list-style-image: url("chrome://global/skin/icons/search-glass.svg") } +#appMenu-settings-button{ list-style-image: url("chrome://global/skin/icons/settings.svg") } +#appMenu-more-button2{ list-style-image: url("chrome://browser/skin/developer.svg") } +#appMenu-help-button2{ list-style-image: url(chrome://global/skin/icons/info.svg) } + +#appMenu-zoom-controls2{ border-top: 1px solid var(--panel-separator-color) !important; } \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 31fb703..00a13b0 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -123,5 +123,6 @@ "vertical_popup_menubar.css":["menubar","menu","toolbars","popup"], "window_control_fallback_for_custom_windows_theme.css":["window-control","buttons","colors","patch"], "window_control_placeholder_support.css":["window-control","patch"], -"tab_separator_lines.css":["tab","proton"] +"tab_separator_lines.css":["tab","proton"], +"iconized_main_menu.css":["icon","popup","menu","proton"] } diff --git a/tags.csv b/tags.csv index b6a5167..fe71ba2 100644 --- a/tags.csv +++ b/tags.csv @@ -123,3 +123,4 @@ vertical_popup_menubar.css,menubar,menu,toolbars,popup window_control_fallback_for_custom_windows_theme.css,window-control,buttons,colors,patch window_control_placeholder_support.css,window-control,patch tab_separator_lines.css,tab,proton +iconized_main_menu.css,icon,popup,menu,proton