themes icon indicating copy to clipboard operation
themes copied to clipboard

[Colour accuracy issue] doom-dark+ (vscode) theme too vibrant?

Open ianyepan opened this issue 4 years ago • 9 comments

In the screenshot below (Visual Studio Code left, Emacs right), we can see that the colours in Emacs are more vibrant than those in Visual Studio Code (use a colour-hex-detector if you find the differences too small), despite supposedly using the same theme. The vibrancy includes the green comments, the blue keywords and yellow functions etc. As if there has been a vibrancy filter that was masked over my Emacs interface and the contrast was tuned higher. @ema2159 Hi Emmanuel! I believe you were the original author of this port -- how did you fetch the official colours from VSCode? On second thought, it could potentially be the problem in how an 'electron' app renders the same colours though -- in which case it's not an issue of doom-themes at all.

Screenshot 2020-03-21 at 23 45 26

ianyepan avatar Mar 21 '20 15:03 ianyepan

That's a pretty good question. I would need to look further into it. As I remember, I got the colors from here: https://github.com/microsoft/vscode/blob/master/extensions/theme-defaults/themes/dark_plus.json Not only that file but some others inside that repo. All the colors seem right, except for the comments that seem a little bit off. I'll try to check what's going on

ema2159 avatar Mar 23 '20 12:03 ema2159

Thanks! For your reference, I'm on macOS Catalina using the default Colour LCD display profile.

ianyepan avatar Mar 23 '20 13:03 ianyepan

@ema2159 I came across the thread, might be of help for those interested: https://github.com/microsoft/vscode/issues/65816

ianyepan avatar Mar 27 '20 09:03 ianyepan

@ianpan870102 interesting, so it was Windows's VS Code fault all along?

ema2159 avatar Mar 27 '20 12:03 ema2159

The colour rendering issue has been found on macOS, Windows, and Linux platforms -- I think you meant "Microsoft's" VSCode fault right? That'd be my best guess too, since I double checked the colours defined in VSCode's theme and they are indeed not the right colours if I detect it system-wide. This doom-theme port has chosen the official colours of VSCode. My port of vscode-emacs theme (https://github.com/ianpan870102/vscode-dark-plus-emacs-theme) took the approach of hand-picking every colour using a colour picker directly from the UI, so you could say that it "looks" the most like VSCode, but it won't be the official colours -- since VSCode can't display their official colours either. Hope this makes sense.

ianyepan avatar Mar 27 '20 14:03 ianyepan

To conclude, the doom-theme "too vibrant" issue is actually how VSCode should look like.

ianyepan avatar Mar 27 '20 14:03 ianyepan

@ianpan870102 that's cool. So it seems VS Code has problems rendering colors properly who would've thought. Should we close the issue then?

ema2159 avatar Mar 30 '20 12:03 ema2159

Sure, I'll close this one.

ianyepan avatar Mar 30 '20 14:03 ianyepan

@ema2159 Hi there! So the other day I was having a look in Microsoft's vscode github repo and extracted these colours:

Official colors from Microsoft's Visual Studio Code:
"#DCDCAA"
"#4EC9B0"
"#C586C0"
"#9CDCFE"
"#51B6C4"
"#CE9178"
"#d16969"
"#d7ba7d"
"#569cd6"
"#C8C8C8"
"#d4d4d4"
"#b5cea8"
"#f44747"
"#6A9955"

It seems that they have "updated" their color scheme, because the red and magenta are consistent with the ones in doom-dark+, but the others (blue, teal, yellow, etc.) are not.

ianyepan avatar May 19 '20 14:05 ianyepan