Skip to content

SystemColor placeholders: Light dictionary holds high-contrast values, HighContrast has black-on-black Window/WindowText #25021

Closed as duplicate

Description

@MartinZikmund

Current behavior 🐛

src/Uno.UI/UI/Xaml/Style/Generic/SystemResources.xaml hard-codes the SystemColor*Color placeholders that WinUI injects natively.

  • Light uses the high-contrast-black palette: ButtonFace #FF000000, ButtonText #FFFFFFFF, GrayText #FF3FF23F, Highlight #FF1AEBFF, HighlightText #FF000000, Hotlight #FFFFFF00, Window #FF000000. The Default dictionary holds the Win32 light values.
  • HighContrast: SystemColorWindowColor and SystemColorWindowTextColor are both #FF000000.

ResourceResolver.UpdateSystemColorAndBrushResources only rewrites the HighContrast dictionaries, so the Light placeholders are never corrected.

Expected behavior 🎯

The Light values match Default, as on WinUI, where the values come from the OS. The HighContrast placeholders are not black-on-black.

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

In Light theme, resolve a WinUI key that references these colors. For example, RadioButtonContentPointerOverForegroundThemeBrush maps to SystemColorHighlightTextColor (WinUI generic.xaml, Light dictionary) and comes out black.

Workaround 🛠️

Override the SystemColor*Color keys in app resources.

Renderer 🎨

  • Skia

Affected platforms 📱💻🖥️

All Skia targets

Anything else we need to know? 💬

The proper fix (inject these keys from C# like WinUI) belongs with the accent-colour work in #22851. Found while auditing #21513.

Activity

  1. added
    kind/bug
    area/theming
    difficulty/starter 🚀
    on Oct 5, 2026
  2. MartinZikmund commented on Oct 14, 2026

    @MartinZikmund
    MemberAuthor

    Closing as a duplicate of #24437. Any details that were only here have been copied over to #24437.

  3. Jen-Uno commented on Oct 28, 2026

    @Jen-Uno
    Contributor

    This issue was closed as a duplicate, so there is nothing for QA to verify. Moving it from Ready for QA Review to Done on the Uno Team Backlog.

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

    area/themingdifficulty/starter 🚀kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions