Rename 'btn' to 'button' for consistency in chore-tracker YAML and generator script
This commit is contained in:
@@ -785,7 +785,7 @@ lvgl:
|
|||||||
touchscreens:
|
touchscreens:
|
||||||
- touch
|
- touch
|
||||||
theme:
|
theme:
|
||||||
btn:
|
button:
|
||||||
radius: 20
|
radius: 20
|
||||||
border_width: 0
|
border_width: 0
|
||||||
pages:
|
pages:
|
||||||
@@ -808,7 +808,7 @@ lvgl:
|
|||||||
text: "Tap a name to check off chores"
|
text: "Tap a name to check off chores"
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0xB2BEC3
|
text_color: 0xB2BEC3
|
||||||
- btn:
|
- button:
|
||||||
x: 640
|
x: 640
|
||||||
y: 424
|
y: 424
|
||||||
width: 148
|
width: 148
|
||||||
@@ -826,7 +826,7 @@ lvgl:
|
|||||||
text: "↺ Reset All"
|
text: "↺ Reset All"
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
text_font: font_tiny
|
text_font: font_tiny
|
||||||
- btn:
|
- button:
|
||||||
id: home_btn_jordyn
|
id: home_btn_jordyn
|
||||||
x: 80
|
x: 80
|
||||||
y: 130
|
y: 130
|
||||||
@@ -860,7 +860,7 @@ lvgl:
|
|||||||
text_font: font_tiny
|
text_font: font_tiny
|
||||||
text_color: 0xFF4757
|
text_color: 0xFF4757
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: home_btn_declan
|
id: home_btn_declan
|
||||||
x: 300
|
x: 300
|
||||||
y: 130
|
y: 130
|
||||||
@@ -894,7 +894,7 @@ lvgl:
|
|||||||
text_font: font_tiny
|
text_font: font_tiny
|
||||||
text_color: 0xFF4757
|
text_color: 0xFF4757
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: home_btn_chloe
|
id: home_btn_chloe
|
||||||
x: 520
|
x: 520
|
||||||
y: 130
|
y: 130
|
||||||
@@ -989,7 +989,7 @@ lvgl:
|
|||||||
text: ""
|
text: ""
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
- btn:
|
- button:
|
||||||
x: 14
|
x: 14
|
||||||
y: 364
|
y: 364
|
||||||
width: 144
|
width: 144
|
||||||
@@ -1005,7 +1005,7 @@ lvgl:
|
|||||||
text: "↺ Reset"
|
text: "↺ Reset"
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
- btn:
|
- button:
|
||||||
x: 14
|
x: 14
|
||||||
y: 420
|
y: 420
|
||||||
width: 144
|
width: 144
|
||||||
@@ -1023,7 +1023,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
|
|
||||||
# ── Chore cards ───────────────────────────────────────────────────────
|
# ── Chore cards ───────────────────────────────────────────────────────
|
||||||
- btn:
|
- button:
|
||||||
id: card_jordyn_make_bed
|
id: card_jordyn_make_bed
|
||||||
x: 182
|
x: 182
|
||||||
y: 10
|
y: 10
|
||||||
@@ -1059,7 +1059,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_jordyn_brush_teeth
|
id: card_jordyn_brush_teeth
|
||||||
x: 388
|
x: 388
|
||||||
y: 10
|
y: 10
|
||||||
@@ -1095,7 +1095,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_jordyn_tidy_room
|
id: card_jordyn_tidy_room
|
||||||
x: 594
|
x: 594
|
||||||
y: 10
|
y: 10
|
||||||
@@ -1131,7 +1131,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_jordyn_homework
|
id: card_jordyn_homework
|
||||||
x: 182
|
x: 182
|
||||||
y: 158
|
y: 158
|
||||||
@@ -1167,7 +1167,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_jordyn_feed_dog
|
id: card_jordyn_feed_dog
|
||||||
x: 388
|
x: 388
|
||||||
y: 158
|
y: 158
|
||||||
@@ -1264,7 +1264,7 @@ lvgl:
|
|||||||
text: ""
|
text: ""
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
- btn:
|
- button:
|
||||||
x: 14
|
x: 14
|
||||||
y: 364
|
y: 364
|
||||||
width: 144
|
width: 144
|
||||||
@@ -1280,7 +1280,7 @@ lvgl:
|
|||||||
text: "↺ Reset"
|
text: "↺ Reset"
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
- btn:
|
- button:
|
||||||
x: 14
|
x: 14
|
||||||
y: 420
|
y: 420
|
||||||
width: 144
|
width: 144
|
||||||
@@ -1298,7 +1298,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
|
|
||||||
# ── Chore cards ───────────────────────────────────────────────────────
|
# ── Chore cards ───────────────────────────────────────────────────────
|
||||||
- btn:
|
- button:
|
||||||
id: card_declan_make_bed
|
id: card_declan_make_bed
|
||||||
x: 182
|
x: 182
|
||||||
y: 10
|
y: 10
|
||||||
@@ -1334,7 +1334,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_declan_brush_teeth
|
id: card_declan_brush_teeth
|
||||||
x: 388
|
x: 388
|
||||||
y: 10
|
y: 10
|
||||||
@@ -1370,7 +1370,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_declan_set_table
|
id: card_declan_set_table
|
||||||
x: 594
|
x: 594
|
||||||
y: 10
|
y: 10
|
||||||
@@ -1406,7 +1406,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_declan_take_out_trash
|
id: card_declan_take_out_trash
|
||||||
x: 182
|
x: 182
|
||||||
y: 158
|
y: 158
|
||||||
@@ -1503,7 +1503,7 @@ lvgl:
|
|||||||
text: ""
|
text: ""
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
- btn:
|
- button:
|
||||||
x: 14
|
x: 14
|
||||||
y: 364
|
y: 364
|
||||||
width: 144
|
width: 144
|
||||||
@@ -1519,7 +1519,7 @@ lvgl:
|
|||||||
text: "↺ Reset"
|
text: "↺ Reset"
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
- btn:
|
- button:
|
||||||
x: 14
|
x: 14
|
||||||
y: 420
|
y: 420
|
||||||
width: 144
|
width: 144
|
||||||
@@ -1537,7 +1537,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
|
|
||||||
# ── Chore cards ───────────────────────────────────────────────────────
|
# ── Chore cards ───────────────────────────────────────────────────────
|
||||||
- btn:
|
- button:
|
||||||
id: card_chloe_make_bed
|
id: card_chloe_make_bed
|
||||||
x: 182
|
x: 182
|
||||||
y: 10
|
y: 10
|
||||||
@@ -1573,7 +1573,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_chloe_brush_teeth
|
id: card_chloe_brush_teeth
|
||||||
x: 388
|
x: 388
|
||||||
y: 10
|
y: 10
|
||||||
@@ -1609,7 +1609,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_chloe_water_plants
|
id: card_chloe_water_plants
|
||||||
x: 594
|
x: 594
|
||||||
y: 10
|
y: 10
|
||||||
@@ -1645,7 +1645,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_chloe_homework
|
id: card_chloe_homework
|
||||||
x: 182
|
x: 182
|
||||||
y: 158
|
y: 158
|
||||||
@@ -1681,7 +1681,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_chloe_tidy_room
|
id: card_chloe_tidy_room
|
||||||
x: 388
|
x: 388
|
||||||
y: 158
|
y: 158
|
||||||
@@ -1717,7 +1717,7 @@ lvgl:
|
|||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0x2D3436
|
text_color: 0x2D3436
|
||||||
|
|
||||||
- btn:
|
- button:
|
||||||
id: card_chloe_practice_piano
|
id: card_chloe_practice_piano
|
||||||
x: 594
|
x: 594
|
||||||
y: 158
|
y: 158
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ lvgl:
|
|||||||
touchscreens:
|
touchscreens:
|
||||||
- touch
|
- touch
|
||||||
theme:
|
theme:
|
||||||
btn:
|
button:
|
||||||
radius: 20
|
radius: 20
|
||||||
border_width: 0
|
border_width: 0
|
||||||
pages:
|
pages:
|
||||||
@@ -287,7 +287,7 @@ def _gen_lvgl_pages(kids: list) -> str:
|
|||||||
x = start_x + i * (btn_w + 20)
|
x = start_x + i * (btn_w + 20)
|
||||||
ks = kid_slug(kid)
|
ks = kid_slug(kid)
|
||||||
home_btns += f"""\
|
home_btns += f"""\
|
||||||
- btn:
|
- button:
|
||||||
id: home_btn_{ks}
|
id: home_btn_{ks}
|
||||||
x: {x}
|
x: {x}
|
||||||
y: {btn_y}
|
y: {btn_y}
|
||||||
@@ -343,7 +343,7 @@ def _gen_lvgl_pages(kids: list) -> str:
|
|||||||
text: "Tap a name to check off chores"
|
text: "Tap a name to check off chores"
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0xB2BEC3
|
text_color: 0xB2BEC3
|
||||||
- btn:
|
- button:
|
||||||
x: 640
|
x: 640
|
||||||
y: 424
|
y: 424
|
||||||
width: 148
|
width: 148
|
||||||
@@ -385,7 +385,7 @@ def _gen_lvgl_pages(kids: list) -> str:
|
|||||||
icon_y = -(card_h // 4)
|
icon_y = -(card_h // 4)
|
||||||
label_y = card_h // 8
|
label_y = card_h // 8
|
||||||
card_widgets += f"""\
|
card_widgets += f"""\
|
||||||
- btn:
|
- button:
|
||||||
id: card_{e}
|
id: card_{e}
|
||||||
x: {x}
|
x: {x}
|
||||||
y: {y}
|
y: {y}
|
||||||
@@ -484,7 +484,7 @@ def _gen_lvgl_pages(kids: list) -> str:
|
|||||||
text: ""
|
text: ""
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
- btn:
|
- button:
|
||||||
x: 14
|
x: 14
|
||||||
y: 364
|
y: 364
|
||||||
width: {sidebar_w - 28}
|
width: {sidebar_w - 28}
|
||||||
@@ -500,7 +500,7 @@ def _gen_lvgl_pages(kids: list) -> str:
|
|||||||
text: "↺ Reset"
|
text: "↺ Reset"
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
- btn:
|
- button:
|
||||||
x: 14
|
x: 14
|
||||||
y: 420
|
y: 420
|
||||||
width: {sidebar_w - 28}
|
width: {sidebar_w - 28}
|
||||||
|
|||||||
Reference in New Issue
Block a user