CheckBox and RadioButton ignore BackColor and ForeColor when Appearance=Button in Dark Mode
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 20h 23m
- Merged PRs (30d)
- 103
Description
### .NET version
.NET 11.0.100-rc.1.26404.113
### Did it work in .NET Framework?
Not tested/verified
### Did it work in any of the earlier releases of .NET Core or .NET 5+?
No, this issue also repro on .NET10
### Issue description
When `CheckBox.Appearance` or `RadioButton.Appearance` is set to `Appearance.Button`,
custom `BackColor` and `ForeColor` values are ignored in Dark Mode.
The controls are rendered using the system button theme colors instead of the user-specified colors.
Regular `Button` controls honor the same color settings correctly.
### Steps to reproduce
1. Create a WinForms .NET application with RadioButton/CheckBox control
2. Set RadioButton/CheckBox's `Appearance`is Button
3. Custom RadioButton/CheckBox's BackColor and ForeColor
4. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file
5. Run the application to observe
Contributor guide
Assessment
This issue has not been assessed yet.