dotnet / dotnet/winforms

Winforms does not implement windows theme from users profile

Open
#2,160 3 comments 1 reaction 0 assignees View on GitHub
area-Styling area-Theming
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

* .NET Core Version: (e.g. 3.0 Preview1, or daily build number, use `dotnet --info`)
* Have you experienced this same bug with .NET Framework?: Yes/No

**Problem description: Winforms is using standard color scheme and not the users profiles theme**

**Actual behavior:** Color scheme (borders/ colors/ icons) is not the same as in the -net framework nor is it the windows user profile color theme

**Expected behavior:**
One would be able to expect that there would be a option/property to implement legacy or to use the users Profils theme colors. there is no such option, nor does the default color's follow windows 10 color settings.

If executing in windows the forms should be able to pickup the users profile and use the appropriate colors. At the moment a fixed color is used, this is possible to be fixed by overriding on paint but this should not be needed. The usual comment to use WPF is not an option as Winforms is the platform chosen.

It should be relatively easy to have the color scheme be implemented the same way as Application.EnableVisualStyles() is implemented, it even could be a parameter with an enum stating if legacy or windows theme colors should be used. Please note that I'm mentioning colors not WPF rendering.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.