Skip to main content

Module elevation

Module elevation 

Structs§

Elevation
Elevation (docs/design-language.md, “Surfaces”): a window tile casts one soft shadow that lifts it off the desktop ground; a floating thing casts two, a tight contact layer that defines its edge and a wide one that reads as distance. Bars, cards and selected controls cast none: a selection is a lift (crate::tokens::Intents::selection).
Outline
An outline standing in for a shadow.
Shadow
One step of the elevation ramp — a complete description of a drop shadow, and the only description a surface is allowed to use.

Constants§

LIGHT_SHADOW_SCALE
How much of the dark material’s floating shadow a light material keeps: the design language’s light floating layer (alpha 0.14) over the dark one (0.38).