Skip to content
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

Fix Potential Crash in Fluent High Contrast #10229

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

harshit7962
Copy link
Member

@harshit7962 harshit7962 commented Jan 6, 2025

Description

The theme generator for Fluent themes partially relies on common brushes, colors, and keys written in theme files, i.e. Light.xaml, Dark.xaml and HC.xaml. The current implementation of HC.xaml contains a duplication of SystemColorWindowColor key.
The resource dictionary loaded at runtime for High Contrast theme is Fluent.HC.xaml, which right now is correct but if/when we generate the same, it will result in duplication of that key and hence runtime crashing of applications on high contrast theme.

Customer Impact

Fixes any future regression and crash on high contrast theme (Fluent)

Testing

Local Build Pass

Risk

Low, removal of a xaml key.
Does not violate API contract as the key is already present.

Microsoft Reviewers: Open in CodeFlow

@harshit7962 harshit7962 requested review from a team as code owners January 6, 2025 07:18
@dotnet-policy-service dotnet-policy-service bot added the PR metadata: Label to tag PRs, to facilitate with triage label Jan 6, 2025
Copy link
Contributor

@himgoyalmicro himgoyalmicro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harshit7962 harshit7962 merged commit d361143 into dotnet:main Jan 6, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR metadata: Label to tag PRs, to facilitate with triage Win 11 Theming
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants