Skip to content

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

@Zheng-Li01

Description

@Zheng-Li01

.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 #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

Metadata

Metadata

Assignees

Labels

area-DarkModeIssues relating to Dark Mode feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions