Skip to main content

adaptive_layers

Function adaptive_layers 

Source
pub fn adaptive_layers(png: &[u8]) -> Result<(Vec<u8>, [u8; 3]), String>
Expand description

An Android adaptive icon made from a square icon image: the foreground layer (PNG, ADAPTIVE_SIDE square) holds the image over the 72 dp in the middle that the launcher’s shape shows, and the background is the colour of the image’s corner, or white where the corner is clear. A full-bleed icon on a plate thus fills the launcher’s shape, as other apps’ icons do, instead of being shrunk inside a plate of the launcher’s own.