1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Fix incorrect color fringe colors on SVG:s (#7069)

This is a problem that affected the fringes on all SVG:s with
transparency, especially on a light background.

## Before

![image](https://github.com/user-attachments/assets/342823ad-005c-4f82-83a6-d2dcccfd3221)


## After

![image](https://github.com/user-attachments/assets/73398265-d333-461b-8c2b-fce405d95a9c)
This commit is contained in:
Emil Ernerfeldt
2025-05-21 17:18:36 +02:00
committed by GitHub
parent f23618701f
commit 54ae2360ec
6 changed files with 49 additions and 3 deletions

View File

@@ -295,7 +295,7 @@ pub fn load_svg_bytes_with_size(
&mut pixmap.as_mut(),
);
let image = egui::ColorImage::from_rgba_unmultiplied([w as _, h as _], pixmap.data());
let image = egui::ColorImage::from_rgba_premultiplied([w as _, h as _], pixmap.data());
Ok(image)
}