winforms icon indicating copy to clipboard operation
winforms copied to clipboard

[Dark Mode]HelpProvider text color is barely visible

Open Liv-Goh opened this issue 1 year ago • 2 comments

.NET version

9.0.0-rc.1.24418.2 + build private dll from winforms repo main branch

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 text color of the helpProvider is barely visible in Dark Mode.

Dark Mode Screenshot 2024-08-20 160509 (1)

Classic Mode Screenshot 2024-08-20 160156 (1)

Steps to reproduce

  1. Create a .NET Core WinForms project
  2. Add button and helpProvider to the form
  3. Set button's properties as below
  • HelpString on helpProvider : testing 123
  • ShowHelp on helpProvider : True
  1. Build and run the project
  2. Click the button and press F1 key

Liv-Goh avatar Aug 20 '24 08:08 Liv-Goh

This issue is now marked as "help wanted", and we’re looking for a community volunteer to work on this issue. If we receive no interest in 180 days, we will close the issue. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

The foreground color was set to -1 (i.e., let HTML Help use the system default). https://github.com/dotnet/winforms/blob/1d2f5fd0d08a42c115c994eef562401c32f08774/src/System.Windows.Forms/System/Windows/Forms/Help/Help.cs#L84

Using -1 allows the OS to supply the appropriate system colors, and this behavior may automatically improve as Windows evolves its Dark Mode theme in future versions.

LeafShi1 avatar Dec 15 '25 07:12 LeafShi1