Skip to content

fix: convert system colors to device color space in systemPreferences #28121

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

Merged
merged 1 commit into from
Mar 13, 2021

Conversation

MarshallOfSound
Copy link
Member

Fixes #27048

There's a helpful skia util for doing this so it's not too bad in the end. Diving down the rabbit hole that is our color related APIs at the moment. I'll be raising the transparency (missing alpha channel) issue with the API WG soon for discussion 👍

Notes: Colors returned from systemPreferences.getAccentColor(), getSystemColor and getColor are now correctly converted into the devices color space. Previously the color would have been subtly incorrect.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Mar 11, 2021
@MarshallOfSound MarshallOfSound added semver/patch backwards-compatible bug fixes target/11-x-y labels Mar 11, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Mar 12, 2021
@MarshallOfSound MarshallOfSound merged commit f732566 into master Mar 13, 2021
@release-clerk
Copy link

release-clerk bot commented Mar 13, 2021

Release Notes Persisted

Colors returned from systemPreferences.getAccentColor(), getSystemColor and getColor are now correctly converted into the devices color space. Previously the color would have been subtly incorrect.

@trop
Copy link
Contributor

trop bot commented Mar 13, 2021

I have automatically backported this PR to "11-x-y", please check out #28171

@trop trop bot removed the target/11-x-y label Mar 13, 2021
@trop
Copy link
Contributor

trop bot commented Mar 13, 2021

I have automatically backported this PR to "12-x-y", please check out #28172

@trop
Copy link
Contributor

trop bot commented Mar 13, 2021

I have automatically backported this PR to "13-x-y", please check out #28173

@MarshallOfSound MarshallOfSound deleted the sys-color-space branch March 13, 2021 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect values from systemPreferences.getAccentColor()
3 participants