Sublime Forum

Colored Emoji: Alpha Bug?

#1

I have a file with the following content:

Unquoted:πŸŒ΄πŸπŸ’‘
Quoted: "πŸŒ΄πŸπŸ’‘"

The colour the emoji are displayed in seems to depend on the selected syntax and color scheme.

If Plain Text, there is no colour.
image
If C, only the quoted emoji are coloured.
image
If Bash, it is all in colour.
image

What in the color scheme is controlling the emoji colour?


It turns out it was due to alpha in my foreground colour:

"foreground": "rgba(255, 255, 255, 0.9)"

An alpha of anything less the 0.999 fades the emoji almost completely out.
I suppose it is a bug that emoji do not have the correct amount of alpha applied. They seem to get (1.0-alpha) applied…

I changed the foreground to not have alpha:

"foreground": "rgb(230, 230, 230)"

Of course that means it will no longer tint with the background colour but that is better than faded emoji.

0 Likes

#2

What platform and version of ST are you using?

0 Likes

#3

Win10, ST4152

0 Likes