Skip to main content

fetch_icon_svg

Function fetch_icon_svg 

Source
pub fn fetch_icon_svg(
    icon: &str,
    color: &str,
    width: u32,
    height: u32,
) -> Result<Vec<u8>>
Expand description

Fetch an icon’s SVG bytes, checking the on-disk cache first and falling back to the Iconify API on a miss. Same public signature as before this fix — every existing caller (icon.rs, preload.rs, badge.rs, notification.rs, list.rs, stat.rs) gets the disk cache for free.