diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-13 16:39:50 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-13 16:39:50 +0100 |
| commit | 6b03740a8c9fb98b788549412f0ebf3cbae1d2de (patch) | |
| tree | 85f9532f1efdc63ecebb9c42a3e7a3c0b764e5d3 /static/app.js | |
| parent | 4bc6d69fc0fbfc3de5fb84874985a26deb79fdb5 (diff) | |
| download | deck-it-6b03740a8c9fb98b788549412f0ebf3cbae1d2de.tar.gz deck-it-6b03740a8c9fb98b788549412f0ebf3cbae1d2de.zip | |
feat(tablet): clock fonts and sizes from keystone's Fonts page
The dim cover's time and date fonts move out of [tablet] clock_font and
clock_font_date into keystone's fonts.json: "family" deckit-clock and
deckit-date, each served at /fonts/<key>, and the "override" sizes
deckit:clock and deckit:date (else deck.css's 8rem and 1.6rem). The date
can now have a font of its own. theme.css carries the rules, so a save
on the Fonts page reaches an open tablet page within 5s, with no restart
and no flags in the tablet state.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/app.js')
| -rw-r--r-- | static/app.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/static/app.js b/static/app.js index 1296805..0466372 100644 --- a/static/app.js +++ b/static/app.js @@ -295,9 +295,6 @@ document.addEventListener("pointerdown", touched, true); // A fresh page is not dimmed, so a dim left by an earlier server goes too. fetch("/api/tablet").then((r) => r.json()).then((t) => { dimAfter = t.dim_after ?? 0; - // [tablet] clock_font, served at /fonts/clock (deck.css). - dimmer.classList.toggle("font-time", !!t.clock_font); - dimmer.classList.toggle("font-date", !!t.clock_font && !!t.clock_font_date); tablet("undim"); touched(); }).catch(() => {}); |
