dotnet / dotnet/winforms

Dark Mode: Insufficient contrast for focusing items on DropDownPanel of BackColor/ForeColor/Cursor properties in PropertyGrid

Open
#13,901 0 comments 0 reactions 1 assignee Claimed by @ricardobossan View on GitHub
area-DarkMode
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### .NET version

.NET SDK 10.0.100-rc.2.25473.111 + dlls built from main branch of dotnet/winforms repo

### Did it work in .NET Framework?

Not tested/verified

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

Occurs when DarkMode feature involved

### Issue description

When the application is in Dark Mode, the contrast of focusing items on DropDownPanel of BackColor/ForeColor/Cursor properties in PropertyGrid
This issue does not occur in Classic Mode, similar the issue https://github.com/dotnet/winforms/issues/13767

**Dark Mode:**
Image

**Classic Mode:**
Image

### Steps to reproduce

1. Create Winforms .NET application with targeting .NET 10
2. Add PropertyGrid controls in form designer
3. Set the SelectedObject property to Form in propertyGrid1's properties
4. Set app under Dark mode in program.cs file:
` Application.SetColorMode(SystemColorMode.Dark);`
5. Build and run project
6. Click any items to focus in DropDwonPanel of BackColor/ForeColor/Cursor properties in PropertyGrid to observe

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.