Skip to main content

set_icon

Function set_icon 

Source
pub fn set_icon(root: &Path, source: &Path) -> Result<()>
Expand description

Makes source (jpg, jpeg, png, webp or gif, first frame) the library’s icon: scaled uniformly so the shorter side is 64 px, saved as PNG. The file is written next to icon.png and renamed over it, so a failure leaves the old icon alone.