DEV Community

loading...

Discussion on: What was your win this week?

Collapse
glennmen profile image
Glenn Carremans

I just finished adding skin tone support to this awesome emoji Alfred workflow!
It was my first time working on an Alfred workflow and I had a lot of fun.

Added skin tone option #38

Glennmen avatar
Glennmen commented on Apr 03, 2020
  • Default no skin tone (keep same behaviour)
  • Added environment variable to change skin tone (0, 1, 2 ,3, 4)
  • Added shift modifier to copy emoji without skin tone

fixes #31

This was my first time working on an Alfred workflow 😅 but it was a lot of fun. I am open for feedback.

First credits to github.com/muan/mojibar for inspiration how to add skin tone to an emoji. Also there are a lot of emoji that should support skin tone but the emojilib is a little out of date it seems. Hopefully it will get updated soon. I also didn't know if I should add skin tone to Copy code :+1:, I couldn't find any information if there is any spec for this or if every app implements this in their own format.

For now I used an environment variable skin_tone, but a good next improvement would be adding a new Alfred command to change skin tone.