Compare commits
5 Commits
v14
...
gravel-day
Author | SHA1 | Date | |
---|---|---|---|
1c3f13b79b | |||
98dfee90fa | |||
c34fbf9ff6 | |||
0e761c4dc0 | |||
c29b1915ff |
@ -138,7 +138,35 @@ void WatchFaceGravel::Refresh() {
|
|||||||
|
|
||||||
currentDate = std::chrono::time_point_cast<std::chrono::days>(currentDateTime.Get());
|
currentDate = std::chrono::time_point_cast<std::chrono::days>(currentDateTime.Get());
|
||||||
if (currentDate.IsUpdated()) {
|
if (currentDate.IsUpdated()) {
|
||||||
lv_label_set_text_fmt(labelDate, "%d %s", dateTimeController.Day(), dateTimeController.MonthShortToString());
|
//Controllers::DateTime::Days dayOfWeek = dateTimeController.DayOfWeek();
|
||||||
|
//lv_label_set_text_fmt(labelDate, "%s %d %s", dateTimeController.DayOfWeekShortToStringLow(dayOfWeek), dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
|
switch(dateTimeController.DayOfWeek()) {
|
||||||
|
case (Controllers::DateTime::Days::Sunday):
|
||||||
|
lv_label_set_text_fmt(labelDate, "S %d %s", dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
|
break;
|
||||||
|
case (Controllers::DateTime::Days::Monday):
|
||||||
|
lv_label_set_text_fmt(labelDate, "M %d %s", dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
|
break;
|
||||||
|
case (Controllers::DateTime::Days::Tuesday):
|
||||||
|
lv_label_set_text_fmt(labelDate, "T %d %s", dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
|
break;
|
||||||
|
case (Controllers::DateTime::Days::Wednesday):
|
||||||
|
lv_label_set_text_fmt(labelDate, "W %d %s", dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
|
break;
|
||||||
|
case (Controllers::DateTime::Days::Thursday):
|
||||||
|
lv_label_set_text_fmt(labelDate, "R %d %s", dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
|
break;
|
||||||
|
case (Controllers::DateTime::Days::Friday):
|
||||||
|
lv_label_set_text_fmt(labelDate, "F %d %s", dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
|
break;
|
||||||
|
case (Controllers::DateTime::Days::Saturday):
|
||||||
|
lv_label_set_text_fmt(labelDate, "A %d %s", dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
//lv_label_set_text_fmt(labelDate, "%c %d %s", dayChar, dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
}
|
}
|
||||||
lv_obj_realign(labelDate);
|
lv_obj_realign(labelDate);
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"file": "fonts/SquareRegular.ttf",
|
"file": "fonts/SquareRegular.ttf",
|
||||||
"symbols": "0123456789:--ADFJMNOPSabceglnoprtuvy "
|
"symbols": "0123456789ABCDEFGJlMNOPRSTUVWYabceglnoprtuvy "
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"bpp": 2,
|
"bpp": 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user