From 1ef099127f0265fd36fe4b1565ecb735b64cfca3 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 13 Nov 2026 16:39:55 +0100 Subject: feat(fonts): deck-it's text, clock sizes and clock fonts The Fonts page gets a deck-it section: deck-it's text size (the override.deckit deck-it already read, with no row until now), and the dim cover's clock time and date, following it at 8 and 1.6 times unless given their own size (up to 400px). A Families section names the clock's fonts, deckit-clock and deckit-date, saved under "family" in fonts.json; deck-it reads both itself. The name field updates the draft on every keystroke, since a click on Save takes no focus and an editingFinished would never come. The clock font fields leave the deck-it Dashboard page, which wrote [tablet] keys deck-it no longer reads. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/fonts/README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'desktop/modules/fonts/README.md') diff --git a/desktop/modules/fonts/README.md b/desktop/modules/fonts/README.md index b887060..c3e2232 100644 --- a/desktop/modules/fonts/README.md +++ b/desktop/modules/fonts/README.md @@ -4,7 +4,8 @@ One pixel size for the desktop, in the settings window under Appearance > Fonts, and an override wherever a system needs its own. Saved as `~/.config/keystone/fonts.json`: - { "base": 16, "override": { "qt": 18.67, "rofi:kf-launcher-entry": 22 } } + { "base": 16, "override": { "qt": 18.67, "rofi:kf-launcher-entry": 22 }, + "family": { "deckit-clock": "Some Font" } } Everything is stored in px. At scale 1 Wayland's logical DPI is 96 (`gtk-xft-dpi` reads 98304, 96 * 1024), so a point is 4/3 of a pixel and @@ -17,6 +18,7 @@ Everything is stored in px. At scale 1 Wayland's logical DPI is 96 | GTK | gtk-3.0 and gtk-4.0 `settings.ini`, `.gtkrc-2.0`, gsettings `font-name` | pt | at once for GTK 3 and 4 | | kitty | `~/.config/keystone/kitty-fonts.conf`, included last by `kitty.conf`; SIGUSR1 reloads | pt | at once | | Hyprland groupbar | `group:groupbar:font_size` line in `keystone.lua` | px | at once | +| deck-it | reads `fonts.json` itself into its `theme.css`: `deckit`, and the dim cover's `deckit:clock` and `deckit:date` (8 and 1.6 times `deckit` unless set) | px | on the tablet within 5 s | | rofi | `~/.config/keystone/rofi-fonts.rasi`, imported by udt's `common.rasi` | pt | next open | | hyprlock | `~/.config/keystone/hyprlock-fonts.conf`, sourced by `hyprlock.conf` | pt | next lock | @@ -39,7 +41,11 @@ With no `fonts.json`, the page starts from what the files say: base 16 px, and an override for every system at its current size, so the first save changes nothing. -Not handled: font families; the hard-coded `pixelSize` values in the shells +`family` names a font for a slot no other config holds, read by its +program from `fonts.json` itself: `deckit-clock` and `deckit-date`, the +time and the date on deck-it's dim cover. Empty leaves the program's own. + +Not handled: the families of the systems above; the hard-coded `pixelSize` values in the shells (21 of them), which do not follow `Theme.fontSize`; and a `keystone.lua` save from this page and the Options page at the same moment, which can drop one line. -- cgit v1.2.3