Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar icon issue99 (incomplete implementation) #105

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mariabg
Copy link

@mariabg mariabg commented Feb 12, 2018

Hello! I hardcoded customisation of the toolbar icon, and when I saw this issue opened and decided to implemented it properly, I couldn't get it working. Anyway, I wanted to send the code over for the shake of learning and contributing – I might be close to the answer 🙆.
In one hand, this code generates from the gulpfile the files with the wanted emoji for the toolbar and updates the icon on build, while on the other hand, an existing emoji can be chosen and it is stored on the popup.js. I could not find a way to export this value and/or to force the rebuild from the popup.js with this value (I'm not even sure if it'd be possible...).
Thanks for the repository and looking forward your answer!!

@johannhof
Copy link
Owner

Hey, sorry for the delayed response. As you might have guessed, the main problem is that we're not shipping icon files for all existing emoji (for most we're not even shipping individual images and just one big sprite).

If you have generated the icon files (like you've done for smiley) you can use browserAction.setIcon to set the correct icon.

I wouldn't really be on board with shipping icon files for all available emoji, but I'd happily take a PR that bundles a certain number of them (maybe 5 or 10) that the user can choose from...

The general direction of your code looks good, otherwise!

Thanks for your help! Please let me know if you have any other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants