dotnet / dotnet/winforms

[DarkMode] TaskDialogs should respond to System: DarkMode and Application's SystemColorMode.Dark

Open
#12,062 10 comments 4 reactions 1 assignee Claimed by @KlausLoeffelmann View on GitHub
area-DarkMode
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### .NET version

9.0.100-rc.2.24455.8

### Did it work in .NET Framework?

No

### Did it work in any of the earlier releases of .NET Core or .NET 5+?

No

### Issue description

**2 cases:**
1. TaskDilaogs are not in dark mode when enabled Dark mode in System and setting Application.SetColorMode(SystemColorMode.System)

https://github.com/user-attachments/assets/914450af-ebeb-42d5-aa85-df4b1913f505

2. TaskDialogs are not in dark mode when setting Application.SetColorMode(SystemColorMode.Dark)

https://github.com/user-attachments/assets/36ae44c3-0121-42ae-9bdc-c7e1f2e2e3c9

### Steps to reproduce

[TaskDialogSamples.zip](https://github.com/user-attachments/files/16902188/TaskDialogSamples.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.