ltk::theme::assets

Function branding_image

Source
pub fn branding_image(name: &str, sw: u32, sh: u32) -> Option<PathBuf>
Expand description

Resolve a branded image asset, preferring a raster variant (WebP / PNG / JPEG) over the canonical SVG. Tries [branding_raster(name, sw, sh)] first; on None (no raster files at all under branding/{mode}/{name}/) falls back to [branding_asset(name, "svg")].

Pass (0, 0) to get the smallest available raster — useful at startup before the surface size is known.