fix: icon rgba

This commit is contained in:
Ashley Wulber 2024-10-30 01:07:41 -04:00
parent d84447aaad
commit 4964239539
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -74,8 +74,8 @@ pub fn from_raster_pixels(
Handle { Handle {
symbolic: false, symbolic: false,
data: match pixels.into() { data: match pixels.into() {
Cow::Owned(pixels) => Data::Image(image::Handle::from_bytes(pixels)), Cow::Owned(pixels) => Data::Image(image::Handle::from_rgba(width, height, pixels)),
Cow::Borrowed(pixels) => Data::Image(image::Handle::from_bytes(pixels)), Cow::Borrowed(pixels) => Data::Image(image::Handle::from_rgba(width, height, pixels)),
}, },
} }
} }