Skip to content

Add support for changing color space of syntax highlighting colors - #255417

Open
Erik Olofsson (erikolofsson) wants to merge 4 commits into
microsoft:mainfrom
erikolofsson:highlighting-color-space
Open

Erik Olofsson (erikolofsson) wants to merge 4 commits into
microsoft:mainfrom
erikolofsson:highlighting-color-space

Conversation

@erikolofsson

Copy link
Copy Markdown

Fixes #161028

Adds an option to change the color space of syntax highlighting colors. This allows more vibrant colors than the default sRGB color space which is narrow and can't encode vibrant colors.

See screenshot below uses Display P3 color space to the left and the unpatched version to the right (sRGB).

To test this you will need a display that supports a wider gamut, otherwise you will not see a difference. It's easiest to see with fully red (#ff0000) or fully green colors (#00ff00). All recent mac displays will support Display P3 colors.

DisplayP3Highlighting

@erikolofsson

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@erikolofsson

Copy link
Copy Markdown
Author

Added support for theme to specify color space and support in experimental GPU renderer.

@Tyriar

Copy link
Copy Markdown
Contributor

Whoever reviews this, please re-add me if we end up proceeding on this

@aeschli

Copy link
Copy Markdown
Contributor

Thanks Erik Olofsson (@erikolofsson) for looking into this.
To get this right we need to plan some time for it: we want to avoid adding complexity to our code and the user experience.
There are many more all places that deal with colors, and not just token colors.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Colors are washed out on 1.69 and above with P3 displays

4 participants