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

Should the default inactive terminal selection background be the same one as used by the editor #158899

Closed
isidorn opened this issue Aug 23, 2022 · 5 comments · Fixed by #158950
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders terminal-rendering themes Color theme issues verified Verification succeeded
Milestone

Comments

@isidorn
Copy link
Contributor

isidorn commented Aug 23, 2022

Testing #158828

I think currently the default terminal and the editor selection colours are different.
Should we use the same default inactive selection background both in the editor and the terminal (for consistency and less different colours on the screen)?

@Tyriar
Copy link
Member

Tyriar commented Aug 23, 2022

That's the intention, they are derived by the terminal.selection key and not the editor one though so it might depend on the theme.

If you're not seeing #158896, was this using any particular theme we ship?

@Tyriar Tyriar added info-needed Issue requires more information from poster terminal-rendering labels Aug 23, 2022
@isidorn
Copy link
Contributor Author

isidorn commented Aug 23, 2022

In the default light theme they look pretty different to me (editor is greyish, terminal is blueish).
#158896 is unrelated to this, I have changed the gpu acceleration setting back to auto.

Feel free to close if by design. I thought that editor and terminal selection colour should align more, but I understand that they use a different background colour so that might not always work.

Screenshot 2022-08-23 at 18 09 56

@Tyriar
Copy link
Member

Tyriar commented Aug 23, 2022

Ah, this is because editor.inactiveSelectionBackground is defined in Light+, the terminal one is derived from terminal.selectionBackground, not editor.inactiveSelectionBackground.

@daviddossett want to take this one to do a once over of all the themes to make the inactive selection colors consistent?

@Tyriar Tyriar assigned daviddossett and unassigned Tyriar and meganrogge Aug 23, 2022
@Tyriar Tyriar added themes Color theme issues bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Aug 23, 2022
@daviddossett
Copy link
Contributor

Light (Visual Studio) defines "editor.inactiveSelectionBackground": "#E5EBF1" which is picked up by Light+. I think inheriting editor.inactiveSelectionBackground for the terminal color as we do for regular selection via terminal.selectionBackground makes the most sense here. We're copying over the transparency rules already anyway.

@daviddossett
Copy link
Contributor

Ended up just explictly defining terminal.inactiveSelectionBackground for any default theme that specifies editor.inactiveSelectionBackground to keep them in sync.

daviddossett added a commit that referenced this issue Aug 24, 2022
…158950)

* Inherit editor inactive selection colors in terminal (Fix #158899)

* Remove unused import

* Add terminal inactive selection colors to default dark and light themes

* Update monokai terminal inactive selection

* Merge branch 'main' into ddossett/thoughtful-butterfly
@VSCodeTriageBot VSCodeTriageBot added the unreleased Patch has not yet been released in VS Code Insiders label Aug 24, 2022
@VSCodeTriageBot VSCodeTriageBot added this to the August 2022 milestone Aug 24, 2022
@VSCodeTriageBot VSCodeTriageBot added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Aug 25, 2022
@rzhao271 rzhao271 added the verified Verification succeeded label Aug 25, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders terminal-rendering themes Color theme issues verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants