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 /AGENTS.md | |
| 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 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -87,10 +87,13 @@ Keep the server dependency-free apart from that one package. covers the page with `#dimmer` and `tablet`'s `dim` action sets the backlight to `dim_brightness` over adb (auto brightness off meanwhile); the touch on the cover calls `undim`, which puts both back, as does the - module's `stop`. The cover's clock (and, with `clock_font_date`, its - date) uses `[tablet] clock_font`, a family installed on the PC that the - server finds with `fc-match` and serves at `/fonts/clock`; the font file - never enters the repo, so a personal-use font is fine. + module's `stop`. The cover's time and date fonts are keystone's Fonts + page: `family` `deckit-clock` and `deckit-date` in its `fonts.json`, each a + family installed on the PC that the server finds with `fc-match` and + serves at `/fonts/<key>`; their px sizes are its `deckit:clock` and + `deckit:date` overrides (else deck.css's 8rem and 1.6rem); theme.css + carries the rules, so a change reaches an open page. The font file never + enters the repo, so a personal-use font is fine. Before a suspend, poweroff or reboot `deckit/sleep.py` (an elogind delay inhibitor plus `dbus-monitor` on PrepareForSleep/PrepareForShutdown) marks answers with `X-Deckit-Sleep: asleep|shutting down` for 2s, and `app.js` |
