Skip to main content

part_tokens

Function part_tokens 

pub fn part_tokens(
    theme: &Theme,
    role: SurfaceRole,
    _: (AlphaColor<Srgb>, AlphaColor<Srgb>, AlphaColor<Srgb>),
    ground: AlphaColor<Srgb>,
) -> PartTokens
Expand description

The values a part of role is drawn with under theme: fill, ink and edge as its role and state resolved them, ground what it stands on, and the parameters the role’s finish states. No backdrop: the toolkit says where a part shows one.