-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Setting to set pane highlight active, inactive and broadcast color #18953
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
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
@microsoft-github-policy-service agree |
97b01e4
to
b660e34
Compare
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.
Downloaded the branch and played around with it for a bit. Looks and feels great!
Blocking mainly for the issue where "accent" and "terminalBackground" aren't handled properly.
Also don't forget to update the docs repo please
Thanks!
b660e34
to
ce1ba03
Compare
Fixed in latest push can you retest when available? Thanks
Can update the docs repo, will raise a PR there |
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.
Setting all the pane's border colors to "accent" still doesn't work:
"pane":
{
"activeBorderColor": "accent",
"inactiveBorderColor": "accent",
"broadcastBorderColor": "accent"
},
const auto paneActiveBorderColor = theme.Pane() ? theme.Pane().ActiveBorderColor() : nullptr; | ||
const auto paneInactiveBorderColor = theme.Pane() ? theme.Pane().InactiveBorderColor() : nullptr; | ||
const auto broadcastBorderColor = theme.Pane() ? theme.Pane().BroadcastBorderColor() : nullptr; | ||
const auto requestedTheme{ theme.RequestedTheme() }; | ||
|
||
{ | ||
_updatePaneResources(requestedTheme); | ||
_updatePaneResources(requestedTheme, paneActiveBorderColor, paneInactiveBorderColor, broadcastBorderColor); |
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 think you don't actually need the variables. In MTSMSettings.h, the last parameter in the macro is nullptr
, so if the setting isn't defined, the getter should already retrieve nullptr
. You should be able to pass theme.Pane().ActiveBorderColor()
and the other ones directly into _updatePaneResources
.
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.
tested this by removing the pane key from my json and reloading: crashed as theme.Pane() was null; I need the ternary or it goes nullptr.ActiveBorderColor()
which crashes it (i could be wrong).
Will try a way that im thinking to clean this up but i dont believe i can pass this directly as you suggest unless im mistaken
ce1ba03
to
f8202e2
Compare
This commit adds a new setting in which you can configure the active highlight color of panes aswell as inactive and broadcast.
f8202e2
to
320267c
Compare
Found the bug with accent, it was because i wasnt picking accent key sorted that and all 3 being set to accent seems to work |
Summary of the Pull Request
This commit adds a new setting in which you can configure the active highlight color of panes as well as inactive and broadcast. This will only happen if configured otherwise uses the default as suggested by #3061
References and Relevant Issues
#3061
Detailed Description of the Pull Request / Additional comments
When modifying the settings you can now set pane key to have the following properties:
This allows for more configuration of the windows terminal
Validation Steps Performed
Built Locally, Ran Locally and configured a profile with the following theme:
PR Checklist