ltk::theme::assets

Function icon_path

Source
pub fn icon_path(name: &str) -> Option<PathBuf>
Expand description

Resolve a theme-relative icon name to an absolute path inside the active theme’s icons/catalogue/ tree.

name is the slash-separated path without the .svg extension (e.g. "general/right-simple", "system/wifi-signal-full"). The lookup tries the catalogue/filled/<name>.svg variant first and falls back to catalogue/line/<name>.svg; returns None when neither file exists or the active document has no on-disk root.