Expand description
Orientation-aware wallpaper helper.
Theme assets only ship a single landscape image per variant; portrait surfaces (phones held vertically, the lock screen on a tablet, …) take a left-aligned crop of that image down to the surface aspect ratio. The crop result is cached so panning around different windows on the same display does not redecode anything.
Construct with WallpaperBundle::from_path (or one of the
…_or_fallback variants) at startup, then call
WallpaperBundle::for_size from each view() to get the variant
appropriate for the current surface.
Structs§
- A wallpaper that adapts to landscape vs portrait surfaces.
Type Aliases§
- Decoded RGBA image: (pixel buffer, width, height).