aboutsummaryrefslogtreecommitdiffstats
path: root/deckit/modules
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-13 16:39:50 +0100
committerDanilo M. <danix@danix.xyz>2026-11-13 16:39:50 +0100
commit6b03740a8c9fb98b788549412f0ebf3cbae1d2de (patch)
tree85f9532f1efdc63ecebb9c42a3e7a3c0b764e5d3 /deckit/modules
parent4bc6d69fc0fbfc3de5fb84874985a26deb79fdb5 (diff)
downloaddeck-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 'deckit/modules')
-rw-r--r--deckit/modules/tablet.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/deckit/modules/tablet.py b/deckit/modules/tablet.py
index 08f12fa..71f7a95 100644
--- a/deckit/modules/tablet.py
+++ b/deckit/modules/tablet.py
@@ -112,7 +112,6 @@ def make(cfg: dict) -> Module:
tcfg = cfg.get("tablet", {})
dim_after = max(0, int(tcfg.get("dim_after", 120)))
level = min(255, max(0, int(tcfg.get("dim_brightness", 8))))
- clock = {"clock_font": bool(tcfg.get("clock_font")), "clock_font_date": bool(tcfg.get("clock_font_date", True))}
saved = {} # mode and brightness from before a dim; empty while bright
try:
saved["mode"], saved["level"] = DIM_FILE.read_text().split()
@@ -155,5 +154,5 @@ def make(cfg: dict) -> Module:
pass
return Module(name="tablet", title="Tablet",
- state=lambda: {**state(), "dim_after": dim_after, **clock},
+ state=lambda: {**state(), "dim_after": dim_after},
actions={"dim": dim, "undim": undim}, stop=stop)