Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update syntax color to make them richer #12

Closed
octref opened this issue May 7, 2017 · 11 comments
Closed

Update syntax color to make them richer #12

octref opened this issue May 7, 2017 · 11 comments

Comments

@octref
Copy link
Contributor

octref commented May 7, 2017

First, thanks a lot for the workbench update. I'm using it and it's awesome.

However, I hope the syntax can be updated a bit to match the richness of Dark+'s syntax highlighting. When I'm working on TS, I rely on colors as visual cues. For example, Type information is always marked as Green.

Here is a pic of Dark+ vs Nord.

slice

@Livven
Copy link

Livven commented May 7, 2017

Completely agree. Ideally maybe the syntax colors could be simply based on the default (dark+/light+) themes, so that each color value from the default theme is replaced with the same color value every time. This way you'd get exactly the same behavior and "richness" as the default theme, only with a different aesthetic.

Obviously for the workbench you might want to get a bit more creative (as in having the same background color for all three panels which may not be possible with the above method) but for syntax colors I don't think this kind of customization is necessary.

@pomadin
Copy link

pomadin commented May 10, 2017

@arcticicestudio Hi, indeed the theme is pretty cool. It seems that there are some mismatchings (misprints?) in scope names. For instance

      "name": "Entity Name Class/Type",
      "scope": [
        "entity.name.class",
        "entity.name.type.class" // should it be: entity.name.type?
        ],

@arcticicestudio
Copy link
Contributor

arcticicestudio commented May 11, 2017

@octref I've used their builtin migration tool which converted the TextMate theme automatically into the JSON format, but it may be that there have been some converting problems.
I'll try to check all scopes next weekend.

@pomadin I've already thought about checking all scopes since the described issues worked before I've migrated to the new theming API.

@Livven
Copy link

Livven commented May 11, 2017

@arcticicestudio Pretty sure TS types not being highlighted was an issue in the previous version (before the workbench update) already, before the switch to the JSON format.

@octref
Copy link
Contributor Author

octref commented May 13, 2017

Don't know if you are aware, but Cmd+Shift+P -> Inspect TM Scopes helps a lot for diagnosing.

image

image

Also, take a look at this folder: https://github.com/Microsoft/vscode/tree/master/extensions/theme-defaults/themes

dark_plus includes dark_vs, which includes dark_default.
I believe Nord already covers dark_vs, so you just need to have those in dark_plus added to the theme, like such:

image

@octref
Copy link
Contributor Author

octref commented May 13, 2017

I can do a PR if you are ok with it. I really want to use Nord as my daily driver but this lack of functionality makes it unusable for me :-(

@arcticicestudio
Copy link
Contributor

Sorry for the late reply, I'm really busy the whole week long. I hope to get some time this weekend. Anyway, feel free to open a PR, I'm always thankful for any help 😄 That would also take me a lot of work to write a script compare the differences of the JSON keys to find missing scopes 😆

@Ikuyadeu
Copy link

I think these need variable
For example vscode dark+

Variable

		{
			"name": "Variable and parameter name",
			"scope": [
				"variable",
				"meta.definition.variable.name",
				"support.variable"
			],
			"settings": {
				"foreground": "#9CDCFE"
			}
		},

@arcticicestudio
Copy link
Contributor

Sorry for the late response, haven't got time for private projects the last months.
I've pushed some changes regarding missing TypeScript syntax highlights and some CSS improvements.

@octref
Copy link
Contributor Author

octref commented Jun 26, 2017

Thanks a lot! Looking forward to 0.4.0 release.

@arcticicestudio
Copy link
Contributor

🚢 Shipped with extension release version 🏷 0.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants