vscode icon indicating copy to clipboard operation
vscode copied to clipboard

[themes] More colorful default theme - Feedback

Open aeschli opened this issue 10 years ago • 23 comments

The light and dark themes have recently been in the center of attention due to colors being added and removed again.

More colors became visible due to the update of tokenizers in November. In December we decided to remove these again, to stay in sync with the classic Visual Studio Dark and Light themes.

From reactions in #1270 and #1470 and other issues, we learned that we have fans of both the classic Visual Studio dark and light themes as well as the more colorful version, e.g., from comment

The Dark and Light default themes were very nice in 0.10.3, I'm already missing them.

So we decided to bring the colors back in new themes, 'Dark+' and 'Light+'. image

You can currently try these out by installing the extension 'Colorful Default Themes'. The plan is to add them to the built-in themes in the January build.

In addition to 4 major colors in the Visual Studio themes (comments, strings, numbers and keywords) we now have again colors for

  • control flow keywords
  • type names
  • function names
  • parameter names

image

When trying the new themes out, you will still find some keywords like 'import', 'module' nor correctly highlighted. These are issues in the tokenizer that we are working on. Please post your findings here, if possible add a code snippet and don't forget to mention for what language it is :-)

aeschli avatar Jan 07 '16 09:01 aeschli

I love the new light theme plus! <3

bpasero avatar Jan 07 '16 15:01 bpasero

The dark theme seems to color functions different compared to light plus. I am not sure though colouring functions adds much value.

image

image

bpasero avatar Jan 07 '16 15:01 bpasero

for me the old and the new themes look exactly the same (javascript). EDIT: I'm seeing the color changes described. Sorry.

Although, for example, I'm not seeing parameter names colored in arrow functions. Is this supposed to be supported?

response (MA): this is a issue of the JS/TS tokenizer, I filed issue https://github.com/Microsoft/TypeScript-TmLanguage/issues/42

The problem which the other themes do not display colors as expected persist. EG: monokai not displaying the parameter names in orange. Is this related to the tokenizer issue?

response (MA): again this has to do what scopes the tokenizer uses and what Monokai is coloring.

rickmed avatar Jan 07 '16 15:01 rickmed

Thanks for making these themes available again. Colour can be used as visual metadata while navigating through code, so the more colourful the better.

borgdylan avatar Jan 07 '16 21:01 borgdylan

C++ includes aren't colored correctly in Dark+ or Light+, both color the whole line as purple:

Dark:

dark

Dark+:

dark_plus

Tyriar avatar Jan 08 '16 02:01 Tyriar

@bpasero coloring functions in C++ feels pretty essential:

Dark:

dark_func

Dark+:

dark_plus_func

On this, it would be nice if the coloring was somewhat consistent across languages, as in functions are colored the same in all languages. It's a little weird how Java functions seems to be colored differently to js, c++ and (especially) C#:

Dark:

java_dark_func

Dark+:

java_dark_plus_func

Tyriar avatar Jan 08 '16 02:01 Tyriar

I'm still working on better c# coloring. Unfortunately the tokenizer we use for c# behaves differently.

aeschli avatar Jan 08 '16 09:01 aeschli

I delivered a fix for csharp. Please update the extension.

aeschli avatar Jan 08 '16 12:01 aeschli

[Dark+] Not sure if this is intentional but Java strings are colored inconsistently based on whether they're assigned to variables or not:

java_strings_1

Styled with:

.monaco-editor.vs-dark .token.string.quoted.variable {
    color: #74B0DF;
}

java_strings_2

Styled with:

.monaco-editor.vs-dark .token.string, .monaco-editor.vs-dark .token.string.tag, .monaco-editor.vs-dark .token.string.value {
    color: #CE9178;
}

Tyriar avatar Jan 08 '16 15:01 Tyriar

The Dark+ is better but there are issues, likely with the new tokenizer (all in TypeScript):

  • Types of return values are not colorized for non-builtin types (so all my types are not colorized)

coloring1

  • Sometimes, if the return type is generic, part of it is colorized the same as function name

coloring2

  • Keyword public is colorized like type when used in constructor

coloring4

  • All words in a lambda are colorized like types

coloring3

  • I don't recall if methods - when called - were also colorized before? (declarations are now colorized fine)

All in all, a step in a right direction :smile: I sincerely hope you had a good reason to change the tokenizer because coloring was really great before...

ddotlic avatar Jan 11 '16 09:01 ddotlic

c vscode please fix this (C#)

nomenon avatar Jan 12 '16 15:01 nomenon

@nomenon First issue is https://github.com/atom/language-csharp/issues/47 Second is likely https://github.com/atom/language-csharp/issues/46

aeschli avatar Jan 13 '16 15:01 aeschli

codec @aeschli 2) not exactly the same problem

nomenon avatar Jan 14 '16 10:01 nomenon

@aeschli not sure I like the color of functions in light theme:

image

A function name should stand out from other things like the visibility. Using a grey here puts the name to the background and it is harder to catch with the other colours we now use.

bpasero avatar Jan 14 '16 18:01 bpasero

@bpasero There's a better color on the way. Please comment in #1943 for the tuning of colors.

aeschli avatar Jan 15 '16 08:01 aeschli

Could 'module' have same color as 'class' or 'interface' ? I would love that .... And it seems contructor does not have same coloring as other functions .... shouldn't that be?

image

MA> that's https://github.com/Microsoft/TypeScript-TmLanguage/issues/37

adnan333bd avatar Jan 15 '16 11:01 adnan333bd

Keywords like function, let, const, var are colored wrong (like interfaces/classes) in latest update in JS files. TS files are not affected. This is so ugly I wish it was possible to revert extension versions xD

image

felixfbecker avatar Jan 19 '16 23:01 felixfbecker

This is definitely an improvement! In JS, however, when declaring multiple var's, only the first one is colorized (testSource in the example below):

image

dwbruhn avatar Jan 20 '16 00:01 dwbruhn

@felixfbecker, @dwbruhn I made a fix for this, please update to the latest version of the extension.

aeschli avatar Jan 20 '16 10:01 aeschli

@aeschli fixed, thanks!

felixfbecker avatar Jan 20 '16 10:01 felixfbecker