move timezones out of watch.yaml + sane defaults

This commit is contained in:
galister
2024-11-23 20:01:49 +09:00
parent 54737b02d3
commit 51174b64d3
5 changed files with 83 additions and 24 deletions

View File

@@ -189,7 +189,7 @@ pub fn modular_canvas(
corner_radius.unwrap_or_default(),
empty_str.clone(),
);
modular_label_init(label, data);
modular_label_init(label, data, state);
}
ModularElement::CenteredLabel {
rect: [x, y, w, h],
@@ -208,7 +208,7 @@ pub fn modular_canvas(
corner_radius.unwrap_or_default(),
empty_str.clone(),
);
modular_label_init(label, data);
modular_label_init(label, data, state);
}
ModularElement::Sprite {
rect: [x, y, w, h],
@@ -292,6 +292,7 @@ pub fn modular_canvas(
low_color: fg_color_low.clone(),
charging_color: fg_color_charging.clone(),
},
state,
);
button_x += match layout {