From c6b0d611fc34e654926f2f08e9b641ed2c1ae59e Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Tue, 30 Jun 2020 16:29:40 +0300 Subject: [PATCH] Add iconized_menubar_items.css --- chrome/iconized_menubar_items.css | 23 +++++++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 chrome/iconized_menubar_items.css diff --git a/chrome/iconized_menubar_items.css b/chrome/iconized_menubar_items.css new file mode 100644 index 0000000..b1e76d6 --- /dev/null +++ b/chrome/iconized_menubar_items.css @@ -0,0 +1,23 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/iconized_menubar_items.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Replaces menubar items text ("File Edit etc.") with icons */ + +#main-menubar > menu{ + fill: currentColor; + height: 22px; + width: 32px; + -moz-context-properties: fill; + padding: 3px !important; + background-repeat: no-repeat; + background-position: center; +} +.menubar-text{ display: none } + +#file-menu{ background-image: url("chrome://devtools/skin/images/tool-storage.svg") } +#edit-menu{ background-image: url("chrome://browser/skin/customize.svg") } +#view-menu{ background-image: url("chrome://devtools/skin/images/command-frames.svg") } +#history-menu{ background-image: url("chrome://browser/skin/history.svg") } +#bookmarksMenu{ background-image: url("chrome://browser/skin/bookmark.svg") } +#tools-menu{ background-image: url("chrome://browser/skin/developer.svg") } +#helpMenu{ background-image: url("chrome://global/skin/icons/help.svg") } \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 133e10f..1adbb12 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -95,5 +95,6 @@ "vertical_context_navigation_v2.css":["navigation","menu","popup"], "vertical_menubar.css":["menubar","hack"], "window_control_placeholder_support.css":["window-control","patch"], -"hide_tabs_toolbar_osx.css":["tabs","toolbars","hiding","minimal"] +"hide_tabs_toolbar_osx.css":["tabs","toolbars","hiding","minimal"], +"iconized_menubar_items.css":["menubar","menu","icon"] } diff --git a/tags.csv b/tags.csv index 331f5d1..834e485 100644 --- a/tags.csv +++ b/tags.csv @@ -95,3 +95,4 @@ vertical_context_navigation_v2.css,navigation,menu,popup vertical_menubar.css,menubar,hack window_control_placeholder_support.css,window-control,patch hide_tabs_toolbar_osx.css,tabs,toolbars,hiding,minimal +iconized_menubar_items.css,menubar,menu,icon