WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

Titlebar chrome buttons wrong color "invisible"

Open HEIC-to-JPEG-Dev opened this issue 1 year ago • 8 comments

Which version of the app?

WinUI 3 Gallery

Description

The titlebar chrome buttons (minimize, maximize, close) are not visible. Screenshot below.

I think this is because the Windows 11 setting "Show accent colour on title bars and window borders" is checked. Turning this off solves the issue - but I (and I assume lots of people) have it switched on.

Screenshots

image

Windows version

Windows 11 23H2 (22631)

Additional context

As a developer I know this issue and it has to be manually managed in code as the AppWindow theme system is broken. Using th enew Titlebar control in SDK 1.6 fixes the issue.

HEIC-to-JPEG-Dev avatar Aug 15 '24 08:08 HEIC-to-JPEG-Dev

I am unable to repro, can you provide more detailed repro steps?

I wonder if it's from WinUI-Gallery setting AppWindow TitleBar's caption button colours as a workaround here: https://github.com/microsoft/WinUI-Gallery/blob/cb323e1a5dff53e482ce577b48ca311cfe8d00cd/WinUIGallery/Helper/TitleBarHelper.cs#L27

karkarl avatar Aug 15 '24 18:08 karkarl

If you close the app, and then set this in Windows Settings, on Windows 11, you should be able to reproduce the issue image

HEIC-to-JPEG-Dev avatar Aug 16 '24 06:08 HEIC-to-JPEG-Dev

Ideally, a window shouldn't have to mess with code like this and the solution is to be as "native" as possible.

it has to be manually managed in code as the AppWindow theme system is broken

Seen this so many times for so long, I wonder if Microsoft will ever fix it...

Using th enew Titlebar control in SDK 1.6 fixes the issue.

🥳

Jay-o-Way avatar Aug 31 '24 12:08 Jay-o-Way

The titlebar control is not in 1.6, it was pulled :(

HEIC-to-JPEG-Dev avatar Aug 31 '24 14:08 HEIC-to-JPEG-Dev

The titlebar control is not in 1.6, it was pulled :(

OMG! What's the source for this info?

Jay-o-Way avatar Aug 31 '24 15:08 Jay-o-Way

They announced it on the developer call. No ETA. Had to pull it from my app and revert back to older code

HEIC-to-JPEG-Dev avatar Aug 31 '24 16:08 HEIC-to-JPEG-Dev

The titlebar control is not in 1.6, it was pulled :(

OMG! What's the source for this info?

I can answer this question - it is true that Titlebar will not be shipping in 1.6, however, we are still committed to shipping the control eventually. It's looks "pulled" since experimental APIs cannot be shipped with a stable release.

Hopefully I can provide more info to this in a couple of weeks :)

karkarl avatar Sep 03 '24 17:09 karkarl

Are we saying this won't be fixed until SDK 1.7 ?

HEIC-to-JPEG-Dev avatar Oct 16 '24 07:10 HEIC-to-JPEG-Dev

Is this solved by #1736 ?

Jay-o-Way avatar Jul 21 '25 17:07 Jay-o-Way

Thank you for the pointer and reminder @Jay-o-Way , looks like this is addressed now.

marcelwgn avatar Jul 24 '25 11:07 marcelwgn

We need to reopen this

Zakariathr22 avatar Aug 08 '25 15:08 Zakariathr22