Container shadows are inconsistent between wgpu
and tiny-skia
with custom theme #2339
Open
Description
Is there an existing issue for this?
- I have searched the existing issues.
Is this issue related to iced?
- My hardware is compatible and my graphics drivers are up-to-date.
What happened?
I have a custom theme where the Container
appearance includes:
shadow: Shadow {
color: Color::BLACK,
offset: Vector::ZERO,
blur_radius: 0.0,
}
With wgpu
, there is no visible shadow. With tiny-skia
, black fills whole container.
I can work around it by using Color::TRANSPARENT
.
Gist (using red shadow for illustration purposes): https://gist.github.com/mtkennerly/993c3fbdd7ea770c0c28d268cf063664
ICED_BACKEND=wgpu cargo run
ICED_BACKEND=tiny-skia cargo run
What is the expected behavior?
The wgpu
and tiny-skia
examples should look the same.
Version
crates.io release
Operating System
Windows
Do you have any log output?
No response