mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
Replaces the outlined segmented row with a filled track carrying a single sliding thumb. The old control stacked three signals for one state (container fill, bold, underline) in an outline treatment nothing else in the card uses, which is what made it read as bolted on. The track now sits at the same tonal step as the battery panel above it and reuses the card's 16dp/12dp radii, so selection is carried by thumb position and fill alone. Only the active mode is named and its slot expands to fit, which keeps long translations off the width budget entirely. Slot widths, label reveal and content tint are all derived from one clamped fractional position, so geometry and content stay in lockstep. The thumb's leading edge is that position in collapsed-slot units rather than a sum of the animating widths, which would overshoot the target and crawl back. Also fixes an invisible pending state: the in-flight branch set activeContainerColor to secondaryContainer, which is exactly what SegmentedButtonDefaults already used for the selected segment, so a requested mode was indistinguishable from a confirmed one. An unconfirmed request now draws a hollow pulsing thumb and tints the mode the pods are still in. Transparency moves off Icons.TwoTone.Hearing, which is already the "In ear" status chip and rendered identically two rows below it in the same card.
181 KiB
1080x2400px
181 KiB
1080x2400px