diff options
| author | 2023-06-03 03:04:38 +0200 | |
|---|---|---|
| committer | 2023-06-03 03:04:38 +0200 | |
| commit | c15f1b5f6575792cc89bb5fba2e613428397e46a (patch) | |
| tree | 77526943d7aac8004e3ac7dca07154dcbbe25a0f /wgpu/src/layer | |
| parent | b353767d2d9703aae35f10ebf8a9ee1490c3ae37 (diff) | |
| parent | b5fc0f4a3aa45d33d81d5799396f0b0770c4dff3 (diff) | |
| download | iced-c15f1b5f6575792cc89bb5fba2e613428397e46a.tar.gz iced-c15f1b5f6575792cc89bb5fba2e613428397e46a.tar.bz2 iced-c15f1b5f6575792cc89bb5fba2e613428397e46a.zip | |
Merge pull request #1888 from iced-rs/web-colors
Introduce `web-colors` feature flag to enable "sRGB linear" blending
Diffstat (limited to '')
| -rw-r--r-- | wgpu/src/layer.rs | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/wgpu/src/layer.rs b/wgpu/src/layer.rs index 1a870c15..71570e3d 100644 --- a/wgpu/src/layer.rs +++ b/wgpu/src/layer.rs @@ -11,6 +11,7 @@ pub use text::Text;  use crate::core;  use crate::core::alignment;  use crate::core::{Color, Font, Point, Rectangle, Size, Vector}; +use crate::graphics::color;  use crate::graphics::{Primitive, Viewport};  use crate::quad::{self, Quad}; @@ -150,7 +151,7 @@ impl<'a> Layer<'a> {                          bounds.y + translation.y,                      ],                      size: [bounds.width, bounds.height], -                    border_color: border_color.into_linear(), +                    border_color: color::pack(*border_color),                      border_radius: *border_radius,                      border_width: *border_width,                  }; | 
