Skip to main content

apply_density

Function apply_density 

Source
pub fn apply_density(theme: &ResolvedTheme, density: Density) -> ResolvedTheme
Expand description

The theme a surface of this density runs with: control and spacing scaled by the theme’s $density.<name> multiplier and rounded to whole px; default (or a theme without the multiplier) returns it unchanged. Done once per surface, so every resolver and fixture stays density-agnostic.