Skip to content

Light theme SystemColor* resources hold HighContrast values #24437

Open

Description

@MartinZikmund

Current behavior 🐛

In src/Uno.UI/UI/Xaml/Style/Generic/SystemResources.xaml, the Light theme dictionary carries HighContrast
values for the SystemColor* keys instead of light-theme ones:

Key Default (correct) Light (currently) HighContrast
SystemColorWindowColor #FFFFFFFF #FF000000 #FF000000
SystemColorButtonFaceColor #FFF0F0F0 #FF000000 #FF000000
SystemColorButtonTextColor #FF000000 #FFFFFFFF #FFFFFFFF
SystemColorGrayTextColor #FF6D6D6D #FF3FF23F #FF3FF23F
SystemColorHighlightColor #FF3399FF #FF1AEBFF #FF1AEBFF
SystemColorHotlightColor #FF0066CC #FFFFFF00 #FFFFFF00

The Light column is a copy of the HighContrast one. A green "gray text" and a yellow hotlight colour in the light
theme are not plausible values.

Separately, in the HighContrast dictionary SystemColorWindowColor and SystemColorWindowTextColor are both
#FF000000 — black text on a black window. SystemColorWindowTextColor should be #FFFFFFFF there.

This is long-standing (it predates the current SystemResources.xaml), and it is only visible to code that resolves
these keys directly rather than through the SystemControl* brushes, which is why it has gone unnoticed.

Expected behavior 🎯

The Light dictionary should carry the same system colours as Default, and HighContrast's WindowTextColor should
contrast with its WindowColor.

How to reproduce it (as minimally and precisely as possible) 🔬

<Border Background="{ThemeResource SystemColorWindowColor}" RequestedTheme="Light" />

or read Application.Current.Resources["SystemColorGrayTextColor"] under an explicit Light theme.

Workaround 🛠️

Override the affected keys in the app's own Light theme dictionary.

Renderer 🎨

  • Skia

Affected platforms 📱💻🖥️

All platforms 🌍

Anything else we need to know? 💬

Spotted while reviewing #21513, which rewrites SystemResources.xaml and carries these values over verbatim. Fixing
them is a visual change in its own right, so it is deliberately kept out of that PR.

Activity

  1. added
    triage/untriaged
    on Sep 7, 2026
  2. MartinZikmund commented on Oct 14, 2026

    @MartinZikmund
    MemberAuthor

    Details from duplicate #25021 that are not in this issue yet:

  3. added
    7.1
    on Oct 14, 2026
  4. removed
    7.1
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions