dotnet/winforms

[Dark Mode] the DropDownButton of Type Here not in dark mode in DemoConsole application

Ouverte

#12 039 ouverte le 4 sept. 2024

 (1 commentaire) (0 réaction) (0 personne assignée)C# (922 forks)batch import
area-DarkModehelp wanted

Métriques du dépôt

Stars
 (4 100 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

.NET version

.NET 9.0.100-rc.2.24453.35

Did it work in .NET Framework?

No

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

This is a new feature Dark Mode: https://github.com/dotnet/winforms/pull/11857

Issue description

The DropDownButton of Type Here not in dark mode. image

Steps to reproduce

  1. Clone the DemoConsole in Winforms repo
  2. Enable Dark mode by adding below code lines in the Program.cs file under DemoConsole project
#pragma warning disable WFO5001
Application.SetColorMode(SystemColorMode.Dark);
  1. Build and run the DemoConsole project
  2. Observe the color for the DropDownButton of Type Here item

Guide contributeur