Skip to main content

load_icon

Function load_icon 

Source
fn load_icon(theme: &CursorTheme, name: &str) -> Result<Vec<Image>, String>
Expand description

Parse the named icon from the theme’s cursor file into its frames.

Empty parses are rejected so nearest_images’s min_by_key().unwrap() cannot panic on a cursor file that has a valid header but zero images.