Skip to content

Colors are washed out on 1.69 and above with P3 displays #161028

Closed as not planned

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.69 (and all above)
  • OS Version: macOS 12.5.1

Steps to Reproduce:

  1. Open Vscode 1.68 on a Mac that has a P3 wide gamut display with some syntax-highlighed code
  2. Open Vscode 1.69 or above on a Mac that has a P3 wide gamut display with some syntax-highlighed code
  3. Observe the difference: colors are washed out on 1.69.

This issue has been fixed about a year ago, now it's back with 1.69 and above.

Activity

  1. vscodenpa commented on Sep 16, 2022

    @vscodenpa

    Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.71.2. Please try upgrading to the latest version and checking whether this issue remains.

    Happy Coding!

  2. canpoyrazoglu commented on Sep 16, 2022

    @canpoyrazoglu
    Author

    The issue persists in the latest version. It's 1.69 and above, including the latest version.

  3. deepak1556 commented on Sep 16, 2022

    @deepak1556
    Collaborator

    Have you to tried the force-color-profile: srgb option from #152816 (comment), it also has the context for why the behavior changed with 1.69. The runtime decides to render based on the OS color profile, .

  4. added
    info-needed
    macos
    on Sep 16, 2022
  5. canpoyrazoglu commented on Sep 16, 2022

    @canpoyrazoglu
    Author

    Robo (@deepak1556) Just tried it, unfortunately no avail. I've tried both srgb and display-p3-d65 (restarted Vscode after both), both render washed out.

    I've also realized that I have a "disable-color-correct-rendering": true (which I don't remember putting, perhaps auto-set?) key in the arguments file (which seems to be ignored by newer versions) that is used in 1.68. If I remove that key or set it to false, 1.68 also renders colors washed out.

    Apparently having disable-color-correct-rendering": true and using 1.68 results in correct colors (even though it seems ironic), whereas 1.69 above doesn't render correct colors in any way (and doesn't obey that key apparently).

  6. deepak1556 commented on Sep 16, 2022

    @deepak1556
    Collaborator

    Thanks for testing, yeah "disable-color-correct-rendering" support was broken in 1.69 and since 1.70 the flag support has been removed. Can you provide the font and theme settings inside VSCode. Also, can you share some screenshots of your macOS display settings to help us repro the issue. Thanks!

  7. canpoyrazoglu commented on Sep 16, 2022

    @canpoyrazoglu
    Author

    I'm using Monokai with following customizations (note that I haven't touched these in months and I confirm they work perfectly in 1.68 and below):

     "editor.tokenColorCustomizations": {
            "[Monokai]": {
                "keywords": "#ff4a5f",
                "functions": "#99ff88",
                "comments": "#80a090",
                "textMateRules": [
                   
                    {
                        "scope": "keyword.operator",
                        "settings": {
                            "foreground": "#ffaa66"
                        }
                    },
                    {
                        "scope": "entity.name.tag",
                        "settings": {
                            "foreground": "#ff3377",
                            "fontStyle": "bold"
                        }
                    },
                    {
                        "scope": "entity.other.attribute-name",
                        "settings": {
                            "foreground": "#44e855",
                        }
                    }
                ]
            }
        },
    

    Here is screenshot from my display settings:

    Screen Shot 2022-09-16 at 12 03 23

    Also here is screenshot from the 1.68 and the latest, with the same file open. Please note that you might need a wide gamut display to see the difference:

    Screen Shot 2022-09-16 at 12 05 24

    Screen Shot 2022-09-16 at 12 05 01

    The color saturation is washed out in the second screenshot.

  8. added
    bug
    and removed
    info-needed
    on Sep 16, 2022
  9. 5 remaining items

  10. changed the title [-]Colors are washed out on 1.69 and above[/-] [+]Colors are washed out on 1.69 and above with P3 displays[/+] on Sep 20, 2022
  11. azhiv commented on Dec 22, 2022

    @azhiv

    Robo (@deepak1556) I still witness the same washed out colours in 1.74.2. None of the argv manipulations seem to give any effect.
    Is there any progress investigating this?

  12. silvaalbert commented on Jan 30, 2023

    @silvaalbert

    Robo (@deepak1556) - any updates on this issue? Happy to jump on a beta to test it out when implemented.

  13. canpoyrazoglu commented on Mar 8, 2023

    @canpoyrazoglu
    Author

    Is there any update on this? I'm still using September 2022 version. Just checked the February 2023 version (stable) and I can confirm the problem still persists.

  14. little-huang commented on Mar 20, 2023

    @little-huang

    有这方面的更新吗?我还在使用 2022 年 9 月版。刚查了 2023 年 2 月的版本(固定版),我可以确定问题仍然存在。

    Yes, I have the same problem.

  15. rnner900 commented on Jul 30, 2023

    @rnner900

    I tried editing argv but it seems to have no effect. I'm not sure why.
    The following solution worked for me (using a Mac):

    1. Open the main.js located at VSCode App Bundle > Resources > app > out > main.js
    2. Replace
      app.commandLine.appendSwitch("disable-features","CalculateNativeWinOcclusion");
      with
      app.commandLine.appendSwitch("disable-features","CalculateNativeWinOcclusion");app.commandLine.appendSwitch("disable-color-correct-rendering","true");
    3. Restart VS Code
    4. Your colors are vibrant again

    (I thing this is exactly what argv should do, but for me modifying argv did exactly nothing)

  16. deepak1556 commented on Dec 15, 2023

    @deepak1556
    Collaborator

    Please check if the behavior has improved with latest insiders https://code.visualstudio.com/insiders based on a newer version of the runtime.

  17. added
    info-needed
    and removed on Dec 15, 2023
  18. vscodenpa commented on Dec 30, 2023

    @vscodenpa

    This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

    Happy Coding!

  19. xzbdmw commented on Feb 19, 2024

    @xzbdmw

    no difference If I set "force-color-profile": "display-p3-d65"
    It is still displayed in sRGB
    #161028 (comment)
    And this still works.

  20. locked and limited conversation to collaborators on Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugchromiuminfo-neededmacosupstream

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions