Applications/OS/AppBar: Update default clock_text format string

This commit is contained in:
Alec Murphy
2025-09-12 07:03:46 -04:00
parent 72957ec325
commit cbdd64ce4a

View File

@@ -95,7 +95,7 @@ U0 Main()
CDateStruct ds;
U8 clock_text[32];
TextInputWidget* clock = Gui.CreateWidget(win, WIDGET_TYPE_LABEL, Display.Width() - 94, 8, 64, 32);
TextInputWidget* clock = Gui.CreateWidget(win, WIDGET_TYPE_LABEL, Display.Width() - 126, 8, 64, 32);
Gui.Widget.SetFont(clock, "Eight Bit Dragon");
Gui.Window.Refresh(win);
@@ -111,7 +111,7 @@ U0 Main()
while (1) {
Date2Struct(&ds, Now);
if (ds.min != min) {
StrPrint(&clock_text, "%02d %03tZ, %02d:%02d", ds.day_of_mon, ds.mon - 1,
StrPrint(&clock_text, "%3tZ %02d %03tZ, %02d:%02d", ds.day_of_week, "ST_DAYS_OF_WEEK", ds.day_of_mon, ds.mon - 1,
"ST_MONTHS", ds.hour, ds.min);
Gui.Widget.SetText(clock, &clock_text);
Gui.Window.Refresh(win);