Skip to content

Template app doesn't respect Themes/High Contrast mode #5177

Open
@kmelmon

Description

@kmelmon

The template app has hard-coded colors baked into it, which means it doesn't respect Windows themes or high contrast mode. This could cause our customers to fall into a pit of failure, as by default the "Hello World" example, which not correct, may end up being copied into real apps.

Here's a screenshot of the app in Dark mode:
CaptureDark

Notice it looks like light mode. That ain't right.

In high contrast mode, XAML takes over some of the hard-coded brushes, but not all. Here's a screenshot in high contrast mode:

Capture

Notice the TextBlocks are correctly switching to high contrast, but the background of the window is staying white, it should have turned black. There may be some other problems in this page as well.

The overall issue is the hard-coded colors.... We should fix the template app to not do this.

I think fixing this will likely need to happen upstream, tracking this here.

Hopefully we can change the generic, non-XAML controls to use the newly added "platform color" feature. We may also be able to just not set any colors on the real controls and let the native platform use its defaults. This will take some investigation across android/ios.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions