-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Enable dragging with the entire titlebar #1948
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
15a1f48
This definitely works for getting shadow, pointy corners back
zadjii-msft 0bc9969
The window style was _not_ important
zadjii-msft bf239b6
Still getting a black xaml islands area (the HRGN) when we switch to …
zadjii-msft 22e1023
I don't know if this affects anything.
zadjii-msft aad9f56
heyo this works.
zadjii-msft 5fd4191
Add more comments and cleanup
zadjii-msft b02d9eb
Merge branch 'dev/migrie/f/1625-less-round-more-shadow' into dev/migr…
zadjii-msft 5c50804
Try making the button RightCustomContent
zadjii-msft 10bcf6e
* Make the MinMaxClose's drag bar's min size the same as a caption bu…
zadjii-msft ea1298e
Create a TitlebarControl
zadjii-msft cf939cc
Fix the MMC buttons not working
zadjii-msft a6ad655
Make the titlebar less magenta
zadjii-msft ac1f20b
Resize the drag region as we add/remove tabs
zadjii-msft 1905852
Move the actual MMC handling to the TitlebarControl
zadjii-msft 9040940
Some PR nits, fix the titlebar painting on maximize
zadjii-msft 96c5da2
Merge branch 'dev/migrie/f/1625-less-round-more-shadow' into dev/migr…
zadjii-msft 2636b11
Put the TabRow in our XAML
zadjii-msft dcdbdca
Merge remote-tracking branch 'origin/master' into dev/migrie/f/newtab…
zadjii-msft 69a78d4
Remove dead code in preparation for review
zadjii-msft e038b5d
Horrifyingly try Gdi Plus as a solution, that is _wrong_ though
zadjii-msft faef5c7
Revert "Horrifyingly try Gdi Plus as a solution, that is _wrong_ though"
zadjii-msft 83dc600
This fixes the bottom border but breaks the titlebar painting
zadjii-msft 8712f1e
Fix the NC bottom border
zadjii-msft 08e9d6f
A bunch of the more minor PR nits
zadjii-msft 5704084
Add a MinimizeClick event to the MMCControl
zadjii-msft 1fb6943
Add events for _all_ of the buttons, not just the Minimize btn
zadjii-msft 052fabd
Change hoe setting the titlebar content works
zadjii-msft 4fd75f1
Merge remote-tracking branch 'origin/master' into dev/migrie/f/newtab…
zadjii-msft bfab953
Move the tab row to the bottom of it's available space
zadjii-msft ce04e72
Fix the theme reloading
zadjii-msft 8e057ea
Merge remote-tracking branch 'origin/master' into dev/migrie/f/newtab…
zadjii-msft c4a398b
PR nits from @miniksa
zadjii-msft bf534c6
Update src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp
zadjii-msft f0dc01e
Merge remote-tracking branch 'origin/master' into dev/migrie/f/newtab…
zadjii-msft 6e41097
This needed to be fixed, was missed in other PR nits
zadjii-msft 744a27f
runformat
zadjii-msft e2fde7a
Merge remote-tracking branch 'origin/master' into dev/migrie/f/newtab…
zadjii-msft dc5b18a
Does this fix the CI build?
zadjii-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
namespace TerminalApp | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
namespace TerminalApp | ||
{ | ||
[default_interface] | ||
runtimeclass MinMaxCloseControl : Windows.UI.Xaml.Controls.StackPanel | ||
[default_interface] runtimeclass MinMaxCloseControl : Windows.UI.Xaml.Controls.StackPanel | ||
{ | ||
MinMaxCloseControl(); | ||
|
||
Windows.UI.Xaml.Controls.Grid Content{ get; }; | ||
Windows.UI.Xaml.Controls.Border DragBar{ get; }; | ||
void Maximize(); | ||
void RestoreDown(); | ||
|
||
UInt64 ParentWindowHandle; | ||
event Windows.Foundation.TypedEventHandler<MinMaxCloseControl, Windows.UI.Xaml.RoutedEventArgs> MinimizeClick; | ||
event Windows.Foundation.TypedEventHandler<MinMaxCloseControl, Windows.UI.Xaml.RoutedEventArgs> MaximizeClick; | ||
event Windows.Foundation.TypedEventHandler<MinMaxCloseControl, Windows.UI.Xaml.RoutedEventArgs> CloseClick; | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 was not necessary any longer, yes?
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.
technically yes, the TabRowControl isn't totally necessary, but I was inclined to keep it, to keep each piece more atomic. If you feel strongly, I can change it back