Compare commits
No commits in common. "gravel-day-of-week" and "v14" have entirely different histories.
gravel-day
...
v14
@ -138,35 +138,7 @@ 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()) {
|
||||||
//Controllers::DateTime::Days dayOfWeek = dateTimeController.DayOfWeek();
|
lv_label_set_text_fmt(labelDate, "%d %s", dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
//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": "0123456789ABCDEFGJlMNOPRSTUVWYabceglnoprtuvy "
|
"symbols": "0123456789:--ADFJMNOPSabceglnoprtuvy "
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"bpp": 2,
|
"bpp": 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user