Skip to content
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

Padding of Minimize/Maximize/Close Buttons is Not Consistent When Using ExtendsContentIntoTitleBar #4536

Closed
FreddyDgh opened this issue Mar 16, 2021 · 7 comments
Assignees
Labels
area-TitleBar Issues related to custom window title bars. product-winui3 WinUI 3 issues team-Reach Issue for the Reach team

Comments

@FreddyDgh
Copy link

Describe the bug
When using a custom title bar with ExtendsContentIntoTitleBar = true, the size of the title bar buttons changes to 21x46 pixels, instead of the normal 29x45 pixels. This makes the WinUI window look very bad when you have it next to windows with the standard buttons. Because this change also alters the hitbox of the close button, it really messes up the end user's muscle-memory when they go to close the window. From what I can tell, the icons of the button look to be approximately the right size, the main issue is that the buttons lack a significant amount of top/bottom padding .

Steps to reproduce the bug
Create a custom title bar with WinUI.

Expected behavior
I expect the title bar buttons to be same size as a normal Windows 10 window.

Screenshots
Example

Version Info

NuGet package version:
WinUI 3 - Project Reunion 0.5 Preview: 0.5.0-prerelease

Windows app type:

UWP Win32
Yes
Windows 10 version Saw the problem?
Insider Build (xxxxx)
October 2020 Update (19042) Yes
May 2020 Update (19041)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Additional context
None

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Mar 16, 2021
@huoyaoyuan
Copy link

I remember that I can see both sizes in different type of Win32 applications in Win10.

@mdtauk
Copy link
Contributor

mdtauk commented Mar 16, 2021

Win32 is different from Dialog Windows, and from UWP windows.

image

Sun Valley is likely to see a re-design of the window chrome for all apps, so either WinUI adapts these buttons based on Windows version, or designed to match what the future design will be

image

@StephenLPeters
Copy link
Contributor

@pratikone and @Austin-Lamb

@FreddyDgh
Copy link
Author

Maybe I should clarify - if WinUI wants to change the style of the title bar buttons, that's fine with me. My main point here is that it should be consistent WITHIN WinUI. If I create two windows WITHIN the same app, it looks ridiculous if their title bar buttons are different.

@StephenLPeters StephenLPeters added area-TitleBar Issues related to custom window title bars. team-Reach Issue for the Reach team product-winui3 WinUI 3 issues and removed needs-triage Issue needs to be triaged by the area owners labels Mar 16, 2021
@FreddyDgh FreddyDgh changed the title Size of Minimize/Maximize/Close Buttons is Not Correct When Using ExtendsContentIntoTitleBar Padding of Minimize/Maximize/Close Buttons is Not Consistent When Using ExtendsContentIntoTitleBar Mar 16, 2021
@bkaankose
Copy link

This is definitely unwanted behavior and should be considered as bug. WinUI needs to copy UWP when it comes to CoreTitleBar and AppTitleBar, both visually and functionality wise because it was perfect. What's the point of making the app 'look rich' by making it use latest UWP control set and leave the Title Bar (which makes the app unique for most cases) old?

@pratikone pratikone self-assigned this Mar 17, 2021
@codendone codendone added the fixed-internally This bug has been fixed, and the fix will be shipped in the next version of WinUI 3. label May 5, 2021
@FreddyDgh
Copy link
Author

Looks like this issue has been addressed in the version 0.5.7 servicing update, but the issue still exists in 0.8.0-preview. As long as the change is also going to be made for 0.8.0, I think this issue could probably be closed.

@codendone
Copy link
Contributor

The fix will be in 0.8.0, and unfortunately just missed the snap for the 0.8.0-preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TitleBar Issues related to custom window title bars. product-winui3 WinUI 3 issues team-Reach Issue for the Reach team
Projects
None yet
Development

No branches or pull requests

8 participants