Emojis in menu label

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Emojis in menu label

Mickael Istria-5
Hi all,

I've tried to place an emoji as 1st character a menu label on GTK, and happily found out it works well, just like an icon.
Emojis could then be a fully viable alternative to icons in many time; and as Eclipse Platform is also about deeper feeling of native, relying on emojis (provided by OS) whenever we can instead of creating new images can be a way to make Eclipse RCP apps and IDE feel more native regarding images.

But before I can start using them more widely, I wanted to know the state of emojis in Eclipse Platform on MacOS and WIndows:
Are they rendered well in editors? and in other widgets? and in menus?

Thanks in advance

--
Mickael Istria
Eclipse IDE developer, at Red Hat Developers community
Elected Committer Representative at the Eclipse Foundation board of directors

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|

Re: Emojis in menu label

Conrad Groth

Hi,

 

for Windows things get worse. SWT uses GDI for its widgets and GDI doesnโ€™t understand color fonts, so only the monochrome versions of emojis are displayed:

 

If you want to have colored emojis, you need DirectWrite (see https://msdn.microsoft.com/en-us/library/windows/desktop/mt765165(v=vs.85).aspx ).

 

This would cause a lot of work.

 

Regards

Conrad

 

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Mickael Istria
Gesendet: Dienstag, 12. Dezember 2017 11:11
An: Eclipse Platform UI component developers list.
Betreff: [platform-ui-dev] Emojis in menu label

 

Hi all,

I've tried to place an emoji as 1st character a menu label on GTK, and happily found out it works well, just like an icon.

Emojis could then be a fully viable alternative to icons in many time; and as Eclipse Platform is also about deeper feeling of native, relying on emojis (provided by OS) whenever we can instead of creating new images can be a way to make Eclipse RCP apps and IDE feel more native regarding images.

 

But before I can start using them more widely, I wanted to know the state of emojis in Eclipse Platform on MacOS and WIndows:

Are they rendered well in editors? and in other widgets? and in menus?

 

Thanks in advance


--

Mickael Istria

Eclipse IDE developer, at Red Hat Developers community

Elected Committer Representative at the Eclipse Foundation board of directors


_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|

Re: Emojis in menu label

Mickael Istria-5
Thanks Conrad.
Is anyone aware of an existing bug to support this in SWT for Windows, or should I create one?
On the long run, as I already mentioned, using emojis fits quite well in SWT spirit of feeling more native. So it could be a worthy enhancement.

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|

Re: Emojis in menu label

Wim Jongman-2
Can you share how you added the emoji?

On Wed, Dec 13, 2017 at 8:35 AM, Mickael Istria <[hidden email]> wrote:
Thanks Conrad.
Is anyone aware of an existing bug to support this in SWT for Windows, or should I create one?
On the long run, as I already mentioned, using emojis fits quite well in SWT spirit of feeling more native. So it could be a worthy enhancement.

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev


_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|

Re: Emojis in menu label

Mickael Istria-5
In some properties file (such as org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/messages.properties) which contains a menu label (such as Workbench_buildClean = Clea&n...), copy a cool emoji (such as ๐Ÿšฟ) into the label. The .properties editor is smart enough to convert it to a compatible encoding ( Workbench_buildClean = \uD83D\uDEBFClea&n... ), and try. Congrats, you now have a native icon provided by your OS for your action in your menu ;)

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|

Re: Emojis in menu label

Wim Jongman-2
Very cool.

I have tried to copy some emojis from here [1] to for example notepad and word. But they show up in black and white there as well.

[1] http://getemoji.com/

๐Ÿ™‹๐Ÿถ

Inline image 1



ย 

On Wed, Dec 13, 2017 at 3:22 PM, Mickael Istria <[hidden email]> wrote:
In some properties file (such as org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/messages.properties) which contains a menu label (such as Workbench_buildClean = Clea&n...), copy a cool emoji (such as ๐Ÿšฟ) into the label. The .properties editor is smart enough to convert it to a compatible encoding ( Workbench_buildClean = \uD83D\uDEBFClea&n... ), and try. Congrats, you now have a native icon provided by your OS for your action in your menu ;)

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev


_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|

Re: Emojis in menu label

Mickael Istria-5
Those are bugs to report to Notepad and Word developers.

So you also tried it on Eclipse IDE menus and saw black and white icons too? If so, I have one question for you: do you think it's better to have a black and white icon in a menu, or no icon? Do you feel we could start using emojis from now on, even without SWT on Windows not supporting colored ones; or is this black&white thing perceived as a blocker for wider usage of emojis?
Also, another deeper question: how much effort do we place in creating icons and exporting them to various sizes and so on and setting up scaling of images, compared to how much effort it would be to support colored emojis on Windows? If we find out emojis can solve many of our future use-cases, if may be profitable to make this investment in SWT/Windows port (which I have no clue how big it is ;).

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|

Re: Emojis in menu label

Wim Jongman-2
A lot of questions. I heard about them 10 minutes ago :)

Surely if they were to be used in Eclipse they should be full featured (e.g. color). Also, the place of the icon is not in the spot of the icon but the spot of the text.

I have made some tests in Windows. I am on the latest version of Windows. This is what it looks like:


โ€‹
ย 

On Wed, Dec 13, 2017 at 4:35 PM, Mickael Istria <[hidden email]> wrote:
Those are bugs to report to Notepad and Word developers.

So you also tried it on Eclipse IDE menus and saw black and white icons too? If so, I have one question for you: do you think it's better to have a black and white icon in a menu, or no icon? Do you feel we could start using emojis from now on, even without SWT on Windows not supporting colored ones; or is this black&white thing perceived as a blocker for wider usage of emojis?
Also, another deeper question: how much effort do we place in creating icons and exporting them to various sizes and so on and setting up scaling of images, compared to how much effort it would be to support colored emojis on Windows? If we find out emojis can solve many of our future use-cases, if may be profitable to make this investment in SWT/Windows port (which I have no clue how big it is ;).

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev


_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|

Re: Emojis in menu label

Conrad Groth

I had a short look into GTK3, which uses Cairo for drawing and Cairo also uses the Microsoft GDI API.

 

 

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Wim Jongman
Gesendet: Mittwoch, 13. Dezember 2017 20:18
An: Eclipse Platform UI component developers list.
Betreff: Re: [platform-ui-dev] Emojis in menu label

 

A lot of questions. I heard about them 10 minutes ago :)

 

Surely if they were to be used in Eclipse they should be full featured (e.g. color). Also, the place of the icon is not in the spot of the icon but the spot of the text.

I have made some tests in Windows. I am on the latest version of Windows. This is what it looks like:


โ€‹
 

 

On Wed, Dec 13, 2017 at 4:35 PM, Mickael Istria <[hidden email]> wrote:

Those are bugs to report to Notepad and Word developers.

 

So you also tried it on Eclipse IDE menus and saw black and white icons too? If so, I have one question for you: do you think it's better to have a black and white icon in a menu, or no icon? Do you feel we could start using emojis from now on, even without SWT on Windows not supporting colored ones; or is this black&white thing perceived as a blocker for wider usage of emojis?

Also, another deeper question: how much effort do we place in creating icons and exporting them to various sizes and so on and setting up scaling of images, compared to how much effort it would be to support colored emojis on Windows? If we find out emojis can solve many of our future use-cases, if may be profitable to make this investment in SWT/Windows port (which I have no clue how big it is ;).


_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev

 


_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|

Re: Emojis in menu label

Mickael Istria-5


On Wed, Dec 13, 2017 at 10:05 PM, Conrad Groth <[hidden email]> wrote:

I had a short look into GTK3, which uses Cairo for drawing and Cairo also uses the Microsoft GDI API.


Thanks for these tests and comments guys.
So unfortunately, we can't consider emojis as viable for Eclipse-based apps on Windows at the moment. I've opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=528749 .
If there are some thing that, even as a Linux user, one can do to help on this topic, feel free to create bugs and make me CC, it might be something I could work on (or get a colleague looking it).

Cheers,

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev