From faa7627ea41b1ce372bae7f0d2ae36e9b15a97a3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 31 May 2023 21:31:58 +0200 Subject: Introduce `web-colors` feature flag to enable sRGB linear blending 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/ --- wgpu/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'wgpu/Cargo.toml') diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index b5401626..badd165b 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -11,6 +11,7 @@ repository = "https://github.com/iced-rs/iced" geometry = ["iced_graphics/geometry", "lyon"] image = ["iced_graphics/image"] svg = ["resvg"] +web-colors = ["iced_graphics/web-colors"] [dependencies] wgpu = "0.16" -- cgit From b5fc0f4a3aa45d33d81d5799396f0b0770c4dff3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 1 Jun 2023 03:10:02 +0200 Subject: Use consistent color strategy in `glyphon` --- wgpu/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wgpu/Cargo.toml') diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index badd165b..7e50dff2 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -45,7 +45,7 @@ path = "../graphics" [dependencies.glyphon] version = "0.2" git = "https://github.com/hecrj/glyphon.git" -rev = "cf7fe9df00499b868a6a94fa5fdb0a4ca368c9f9" +rev = "26f92369da3704988e3e27f0b35e705c6b2de203" [dependencies.glam] version = "0.24" -- cgit