-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Add Selection Background Color as a setting to Profiles and Col… #3471
Conversation
…setting to schemas, also added the optional setting to profiles
…ault foreground is
Is there already a SelectionForeground colour? |
…com/microsoft/terminal into dev/lelian/selectionBackgroundColor
@mdtauk Nope! There is not currently a setting for SelectionForeground. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This definitely looks good. Setting is plumbed through all the places it needs to be plumbed through.
Though, maybe it makes more sense to just have this be a property on the DxEngine
, and not necessarily a part of TerminalCore. Maybe the setting should be moved to IControlSettings, and just set a property of the DxRenderer, instead of needing to plumb it all the way down to the TerminalCore and having it then tell the renderer each frame what the BG color should be. Further, then each of the other engines wouldn't need to have that added param on their PaintSelection
methods. Plus, conhost wouldn't need to implement anything special at all to handle this, it would just leave the value unchanged (with a default of DEFAULT_FOREGROUND). Thoughts?
@zadjii-msft Thanks for the suggestions! Putting the setting in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is all okay except for that one _selectionBackground
thing.
Thanks for the quick turnaround! |
🎉 Handy links: |
Summary of the Pull Request
This introduces a setting to both Profiles and ColorSchemes called
selectionBackground
that allows you to change the selection background color to what's specified. IfselectionBackground
isn't set in either the profile or color scheme, it'll default to what it was before - white.PR Checklist
Validation Steps Performed