Add Selection Background Color as a setting to Profiles and Col…#3471
Add Selection Background Color as a setting to Profiles and Col…#3471zadjii-msft merged 20 commits intomasterfrom
Conversation
…setting to schemas, also added the optional setting to profiles
…ault foreground is
|
Is there already a SelectionForeground colour? |
|
@mdtauk Nope! There is not currently a setting for SelectionForeground. |
zadjii-msft
left a comment
There was a problem hiding this comment.
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 |
zadjii-msft
left a comment
There was a problem hiding this comment.
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
selectionBackgroundthat allows you to change the selection background color to what's specified. IfselectionBackgroundisn't set in either the profile or color scheme, it'll default to what it was before - white.PR Checklist
Validation Steps Performed