Skip to content

Conversation

@DHowett-MSFT
Copy link
Contributor

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.

switch (visualState)
{
case WindowVisualState::WindowVisualStateMaximized:
winrt::Windows::UI::Xaml::VisualStateManager::GoToState(MaximizeButton(), L"WindowStateMaximized", false);
Copy link
Contributor Author

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.

Copy link
Member

@zadjii-msft zadjii-msft left a 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 :
Copy link
Member

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 :)

@zadjii-msft zadjii-msft added Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal. labels Oct 2, 2019
@DHowett-MSFT DHowett-MSFT added the Needs-Second It's a PR that needs another sign-off label Oct 2, 2019
@ghost ghost requested review from carlos-zamora and miniksa October 2, 2019 16:50
@carlos-zamora carlos-zamora merged commit 64c98db into master Oct 2, 2019
@carlos-zamora carlos-zamora deleted the dev/duhowett/minmax-1 branch October 2, 2019 17:27
@ghost
Copy link

ghost commented Oct 4, 2019

🎉Windows Terminal Preview v0.5.2762.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Needs-Second It's a PR that needs another sign-off Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Double clicking on the drag bar to maximize does not update the maximize button icon

5 participants