Function selector_tier
pub fn selector_tier(
theme: &Theme,
state: SelectionState,
ground: AlphaColor<Srgb>,
) -> SelectionTierExpand description
How one selector on ground paints for state.
| State | Fill | Edge | Lit rim |
|---|---|---|---|
| idle | none | none | none |
| hover | the active lift at the finish’s hover opacity | none | none |
| active | one surface step of the ground, opaque (toward the light on a light palette) | hairline_on(ground, 26) | the finish’s rim |
| pressed | as active, scaled 0.97 | as active | as 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.