-
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
Propagate window style changes to the titlebar and minmax #3025
Conversation
switch (visualState) | ||
{ | ||
case WindowVisualState::WindowVisualStateMaximized: | ||
winrt::Windows::UI::Xaml::VisualStateManager::GoToState(MaximizeButton(), L"WindowStateMaximized", false); |
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 do not yet intend to unify these string names. sorry.
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.
Thanks for doing my work for me :P
|
||
if (_titlebar) | ||
{ | ||
_titlebar.SetWindowVisualState(isMaximized ? winrt::TerminalApp::WindowVisualState::WindowVisualStateMaximized : |
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.
my only complaint is that these lines are too damn long. But that's a stylistic choice for someone with split panes in their editor :)
🎉 Handy links: |
PR Checklist
Detailed Description of the Pull Request / Additional comments
This also sets us up for a bit more robustness down the line.
Validation Steps Performed
Really went ham on ways to minmax the window.