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
Photo Search: Menu items have rounded corners #992
Comments
What is the exact issue and how to reproduce it? |
Thanks for the report @timsneath. This almost feels like something we should be fixing in the win32 runner, not the sample code. Thoughts @csells? |
Can we fix it in the sample until we have it fixed in the embedding? |
@timsneath Can you give guidance on where I need to make this modification? I'm guessing since this is a change to /cc @stuartmorgan who probably knows a thing or two about this. |
Why is this a bug? Isn't this just how Windows 11 works? |
I just tried to replicate using the Windows 11 developer image, and this is what I'm seeing: @timsneath can you explain how to replicate what you are seeing on a clean windows 11 install? |
Hmm... is your window maximized, @domesticmouse? What does I'm running the Windows Insider builds, haven't knowingly changed any defaults. But it's possible that there's something weird about the current build in this regard. Here are the instructions on what to do with menus, @stuartmorgan: If we're doing that (or that's being done automatically), then perhaps we're good? |
That's about making custom menus:
It explains how to make a menu that's not made using normal menu APIs look rounded in order to match those that are made using normal menu APIs.
My confusions here is your bug report is that we are getting the standard behavior (which is apparently now rounded). I still don't understand why that's a bug. |
From Apply rounded corners in desktop apps for Windows 11: Note By design, apps are not rounded when maximized, snapped, running in a Virtual Machine (VM), running on a Windows Virtual Desktop (WVD), or running as a Windows Defender Application Guard (WDAG) window. Looks like I need to upgrade my machine, instead of using the Developer VM. Yay. |
But yeah, this might be by design, which is Stuart's point. |
Now that I have upgraded my desktop to Windows 11, I can safely say that some apps have rounded menus. Windows Terminal and Google Chrome both show rounded menus, while VSCode and GitHub desktop tooling do not. It looks like rounded menus on Win11 is going to be a hot mess. At this point I'm closing this as WAI. |
On Windows 11, the photo search app menus have rounded corners:
Use
DwmSetWindowAttribute
to set rectangular windows, as follows:The text was updated successfully, but these errors were encountered: