gpui: Fix img element to render correct SVG color (#15488)
Release Notes: - N/A It should convert RGBA to BGRA. > I added an example color svg, that was I make based on [Lucide grip icon](https://lucide.dev/icons/grip). ## Before <img width="692" alt="image" src="https://github.com/user-attachments/assets/5eb03606-76ce-4049-b3ad-8d1084a4fa55"> ## After <img width="695" alt="image" src="https://github.com/user-attachments/assets/650dd411-2095-4e92-b3fd-8e91c6954aa3"> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
parent
5cdca6d8dd
commit
345efa4e36
3 changed files with 20 additions and 2 deletions
|
@ -131,7 +131,7 @@ fn main() {
|
|||
PathBuf::from_str("crates/gpui/examples/image/app-icon.png").unwrap(),
|
||||
),
|
||||
remote_resource: "https://picsum.photos/512/512".into(),
|
||||
asset_resource: "image/app-icon.png".into(),
|
||||
asset_resource: "image/color.svg".into(),
|
||||
})
|
||||
})
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue