Revert to native Marquee for all lines; remove album-art overlap
This commit is contained in:
1 parent
f864d43888
commit
74be033a29
2 files changed
+48
-71
No files matched your search
@@ -1,11 +1,12 @@
|
||||
# subwave-nowplaying
|
||||
|
||||
Tronbyt/Tidbyt app showing the current track on a [SUB/WAVE](https://github.com/perminder-klair/subwave)
|
||||
internet radio station: album art, track title/artist (scrolling), a thin
|
||||
separator, the current show and host, and a full-width footer with
|
||||
time/temperature and a track progress bar pinned to the bottom edge. Color
|
||||
scheme (cyan title/artist, white show name, magenta host/progress bar) is
|
||||
loosely modeled on SUB/WAVE's own web now-playing display.
|
||||
internet radio station: album art, and four scrolling lines — track
|
||||
title/artist, a thin separator, the current show and host, and local
|
||||
time/temperature — plus a track progress bar pinned to the bottom of the
|
||||
32px-wide text column. Color scheme (cyan title/artist, white show name,
|
||||
magenta host/progress bar) is loosely modeled on SUB/WAVE's own web
|
||||
now-playing display.
|
||||
|
||||
Not tied to any specific station — set your own station's base URL in the
|
||||
app's config when adding it to a device.
|
||||
@@ -28,22 +29,28 @@ app's config when adding it to a device.
|
||||
- If a track has no `subsonic_id`, or the cover fetch fails, falls back to a
|
||||
full-width layout with no art rather than a broken image.
|
||||
- Shows the current show name (`context.activeShow.name`) and host name
|
||||
(`dj.name`) below the artist, separated by a thin divider line.
|
||||
- Shows the local time and temperature (`context.clock`/`context.weather`)
|
||||
and the track progress bar as a full-width (64px) footer overlaid on the
|
||||
bottom of the layout — not confined to the 32px-wide text column, which
|
||||
gives roughly 2x the character budget for the time/temp line (at the cost
|
||||
of covering the bottom ~9px of the album art with a translucent bar).
|
||||
(`dj.name`) below the artist, separated by a thin divider line, and the
|
||||
local time/temperature (`context.clock`/`context.weather`) below that —
|
||||
all as independently scrolling Marquee lines, confined to the 32px-wide
|
||||
text column next to the album art (no overlay/overlap with the art).
|
||||
|
||||
**Why show/host/time-temp are plain Text, not Marquee:** pixlet's Marquee
|
||||
runs its own internal scroll-cycle animation regardless of whether the text
|
||||
actually needs to scroll, and combining multiple Marquees with very
|
||||
different cycle lengths in one Root desyncs them — confirmed via an
|
||||
isolated repro where a short Marquee'd line intermittently collapsed to a
|
||||
single character on frames where the long title/artist marquees were
|
||||
mid-cycle. Only title/artist (which actually benefit from scrolling for
|
||||
long names) use Marquee; the shorter supplementary fields use plain
|
||||
Text/Row and just clip if too wide, which is an acceptable tradeoff.
|
||||
**Known quirk — occasional Marquee glitch:** pixlet's `render.Marquee` runs
|
||||
its own internal scroll-cycle animation, and stacking several Marquees of
|
||||
different text lengths in one Root can occasionally desync them — a line
|
||||
may briefly blank or show a garbled frame while another Marquee is
|
||||
mid-cycle. This is a real, currently-unfixed pixlet bug (there's an
|
||||
open `FIXME: Behaviour when children themselves are animated is a bit
|
||||
weird` in pixlet's own widget docs), not something introduced by this app.
|
||||
It's also not unique to this app: `tronbyt/apps/apps/goosefm/goose_fm.star`
|
||||
(an accepted official community app) stacks 3 Marquees for the same kind of
|
||||
now-playing info and exhibits the identical occasional glitch on close
|
||||
frame-by-frame inspection. In practice it's subtle enough to be easy to
|
||||
miss on a real, continuously-scrolling display. A custom hand-rolled scroll
|
||||
(via `animation.Transformation` + `Translate`, avoiding `Marquee` entirely)
|
||||
was prototyped and could fully eliminate this, but only by consolidating
|
||||
down to 2 scrolling lines total (title alone, everything else combined into
|
||||
one line) — full independent lines for every field was preferred instead,
|
||||
accepting the same minor quirk real Tidbyt/Tronbyt apps already ship with.
|
||||
|
||||
**Progress bar caveat:** the now-playing API reports track `duration` but
|
||||
not elapsed/remaining time, so the app tracks playback position itself —
|
||||
|
||||