Module now_playing
Expand description
What plays, painted the one way every player surface paints it: Music’s transport and its Now Playing page, the shell’s Quick Settings card, the lock screen and the desk.
SongFace: the song’s cover and lines. When the song changes (the next one, a cover arriving over its placeholder) the old cover and lines fade out where they stand while the new ones fade in (CrossFade); a change a key or an action made lands at once.Scrub: a seek bar held by the pointer or a finger in a surface that paints its own controls. The knob follows the hand 1:1, the time under it shows on a chip above it (paint_held_readout), and letting go seeks once. The retainedSliderdoes the same withSlider::reads_out_while_held.
Structs§
- Scrub
- A seek bar held by the pointer or a finger, for a surface that paints its own controls and routes its own input (the shell’s cards). The host hands in the face it paints, so the press, the drag and the paint read one geometry.
- Song
- The song a player surface shows.
- Song
Face - A song on screen, cross-fading to the next: see the module docs.
Functions§
- paint_
held_ readout - The value a held knob would land on,
label, on a chip above the knob, kept over the slider’s own span so it never leaves the control it reads. The one readout every held slider shows: the retainedSliderand an immediate-mode seek bar (a shell card’s) alike.