Compare commits

..

5 Commits

2 changed files with 30 additions and 2 deletions

View File

@ -138,7 +138,35 @@ void WatchFaceGravel::Refresh() {
currentDate = std::chrono::time_point_cast<std::chrono::days>(currentDateTime.Get());
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);
}

View File

@ -99,7 +99,7 @@
"sources": [
{
"file": "fonts/SquareRegular.ttf",
"symbols": "0123456789:--ADFJMNOPSabceglnoprtuvy "
"symbols": "0123456789ABCDEFGJlMNOPRSTUVWYabceglnoprtuvy "
}
],
"bpp": 2,