ltk::theme::assets

Function wallpaper

Source
pub fn wallpaper() -> Option<WallpaperSpec>
Expand description

The active mode’s homescreen / shell wallpaper. Prefers an explicit declaration in theme.json; when absent, falls back to the convention path branding/{mode}/wallpaper.svg via branding_asset (with mode → opposite-mode → no-mode fallback). Returns None when neither source resolves to an existing file.

Always returns the SVG. Use branding_image( "wallpaper", sw, sh ) when the surface size is known to prefer a pre-rendered raster variant under branding/{mode}/wallpaper/.