render/m3e/wallpaper_seed library
"Match my wallpaper" (M3 Expressive variant; spec §5.3 #1): reads the
Android 12+ wallpaper colour through dynamic_color and hands it to the
generator as the seed hue; the generator re-runs every guardrail.
Android only (packages.md §7): dynamic_color has no iOS
implementation, and its own error handling misses iOS's
MissingPluginException, so the plugin is called directly, guarded by
platform, and every failure reads as "no wallpaper colour". The option
is hidden wherever wallpaperSeedSupported is false.
Properties
- wallpaperSeedSupported → bool
-
Whether "Match my wallpaper" can be offered on this platform (Android;
the plugin itself returns null below Android 12).
no setter
Functions
-
readWallpaperSeedArgb(
) → Future< int?> - Reads the wallpaper's primary colour as opaque ARGB (tone 40 of the primary tonal palette), or null when unsupported or unavailable. Never throws.
-
wallpaperHueTenths(
int argb) → int -
The OKLCH hue of
argbin tenths of a degree (0–3599): the seed hue the M3E generator uses for the wallpaper variant.