3

I am not a fan of the bookmarks folder colors in Firefox 57 default theme:

enter image description here

In prior version the folders were colored in vanilla color:

enter image description here

Is there anyway to get that color back in Firefox 57?

Nemo
  • 1,151
AngryHacker
  • 19,327

4 Answers4

2

Another way, also based on userChrome.css:

/* Colored folders for bookmark sidebar, toolbar, menu button */
  /* Standard folder */
#bookmarks-view treechildren::-moz-tree-image(container),
#PlacesToolbarItems toolbarbutton[container="true"] .toolbarbutton-icon,
#PlacesToolbarItems menu[container="true"] .menu-iconic-left,
#BMB_bookmarksPopup menu[container="true"] .menu-iconic-icon {
  fill: #e8bb00 !important; /* slightly muted gold */
}
  /* Live Bookmark (RSS Feed) */
#bookmarks-view treechildren::-moz-tree-image(container, livemark),
#PlacesToolbarItems toolbarbutton[container="true"][livemark="true"] .toolbarbutton-icon,
#PlacesToolbarItems menu[container="true"][livemark="true"] .menu-iconic-left,
#BMB_bookmarksPopup menu[container="true"][livemark="true"] .menu-iconic-icon {
  fill: orange !important;
}
  /* Smart bookmark folder */
#bookmarks-view treechildren::-moz-tree-image(container, query),
#PlacesToolbarItems toolbarbutton[container="true"][query="true"] .toolbarbutton-icon,
#PlacesToolbarItems menu[container="true"][query="true"] .menu-iconic-left,
#BMB_bookmarksPopup menu[container="true"][query="true"] .menu-iconic-icon {
  fill: #69c !important; /* similar to blue smart folder color */
}
  /* These "containers" are SVG in the sidebar, not yet on the menu */
#bookmarks-view treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksMenu) {
  fill: olive !important;
}
#bookmarks-view treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksToolbar) {
  fill: olive !important;
}
#bookmarks-view treechildren::-moz-tree-image(container, OrganizerQuery_UnfiledBookmarks) {
  fill: olive !important;
}

This solution comes from here.

More generally, userchrome.org seems to be a valuable source of information (and recipes) about userChrome.css.

phuclv
  • 30,396
  • 15
  • 136
  • 260
zezollo
  • 131
2
  1. Download this archive and extract all contents into firefox's chrome folder (%APPDATA%\Mozilla\Firefox\Profiles\<your-profile>\chrome (create if it doesnt exist))

  2. If you don't have a userChrome.css file, rename userChrome-STARTER.css to userChrome.css. If you do, copy the line from userChrome-STARTER.css to the top of your userChrome.css file.

  3. Restart firefox, you will now have the old folders back.

Source

confetti
  • 2,605
1

According to this Reddit post:

You can load custom images by adding this to your userchrome:

.bookmark-item[container] { list-style-image: url( /* url goes here */ ); }

Easiest way of using custom images is using a base64 encode string as the url. Here's a monochrome chrome icon as an example: https://pastebin.com/mF3EpcFu

You can use something like www.base64-image.de to convert your own files into base64.

1
  1. I took the 200px version of https://commons.wikimedia.org/wiki/File:Icons8_flat_folder.svg:

    https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Icons8_flat_folder.svg/200px-Icons8_flat_folder.svg.png

  2. Changed the size to 50px and added a gradient:

    enter image description here

  3. Converted it to Base64 at https://www.base64-image.de/.

  4. Added this to <FF profile folder>/chrome/userChrome.css:

    /* From: https://superuser.com/questions/1268367/how-to-get-back-the-vanilla-bookmarks-folder-color-in-firefox-57/1348373#1348373 */
    
    .bookmark-item[container]
        {
        list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAABJ0AAASdAHeZh94AAAAB3RJTUUH4QgTBiMo7IFyHgAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4yMfEgaZUAAAMWSURBVGhD7ZNLTxRBFIU7xhW6MDiRnSTKOPMXdOcef4hbf4EL3bBjbQKEuIGNgcTEnQsJ85D3zPCSx2SYACIgvnWw63pqUmUqlaruLhhCLfokX27VrTqde6YgSJUqVapUqS5CraHgARsJBtlwMEYjwXgcuDvKRoNbwu6HwuHgOQZjGJBcYENB1Zswp0PBI9OQScEL+hEGLzFpGtCF9su8CHrEJy9H+EUr7YFeXiWauEH0OnMm2JueGpVyTzsFm7r7hN7duS3GjB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