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

Shift to ControlzEx HC code #6880

Merged

Conversation

dsrivastavv
Copy link
Contributor

Summary of the Pull Request

Use High-contrast code added in controlzex >= 4.3.1

PR Checklist

Info on Pull Request

ControlzEx took the HC detection logic added in #4007 and added it as part of their theme manager. This PR removes our HC logic and shifts to the one in controlzex.

Note : System.Windows.ResourceDictionary Warning: 9 : Resource not found warning is being thrown on changing theme. This is happening because ThemeSyncMode.SyncAll tries to find a theme with accent color and if not found, generates a runtime theme. This results in following change sequence : old theme -> runtime theme -> new theme. This warning is not harmful as correct theme is applied at the end of theme change call and powertoys run is hidden during this process.

Validation Steps Performed

Manually validated that colors are appropriately changed with change with Light/dark and high contrast themes.

@dsrivastavv dsrivastavv added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label Sep 28, 2020
@dsrivastavv dsrivastavv requested a review from a team September 28, 2020 20:47
Copy link
Contributor

@arjunbalgovind arjunbalgovind left a comment

Choose a reason for hiding this comment

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

LGTM! Validated that the theme gets updated for Light/Dark/High Contrast modes

@dsrivastavv dsrivastavv merged commit 55fd874 into microsoft:master Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-PowerToys Run Improved app launch PT Run (Win+R) Window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants