You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(overlay): apply the configured theme on load, and make the clock card legible (#250)
Two bugs and one legibility fix, all in the same path.
1. The theme never applied on initial render. css_block emitted _theme_css()
BEFORE OVERLAY_CSS, and both declare :root with identical specificity, so the
static defaults won. A kiosk showed its configured accent only until the page
reloaded, then silently reverted to the built-in #88C0D0 until some card
happened to appear -- because the refresh loop copies the theme onto
documentElement, and that runs solely on an overlay CONTENT version change.
Swapping the order lets the theme win in the sheet itself, with no JS involved.
2. applyThemeVariables() took the FIRST :root in the document. Once the theme
moved to the end (fix 1), the first block became the static defaults -- so
every content update copied #88C0D0 onto inline style, and inline beats the
sheet. It now reads the last :root, i.e. the theme block.
3. The clock card is the only card rendered without a background plate; it sits
directly on the wallpaper. Its title was drawn in the accent colour at 0.95rem
and disappeared over a bright photo. Colour alone cannot fix this -- white
vanishes over a pale wallpaper just as the accent vanishes over a bright one --
so the title joins the time/date in white and all three get a text-shadow.
The accent still marks titles on the backed cards, where it reads fine.
Verified on pulse-office over a live camera background: computed
--overlay-accent-color is now the configured value on a cold load, the title is
legible against bright concrete, and NOW PLAYING renders in the accent.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments