diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 10:02:44 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 10:02:44 +0100 |
| commit | 5ebfb5850713c038e37baddbadde3320aca2c4e4 (patch) | |
| tree | a2842edacb1e7f93f34d2492c6cab9f8cd51dbe7 /AGENTS.md | |
| parent | 2c7cef2024c201fa9c7c406954121de337071689 (diff) | |
| download | deck-it-5ebfb5850713c038e37baddbadde3320aca2c4e4.tar.gz deck-it-5ebfb5850713c038e37baddbadde3320aca2c4e4.zip | |
fix: follow UDT's font size and live theme changes
UDT gives font sizes to keystone's fonts page, which writes
~/.config/keystone/fonts.json. deck-it hardcoded px sizes, so changing
the size on the fonts page did nothing on the tablet. theme.css now
carries --udt-font-size (override.deckit, else base, 8 to 40px, as
quickshell checks) on html, and deck.css sizes text in rem, scaled from
the old 14px design.
The page loaded theme.css once, so a scheme, wallpaper or size change
reached the tablet only after a reload. The shell now re-reads it every
5s and on visibility, swapping it into a <style> only when it changed,
and sets meta theme-color from --udt-base instead of Macchiato's
hardcoded base.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -23,6 +23,9 @@ Keep the server dependency-free apart from that one package. mounts panels and polls `/api/<module>`. - `deckit/theme.py` reads UDT's palette (`~/.config/rofi/udt/palette.rasi`) and `~/.cache/udt/udt-border.lua`; the frontend uses only those CSS variables. + Text size is keystone's (`~/.config/keystone/fonts.json`, `override.deckit` + else `base`) as `--udt-font-size` on `html`, so `deck.css` sizes text in + `rem`. The shell re-reads `/theme.css` every 5s, so changes reach an open page. - Launcher icons follow the icon theme Keystone sets (`gsettings org.gnome.desktop.interface icon-theme`); window icons resolve through the `.desktop` `Icon`/`StartupWMClass` mapping. |
