-
Notifications
You must be signed in to change notification settings - Fork 973
Add font-awesome folder icon for folders on bookmarks toolbar and menus #1918
Conversation
@@ -157,6 +157,11 @@ class ContextMenuItem extends ImmutableComponent { | |||
style={iconStyle}></span> | |||
: null | |||
} | |||
{ | |||
this.hasSubmenu | |||
? <span className='submenuIndicator contextMenuIcon bookmarkIcon fa fa-folder-o' style={iconStyle} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word bookmark shouldn't be in this file since it's a general context menu file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to modify js/contextMenu.js
and look in bookmarkItemsInit
. That's where icons are set. If you find it is a folder you can add a new property like faIcon and then if it is specified inside js/compnents/contextMenu.js
you can use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I will
I'm trying to add bookmark icons in submenu, but can't :/ |
You were really close! Here's what I did that made it work: Feel free to either make the commit yourself or add my remote and then cherry pick this hash (I can help if you don't know how to do that) 😄 |
Thanks! It was a great help :-) |
OK I think it's ready. |
lgtm! 👍 |
git rebase -i
to squash commits if needed.Fix #1469
Image 1:
Please make sure that
@bookmarksIconSize: 16px;
is based onconst iconSize = 16
(here).I like the white icon better than
fa-folder
, which is a black icon.http://fontawesome.io/icon/folder/