Skip to main content

selector_tier

Function selector_tier 

pub fn selector_tier(
    theme: &Theme,
    state: SelectionState,
    ground: AlphaColor<Srgb>,
) -> SelectionTier
Expand description

How one selector on ground paints for state.

StateFillEdgeLit rim
idlenonenonenone
hoverthe active lift at the finish’s hover opacitynonenone
activeone surface step of the ground, opaque (toward the light on a light palette)hairline_on(ground, 26)the finish’s rim
pressedas active, scaled 0.97as activeas active

The active lift is a surface step of the ground, as super::selection_tier_on’s is, so a selector and a selected row move the same distance off the same ground. Hover is a film rather than a half step so a frosted strip still shows through a hovered tab; where the finish is opaque it is that film composited onto the ground. Its opacity is admitted only where it clears super::SELECTION_MIN_STEP on every ground an opaque strip offers.