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

[Bug] Multiple selections aren't rendered correctly #184

Open
wenfangdu opened this issue Jul 4, 2021 · 5 comments
Open

[Bug] Multiple selections aren't rendered correctly #184

wenfangdu opened this issue Jul 4, 2021 · 5 comments

Comments

@wenfangdu
Copy link

Default dark theme config:

{
  "workbench.colorCustomizations": {
    "editor.selectionBackground": "#f008"
  }
}

2021-07-04 10_07_42
Dracula config:

{
  "workbench.colorCustomizations": {
    "[Dracula]": {
      "editor.selectionBackground": "#bd93f980"
    }
  }
}

2021-07-04 10_11_25

@wenfangdu wenfangdu changed the title [Bug] Mutiple selections aren't rendered correctly [Bug] Multiple selections aren't rendered correctly Jul 4, 2021
@wenfangdu
Copy link
Author

@dsifford Please see microsoft/vscode#127948 (comment):

The problem is that the Dracula theme defines the following color:

"editor.selectionHighlightBackground": "#424450",

This color is not using transparency, so the selection highlights are being rendered on top of the selection. This is an oversight with the theme. Please open an issue against the theme at https://github.com/dracula/visual-studio-code.

A workaround would be to customize that color to add some transparency to it:

"workbench.colorCustomizations": {
        "[Dracula]": {
            "editor.selectionBackground": "#bd93f980",
            "editor.selectionHighlightBackground": "#59595e88"
        }
    },

image

@dsifford
Copy link
Member

@wenfangdu Try setting editor.selectionHighlightBackground to #8BE9FD30 and let me know if you are satisfied with that.

@wenfangdu
Copy link
Author

@dsifford Can you give a color suggestion for editor.selectionBackground as well, so I can check them in comparison.

@wenfangdu
Copy link
Author

wenfangdu commented Aug 23, 2021

This is the editor.selectionBackground & editor.selectionHighlightBackground comparison in the default dark theme:

image

This is the editor.selectionBackground & editor.selectionHighlightBackground comparison in the Dracula theme:

image

In the default dark theme, editor.selectionBackground is more obvious, whereas in the Dracula theme, editor.selectionHighlightBackground is more obvious, I think we should adjust both editor.selectionBackground & editor.selectionHighlightBackground and make editor.selectionBackground more standout.

As a side note, I do find my custom values are pretty neat, you can take them into account if needed:

{
  "editor.selectionBackground": "#5d627e",
  "editor.selectionHighlightBackground": "#59595e88"
}

image

@wenfangdu
Copy link
Author

@dsifford @luxonauta @zenorocha Please reopen this issue, since #253 has been reverted.

@dsifford dsifford reopened this Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants