Crate linicon

Source
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§

errors

Structs§

IconIter
An iterator over the icons that have the name given to lookup_icon.
IconPath
A path to an icon and meta data about that icon
Theme
Metadata about a theme

Enums§

IconType
The type of icon returned i.e. file type

Functions§

get_system_theme
Get the user’s current icon theme
lookup_icon
Lookup icons with by name, size, and scale in the given theme or one of its fallbacks.
themes
Get metadata about installed themes.
themes_with_extra_paths
Get metadata about installed themes, with additional search paths.