aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/fonts/FontsModule.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-13 16:39:55 +0100
committerDanilo M. <danix@danix.xyz>2026-11-13 16:39:55 +0100
commit1ef099127f0265fd36fe4b1565ecb735b64cfca3 (patch)
tree54b7a354467dd48d4f37814cf274241a23996fc0 /desktop/modules/fonts/FontsModule.qml
parent4a1cce078d7d27dcc9218c40a552948759d9cc5f (diff)
downloadquickshell-1ef099127f0265fd36fe4b1565ecb735b64cfca3.tar.gz
quickshell-1ef099127f0265fd36fe4b1565ecb735b64cfca3.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/fonts/FontsModule.qml')
-rw-r--r--desktop/modules/fonts/FontsModule.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/modules/fonts/FontsModule.qml b/desktop/modules/fonts/FontsModule.qml
index 016d85d..76f6ae9 100644
--- a/desktop/modules/fonts/FontsModule.qml
+++ b/desktop/modules/fonts/FontsModule.qml
@@ -33,7 +33,7 @@ Module {
settings: true
group: "Appearance"
dirty: fm.touched
- keywords: ["font", "size", "text", "px", "pt", "qt6ct", "gtk", "kitty", "rofi", "hyprlock", "groupbar", "scale"]
+ keywords: ["font", "size", "text", "px", "pt", "qt6ct", "gtk", "kitty", "rofi", "hyprlock", "groupbar", "scale", "family", "deck-it", "clock", "date", "tablet"]
readonly property string home: Quickshell.env("HOME")
readonly property string config: Quickshell.env("XDG_CONFIG_HOME") || fm.home + "/.config"
@@ -76,7 +76,7 @@ Module {
}
readonly property var saved: { fm.version; return F.parseModel(fm.texts.model ?? "") ?? F.seed(fm.now()); }
- property var draft: ({ base: 16, override: {} })
+ property var draft: ({ base: 16, override: {}, family: {} })
// A reload replaces the draft only while it holds no edits.
onSavedChanged: if (!fm.touched) fm.draft = fm.saved
property bool touched: false
@@ -85,6 +85,7 @@ Module {
function setBase(px) { fm.touched = true; fm.draft = { base: px, override: fm.draft.override }; }
function setOverride(id, px) { fm.touched = true; fm.draft = F.withOverride(fm.draft, id, px); }
+ function setFamily(id, name) { fm.touched = true; fm.draft = F.withFamily(fm.draft, id, name); }
function discard() { fm.touched = false; fm.draft = fm.saved; fm.error = ""; }
function refresh() {