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

Introduce web-colors feature flag to enable "sRGB linear" blending #1888

Merged
merged 4 commits into from
Jun 3, 2023

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented May 31, 2023

This is how browsers perform color management. They treat gamma-corrected sRGB colors as if they had linear components.

Correctness aside, this mode is introduced for legacy reasons. Most UI/UX tooling uses this color management as well, and many developers and designers have created an intuition about how color should behave from interacting with a browser.

This feature flag should facilitate application development with iced in those cases.

More details: https://webcolorisstillbroken.com/

This is how browsers perform color management. They treat
gamma-corrected sRGB colors as if they were linear RGB.

Correctness aside, this mode is introduced for legacy reasons. Most
UI/UX tooling uses this color management as well, and many have created
an intuition about how color should behave from interacting with a
browser.

This feature flag should facilitate application development with `iced`
in those cases.

More details: https://webcolorisstillbroken.com/
@hecrj hecrj added feature New feature or request rendering web styling labels May 31, 2023
@hecrj hecrj added this to the 0.10.0 milestone May 31, 2023
@hecrj
Copy link
Member Author

hecrj commented May 31, 2023

Normal vs Web colors

imageimage

@bungoboingo
Copy link
Contributor

A necessary evil I think. LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants