From c4ae98cab2584b2adb811e25fed35d2f13550083 Mon Sep 17 00:00:00 2001 From: Joshua King Date: Fri, 27 Feb 2026 22:23:43 -0500 Subject: [PATCH] Refactor font configuration in chore-tracker YAML files for improved clarity and consistency --- esphome/chore-tracker-esphome.yaml | 15 +++++---------- esphome/chore-tracker/generate.py | 15 +++++---------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/esphome/chore-tracker-esphome.yaml b/esphome/chore-tracker-esphome.yaml index 4373d6a..b9d17b3 100644 --- a/esphome/chore-tracker-esphome.yaml +++ b/esphome/chore-tracker-esphome.yaml @@ -97,26 +97,21 @@ time: - lvgl.page.show: page_home font: - - file: "gfonts://Nunito" + - file: "gfonts://Nunito:ital,wght@0,900" id: font_title size: 40 - weight: 900 - - file: "gfonts://Nunito" + - file: "gfonts://Nunito:ital,wght@0,800" id: font_name size: 30 - weight: 800 - - file: "gfonts://Nunito" + - file: "gfonts://Nunito:ital,wght@0,700" id: font_med size: 22 - weight: 700 - - file: "gfonts://Nunito" + - file: "gfonts://Nunito:ital,wght@0,600" id: font_small size: 17 - weight: 600 - - file: "gfonts://Nunito" + - file: "gfonts://Nunito:ital,wght@0,600" id: font_tiny size: 13 - weight: 600 # ── Switches — one per chore per kid, synced to HA ─────────────────────────── switch: diff --git a/esphome/chore-tracker/generate.py b/esphome/chore-tracker/generate.py index e30cf71..65da93e 100644 --- a/esphome/chore-tracker/generate.py +++ b/esphome/chore-tracker/generate.py @@ -219,26 +219,21 @@ time: - lvgl.page.show: page_home font: - - file: "gfonts://Nunito" + - file: "gfonts://Nunito:ital,wght@0,900" id: font_title size: 40 - weight: 900 - - file: "gfonts://Nunito" + - file: "gfonts://Nunito:ital,wght@0,800" id: font_name size: 30 - weight: 800 - - file: "gfonts://Nunito" + - file: "gfonts://Nunito:ital,wght@0,700" id: font_med size: 22 - weight: 700 - - file: "gfonts://Nunito" + - file: "gfonts://Nunito:ital,wght@0,600" id: font_small size: 17 - weight: 600 - - file: "gfonts://Nunito" + - file: "gfonts://Nunito:ital,wght@0,600" id: font_tiny size: 13 - weight: 600 # ── Switches — one per chore per kid, synced to HA ─────────────────────────── switch: