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§
- Icon
Iter - An iterator over the icons that have the name given to
lookup_icon
. - Icon
Path - A path to an icon and meta data about that icon
- Theme
- Metadata about a theme
Enums§
- Icon
Type - 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.