Expand description

Look up icons and icon theme info on Linux.

Examples

Find an icon for Wireshark.

let wireshark_icon = linicon::lookup_icon("wireshark").next();
println!("{:?}", wireshark_icon);

Find all of the icons for Wireshark from the Faenza theme with a size of 64 and a 1x scale.

use linicon::lookup_icon;
let wireshark_icons: Vec<_> = lookup_icon("wireshark")
    .from_theme("Faenza")
    .with_size(64)
    .with_scale(1)
    .use_fallback_themes(false)
    .collect();
println!("{:#?}", wireshark_icons);

Re-exports

pub use errors::LiniconError;
pub use errors::Result;

Modules

Structs

An iterator over the icons that have the name given to lookup_icon.

A path to an icon and meta data about that icon

Metadata about a theme

Enums

The type of icon returned i.e. file type

Functions

Get the user’s current icon theme

Lookup icons with by name, size, and scale in the given theme or one of its fallbacks.

Get metadata about installed themes.

Get metadata about installed themes, with additional search paths.