Padding of Minimize/Maximize/Close Buttons is Not Consistent When Using ExtendsContentIntoTitleBar
See original GitHub issueDescribe 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
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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:7 (2 by maintainers)
Top GitHub Comments
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.
@pratikone and @Austin-Lamb