Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Support for DWM with more accurate colors #50

Merged
merged 5 commits into from
Jun 13, 2022

Conversation

Craftplacer
Copy link
Contributor

@Craftplacer Craftplacer commented Jun 11, 2022

As discussed in #48, I have made use of the alternative method of interfacing with DWM. Using the undocumented function GetColorizationParameters and the equivalent registry keys HKCU\Software\Microsoft\Windows\DWM to fetch the correct window color before it goes through "Aero treatment".

I have also bumped the version and done changes to the documentation to mention Windows Aero as well, using a link to a Microsoft page explaining Aero from the Internet Archive (since there is no better official page describing it).

The functioning example can be seen in the screen recording below:

AnyDesk_VQAMIYm50g.mp4

Craftplacer added 4 commits June 7, 2022 23:28
Adds Windows Vista+ support
- Change mentions of Windows
- Bump version
- Add links regarding Aero
@Craftplacer
Copy link
Contributor Author

Craftplacer commented Jun 11, 2022

A good question may be: "Why include the undocumented API call when you can just read from the registry as well?"

One thing I have observed is that the API call is more accurate because the registry only updates when the user saves the previewed glass color by pressing "Apply changes" in the control panel.

This will be useful when users are toying around with Flutter apps changing their color schemes on the fly while the glass color is being changed.

Copy link
Contributor

@guidezpl guidezpl left a comment

Choose a reason for hiding this comment

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

Nice!

README.md Outdated Show resolved Hide resolved
Co-authored-by: Pierre-Louis <6655696+guidezpl@users.noreply.github.com>
@guidezpl guidezpl merged commit 3dfdefc into material-foundation:main Jun 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows RT version
2 participants