[Dark Mode]HelpProvider text color is barely visible
.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
Classic Mode
Steps to reproduce
- Create a .NET Core WinForms project
- Add button and helpProvider to the form
- Set button's properties as below
- HelpString on helpProvider : testing 123
- ShowHelp on helpProvider : True
- Build and run the project
- Click the button and press F1 key
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.