microsoft / microsoft/microsoft-ui-xaml

The color of the custom title bar close button is different from the system default title bar close button color

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

Description

### Describe the bug

The color of the custom title bar close button is different from the system default title bar close button color

##### ------------------------------------

自定义标题栏关闭按钮的颜色与系统默认的标题栏关闭按钮的颜色不一致

------------------------------------

WinUI 3 Custom title bar close button color, light red

##### ------------------------------------

WinUI 3 自定义标题栏关闭按钮颜色,浅红色
![Image](https://github.com/user-attachments/assets/7a7cff88-a61b-443c-acd0-30dc86c408b7)

------------------------------------

Explorer, Windows Terminal, Notepad Custom title bar, Control Panel default title bar close button color, dark red

##### ------------------------------------

资源管理器,Windows 终端,记事本自定义标题栏,控制面板的默认标题栏关闭按钮颜色,深红色
![Image](https://github.com/user-attachments/assets/eeb11227-7649-4f2e-8205-51e2a25890a0)
![Image](https://github.com/user-attachments/assets/b8e986ab-6149-460a-ba93-40deb3ca8959)
![Image](https://github.com/user-attachments/assets/c5033544-ff7e-4eee-a839-2edbd22d743a)
![Image](https://github.com/user-attachments/assets/941b37ed-c387-4fb4-98cd-b3fba1933859)

### Steps to reproduce the bug

See description

### Expected behavior

The color of the WinUI 3 title bar close button is the same as that of the default title bar close button

##### ------------------------------------

WinUI 3 标题栏关闭按钮的颜色与默认标题栏关闭按钮的颜色保持一致

### Screenshots

See description

### NuGet package version

WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003

### Windows version

Windows 11 (23H2): Build 22631, Windows 11 (24H2): Build 26100, Windows 11 (22H2): Build 22621, Windows 11 (21H2): Build 22000, Windows 10 (21H2): Build 19044, Windows 10 (21H1): Build 19043, Windows 10 (20H2): Build 19042, Windows 10 (1809): Build 17763

### Additional context

None

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the close-button color difference in a WinUI 3 application using Windows App SDK 1.6.3 across the listed Windows versions, then inspect the custom title bar behavior against the system default. Done means the custom title bar close button matches the default title bar close-button color in the reported environments.

Written by the indexing model from the issue text.

Assessment

Domain
design, 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.