fix: load svgs with resvg

This commit is contained in:
2024-10-30 21:54:41 +00:00
parent c62fbfe510
commit a98eb6f4ce
12 changed files with 316 additions and 60 deletions

View File

@ -24,7 +24,9 @@ impl NostrWidget for Header {
Layout::left_to_right(Align::Center),
|ui| {
ui.style_mut().spacing.item_spacing.x = 16.;
if Image::from_bytes("logo.svg", logo_bytes)
if services
.img_cache
.load_bytes("logo.svg", logo_bytes)
.max_height(24.)
.sense(Sense::click())
.ui(ui)