Skip to main content

selection_tier

Function selection_tier 

pub fn selection_tier(theme: &Theme, state: SelectionState) -> SelectionTier
Expand description

Resolve one control’s appearance. This is the only way the shell expresses “which one is chosen” — active tab, active workspace, active strip, selected row, chosen scope chip, current power profile.

StateFillBorderInner glowScale
idletransparentnonenone1.0
hoverlift(0.5)nonenone1.0
activelift(1.0)hairlinehairline1.0
pressedas activeas activeas active0.97

Selection is a lift, never an accent fill: the accent is reserved for live state the user did not choose (recording, sharing, a peer joining, unread), and a selected control using it would collide with that. An active control never gets more prominent on hover — the contrast gain belongs to inactive controls brightening toward it — and pressed implies the lifted tier before activation propagates, so a click feels instant.

No shadow: elevation and selection are different vocabularies, and rows of idle controls each casting one is what made the tab strip read as muddy rather than as chrome.