Skip to content

System.Windows.SystemColors useless in Windows 10? #774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
spurdata opened this issue May 23, 2018 · 9 comments
Open

System.Windows.SystemColors useless in Windows 10? #774

spurdata opened this issue May 23, 2018 · 9 comments
Labels
area-WPF Issues or PRs that relate to WPF or XAML. .net/prod Pri2 Indicates issues/PRs that are medium priority unspecified/svc waiting-on-feedback Indicates PRs that are waiting for feedback from SMEs before they can be merged
Milestone

Comments

@spurdata
Copy link

System.Windows.SystemColors does not seem to be relevant any more. The colors do not correspond to the colors being used by Windows 10, and cannot be adjusted by the user like in previous Windows versions. Some note on this in the documentation, and guidance of how to make our desktop apps match the Windows 10 environment, would be helpful.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@mairaw
Copy link
Contributor

mairaw commented Jun 4, 2018

@SamBent can you comment on this issue?

@mrmsbarnes
Copy link

Agree completely with spurdata.

@mairaw
Copy link
Contributor

mairaw commented Nov 15, 2018

@OliaG @SamBent can you help with this question? We can add a note to the docs once the behavior is confirmed.

@OliaG
Copy link
Member

OliaG commented Nov 17, 2018

@merriemcgaw is this something we will add in future? What should be the message in the docs about it?

@Tanya-Solyanik
Copy link
Member

Tanya-Solyanik commented Nov 17, 2018

Hi @spurdata, Hi @mrmsbarnes, Could you please look up what OS your application supports? If your project has an app.manifest file, does it have the following entry:

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
      <!-- A list of the Windows versions that this application has been tested on
           and is designed to work with. Uncomment the appropriate elements
           and Windows will automatically select the most compatible environment. -->
      <!-- Windows 10 -->
      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />

    </application>
  </compatibility>

This compatibility setting controls system color values among other things.

@BillWagner BillWagner transferred this issue from dotnet/docs Nov 20, 2018
@dotnet-bot dotnet-bot added untriaged New issue has not been triaged by the area owner Source - Docs.ms and removed rerun-labels labels Nov 20, 2018
@mairaw
Copy link
Contributor

mairaw commented Nov 26, 2018

@spurdata did you check the setting as @Tanya-Solyanik suggested?

@mairaw mairaw added area-WPF Issues or PRs that relate to WPF or XAML. needs-author-action An issue or pull request that requires more info or actions from the author. and removed untriaged New issue has not been triaged by the area owner labels Nov 26, 2018
@mairaw mairaw added this to the Backlog milestone Nov 26, 2018
@spurdata
Copy link
Author

spurdata commented Nov 27, 2018

Thanks @mairaw and @Tanya-Solyanik . I just did a test Windows Forms app and it did not contain that entry in the manifest.

The issue is that settings like "Active Caption" no longer work as advertised. From the docs, ActiveCaptionColor "Gets a Color structure that is the background color of the active window's title bar.". This is not so. Suppose I use the Windows 10 Color app to personalize my background color to "Green", and then I have a label on my form that uses "ActiveCaptionColor" as its background. See below - it pulls some blue from some legacy "aero" theme I guess. It does NOT match the Windows 10 system theme.

image

So now you get cases where even though you are using "system colors", you are completely out of synch with the user's desired color scheme. This is not only an issue in .Net but also in Access forms.

The documentation request is to point out this issue to people that are reading about the System.Colors class. And then somewhere I'd be happy to log a larger complaint about actually addressing the issue, though I'm not sure where to do that? Thanks again for your time.

@mairaw mairaw added waiting-on-feedback Indicates PRs that are waiting for feedback from SMEs before they can be merged and removed needs-author-action An issue or pull request that requires more info or actions from the author. labels Aug 7, 2019
@mairaw
Copy link
Contributor

mairaw commented Aug 7, 2019

@Tanya-Solyanik any further info given @spurdata's response? Thanks.

@Soothsilver
Copy link

SystemColors still have some effect. For example, they affect the background of textboxes. As a user, you can change them with registry hacks (https://superuser.com/a/1190188/338981) and if you enable a high contrast mode, the system colors also reflect this.

@PRMerger10 PRMerger10 added the Pri2 Indicates issues/PRs that are medium priority label Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WPF Issues or PRs that relate to WPF or XAML. .net/prod Pri2 Indicates issues/PRs that are medium priority unspecified/svc waiting-on-feedback Indicates PRs that are waiting for feedback from SMEs before they can be merged
Projects
None yet
Development

No branches or pull requests

9 participants