ltk

Module chassis

Source
Expand description

Scaffolding shared by full-screen ambient surfaces (greeter, lock screen, kiosk): theme bring-up, branding/wallpaper loading and the wallpaper-backed view stack. Thin convenience over theme and WallpaperBundle — every app that paints a wallpaper behind centred content repeats this otherwise.

Functions§

  • Stack content over wallpaper resolved for the given surface size.
  • The active theme’s branding image name (e.g. "wallpaper", "lockscreen") as a WallpaperBundle, falling back to a solid fill of the palette background when the theme ships none.
  • Find, install and activate the default theme document in mode. Returns the failure message instead of exiting; the caller decides how to abort.
  • Load a symbolic theme icon to RGBA, tinted with tint. None if missing.
  • Decode the active theme’s horizontal logo to RGBA, size px on the longer edge. None if the theme ships no logo or the SVG fails to rasterise.
  • Convenience for branding_bundle_or_solid with "wallpaper".