livemarks icon indicating copy to clipboard operation
livemarks copied to clipboard

[Request] Additional tag or different icon for rss/feed folders

Open Aris-t2 opened this issue 7 years ago • 12 comments

At the moment there is no visual difference between default bookmark folder icons and a rss/feed folder icons.

Please add a different icon to feed folders or at least an exclusive tag, so the folder can be determined by CSS and manually styled in userChrome.css.

Aris-t2 avatar Oct 29 '18 17:10 Aris-t2

Bookmark tags are currently not changeable via the WE API. There's currently a bug filed about it: https://bugzilla.mozilla.org/show_bug.cgi?id=1225916

Icons can't be changed either.

I guess the best I can do here is add support for some kind of title prefix for the bookmark folder ?

nt1m avatar Oct 29 '18 17:10 nt1m

Thanks for the answer.

So for now we only can achieve something like this with custom code based on folder label in userChrome.css:

.bookmark-item[label="label_of_feed_folder"] .toolbarbutton-icon {
  list-style-image: url("path_to_icon") !important;
}

Aris-t2 avatar Oct 29 '18 17:10 Aris-t2

in userChrome.css 👍

#bookmarks-view treechildren::-moz-tree-image(container), #PlacesToolbarItems toolbarbutton[container="true"], #PlacesToolbarItems menu[container="true"] .menu-iconic-left, #BMB_bookmarksPopup menu[container="true"] .menu-iconic-icon, #bookmarksMenu menu[container="true"] .menu-iconic-icon, .bookmark-item[container] { list-style-image: url("folder5.svg") !important; /* place svg file in the same folder of the css */ }

replace folder5.svg by this:

rss2 https://github.com/GrosBourrin/FIREFOX-BLUE-MOON/blob/master/rss%20svg4.svg rss1 https://github.com/GrosBourrin/FIREFOX-BLUE-MOON/blob/master/rss3.svg

right click on link then save target link

you can edit svg files with gravit from gravit.io

GrosBourrin avatar Dec 27 '18 22:12 GrosBourrin

@GrosBourrin Doing this will override all bookmark folders, not just those of rss feeds.

Better to insert rss feed folder names manually to not override other folders like shown in this example:

.bookmark-item[container="true"]:-moz-any([label="rssfeed_name1"],[label="rssfeed_name2"],[label="rssfeed_name3"],[label="rssfeed_name4"]) {
  list-style-image: url("./rss.svg") !important;
  -moz-image-region: rect(0, 16px, 16px, 0) !important;
}

Aris-t2 avatar Dec 28 '18 15:12 Aris-t2

@Aris-t2 well that's not work with Livemarks addon on Firefox 64.0 !

GrosBourrin avatar Dec 28 '18 21:12 GrosBourrin

I'm using Livemarks 1.14 on Fx 65b7. Livemarks are on my bookmarks toolbar and the labels match those in my code.

1

Aris-t2 avatar Dec 28 '18 21:12 Aris-t2

i trust you but when i add your code, it doesn't work for me :/ i think i'm loosing something , i share you my userChrome - line 1130 to 1142 on vscode. help me to see what's wrong please. my code is a bit of this and that, catched from some websites adapted bt myself

userChrome.zip

GrosBourrin avatar Dec 29 '18 02:12 GrosBourrin

i trust you but when i add your code after set my lines between /*...*/ of course , it doesn't work for me :/ i think i'm loosing something , i share you my userChrome - line 1130 to 1142 on vscode. help me to see what's wrong please. my code is a bit of this and that, catched from some websites adapted bt myself. I'm on FF 64 x64 on windows 10. they're overiden to do the same at menus and sidepanel icons

userChrome.zip

GrosBourrin avatar Dec 29 '18 02:12 GrosBourrin

You wrote ".bookmarks-item" instead of ".bookmark-item". ;-)

Aris-t2 avatar Dec 29 '18 09:12 Aris-t2

i know, i fixed that but nothing more

GrosBourrin avatar Dec 29 '18 11:12 GrosBourrin

Only test the code for livemarks without the your other code.

Aris-t2 avatar Dec 29 '18 17:12 Aris-t2

It works but can't modify the classic folder icons in bookmarks bar. neither in sidebar :/ only the Livemarked ones. i think i have to rewrite the code for that but i don't know how... i lack of skill in css....

GrosBourrin avatar Dec 29 '18 20:12 GrosBourrin