microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.51k stars 1.55k forks source link

C/C++ Theme "Dark (Visual Studio C/C++)" theme doesn't match the latest VS C++ colors #6108

Open sean-mcmanus opened 4 years ago

sean-mcmanus commented 4 years ago

See the screenshot comparison:

image

xiaoma20082008 commented 3 years ago

@sean-mcmanus Hello, I've got a new color error in the comment, see bellow: image

vscode version:

Version: 1.51.0
Commit: fcac248b077b55bae4ba5bab613fd6e9156c2f0c
Date: 2020-11-05T18:14:40.758Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 19.6.0
Colengms commented 3 years ago

Hi @xiaoma20082008 . This issue is tracking the need to make arbitrary changes to colors in a theme, and is not related to colorization bugs. Normally, I'd suggest opening a new issue for this, but I suspect this repro's with the C/C++ Extension disabled, and is by design.

The C/C++ Extension provides semantic colorization (colorization for tokens that require compilation to identify). VS Code itself still provides the underlying syntactic colorization (all colorization you see when the C/C++ Extension is disabled) using TextMate grammar rules. Those rules are contributed to VS Code from the repo here. Though, I believe you are seeing an intended feature related to use of /** vs. /* and documentation comments (perhaps Doxygen).

xiaoma20082008 commented 3 years ago

Thanks for your replying @Colengms The dark theme(Visual Studio C/C++) is my default theme and the C/C++ Extension is enabled, but it's also appearing. Why I commented here is that I checked the issues then found this issue is similar to my case but I'm not sure if other user had open a same issue or a new future also I'm not sure whether it's a bug .

ps: I tried the TextMate c/c++ color, and it works wrong too.

BlueStaggo commented 3 years ago

This is the reason why I have made an updated version of the theme. Here's a comparison between the current theme (probably based off of VS2017) and my theme (based off of VS2019 16.9):

Dark

C / C++ Extension

image

Recreation of VS2019

image

Light

C / C++ Extension

image

Recreation of VS2019

image

There is an obvious difference between these themes. If you want to use my version, get it here. Feel free to tweak it all you want, as this may not be fully accurate. In fact, you can leave the current theme in and add in my theme alongside it.

BlueStaggo commented 3 years ago

Note: I said this theme may not be fully accurate, and that might be true for the pragmas. Just set meta.preprocessor to the default foreground colour. That is probably what it looks like in Visual Studio.

j824h commented 1 year ago

Somehow this issue remained open, and now https://github.com/microsoft/vscode/issues/179688 makes this relevant again.

So can we merge those Modern themes here? What was the procedure, back in 2021 @BlueStaggo?

sean-mcmanus commented 1 year ago

@j824h I don't know how https://github.com/microsoft/vscode/issues/179688 is related -- that is a change to the VS Code themes and this issue is about the C/C++ Theme extension and the VS C++ themes. Maybe there are VS Code related theme changes that impact our theme? Can you provide examples?

j824h commented 1 year ago

Oh, I had to look at the title carefully to see that this is about VS C++. It just has been my inaccurate assumption that the update was to follow the VS Code default theme.

So there is not an official connection that Microsoft makes between the themes for the two products, is that right? The design can flow back and forth at some points following the trend, maybe that was all.

sean-mcmanus commented 1 year ago

Yeah, the design of the C/C++ Theme was intended to match VS and not VS Code. Our team hasn't been tracking the theme changes being made by VS Code. If they've made some theme improvement that you believe the C/C++ theme should react to then we could consider that.