Rename 'btn' to 'button' for consistency in chore-tracker YAML and generator script

This commit is contained in:
Joshua King
2026-02-28 08:13:13 -05:00
parent d7ed0c085c
commit c63275d484
2 changed files with 32 additions and 32 deletions

View File

@@ -254,7 +254,7 @@ lvgl:
touchscreens:
- touch
theme:
btn:
button:
radius: 20
border_width: 0
pages:
@@ -287,7 +287,7 @@ def _gen_lvgl_pages(kids: list) -> str:
x = start_x + i * (btn_w + 20)
ks = kid_slug(kid)
home_btns += f"""\
- btn:
- button:
id: home_btn_{ks}
x: {x}
y: {btn_y}
@@ -343,7 +343,7 @@ def _gen_lvgl_pages(kids: list) -> str:
text: "Tap a name to check off chores"
text_font: font_small
text_color: 0xB2BEC3
- btn:
- button:
x: 640
y: 424
width: 148
@@ -385,7 +385,7 @@ def _gen_lvgl_pages(kids: list) -> str:
icon_y = -(card_h // 4)
label_y = card_h // 8
card_widgets += f"""\
- btn:
- button:
id: card_{e}
x: {x}
y: {y}
@@ -484,7 +484,7 @@ def _gen_lvgl_pages(kids: list) -> str:
text: ""
text_font: font_small
text_color: 0xFFFFFF
- btn:
- button:
x: 14
y: 364
width: {sidebar_w - 28}
@@ -500,7 +500,7 @@ def _gen_lvgl_pages(kids: list) -> str:
text: "↺ Reset"
text_color: 0xFFFFFF
text_font: font_small
- btn:
- button:
x: 14
y: 420
width: {sidebar_w - 28}