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/deckit/DeckItDashboardModule.qml | 3 +-- desktop/modules/deckit/DeckItDashboardPage.qml | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'desktop/modules/deckit') diff --git a/desktop/modules/deckit/DeckItDashboardModule.qml b/desktop/modules/deckit/DeckItDashboardModule.qml index 78a1e5a..ca033f8 100644 --- a/desktop/modules/deckit/DeckItDashboardModule.qml +++ b/desktop/modules/deckit/DeckItDashboardModule.qml @@ -22,11 +22,10 @@ Module { group: "deck-it" dirty: DeckIt.store.dirty keywords: ["deck-it", "tablet", "dashboard", "modules", "panels", "actions", "icons", "hardware", - "network", "battery", "cpu", "gpu", "sensor", "dim", "brightness", "backlight", "clock", "font", "date"] + "network", "battery", "cpu", "gpu", "sensor", "dim", "brightness", "backlight"] readonly property var fields: [ ["modules", "", "Dashboard parts"], ["dashboard", "actions", "Dashboard actions"], ["tablet", "dim_after", "Dim after"], ["tablet", "dim_brightness", "Dim brightness"], - ["tablet", "clock_font", "Clock font"], ["tablet", "clock_font_date", "Date in clock font"], ["hardware", "net", "Network interface"], ["hardware", "battery", "Battery"], ["hardware", "cpu_sensor", "CPU sensor"], ["hardware", "gpu", "GPU"], ["hardware", "gpu_mem_total", "GPU memory"]] diff --git a/desktop/modules/deckit/DeckItDashboardPage.qml b/desktop/modules/deckit/DeckItDashboardPage.qml index 20581a8..14aba95 100644 --- a/desktop/modules/deckit/DeckItDashboardPage.qml +++ b/desktop/modules/deckit/DeckItDashboardPage.qml @@ -74,12 +74,6 @@ Column { hint: "Seconds without a touch before the tablet's backlight goes down; a touch brings it back. 0 turns it off." } Setting { store: col.st; section: "tablet"; key: "dim_brightness"; label: "Dim brightness"; kind: "int"; min: 0; max: 255 placeholder: col.st.placeholder("tablet", "dim_brightness"); hint: "Backlight while dimmed, 0 to 255." } - Setting { store: col.st; section: "tablet"; key: "clock_font"; label: "Clock font" - placeholder: col.st.placeholder("tablet", "clock_font") || "page font" - hint: "A font family installed on the PC (fc-list), for the clock on the dim cover. Empty keeps the page font." } - BoolSetting { store: col.st; section: "tablet"; key: "clock_font_date"; label: "Date in clock font" - fallback: col.def("tablet", "clock_font_date") ?? true - hint: "the date under the clock uses the clock font too" } Heading { text: "Hardware" } Small { text: "Each is auto, or a fixed value such as wlan0, BAT1 or coretemp." } -- cgit v1.2.3