microsoft / microsoft/microsoft-ui-xaml

AppWindowTitleBar caption button incorrect hover background color after toggling `Show accent on title bars and window borders`

Open
#10,397 1 comment 0 reactions 0 assignees View on GitHub
area-TitleBar bug team-Controls
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

WinUI3 caption button hover background color and glyph foreground color (when the window is inactive) does not listen to changes when toggling `Show accent on title bars and window borders`. It needs a restart to be correct again.

|case|UWP|WinUI3|
|--|--|--|
|In light mode, having it disbaled -> enabled|![Image](https://github.com/user-attachments/assets/60de474a-ac9f-4e80-a118-73779eee6bab)|![Image](https://github.com/user-attachments/assets/b016f71f-f0bc-4b59-aa8e-44d88dab3821)|
|In light mode, having it enabled -> disabled|![Image](https://github.com/user-attachments/assets/df099f71-85da-40b8-a444-9d8d46162f47)|![Image](https://github.com/user-attachments/assets/d009d6b7-3167-49e9-91cf-08364a793fb8)

Dark mode is a similar situation, and I don't want to repeat it.

### Steps to reproduce the bug

See the table

### Expected behavior

_No response_

### Screenshots

_No response_

### NuGet package version

WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002

### Windows version

Windows 11 (24H2): Build 26100

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in a WinUI 3 app on Windows 11 with Windows App SDK 1.6.5, then trace how AppWindowTitleBar caption button visual states respond to the accent setting toggle. Done means hover background and inactive-window glyph colors update correctly in both light and dark modes without restarting the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.