mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-11 13:39:55 +02:00
Applications/OS/AppBar: Update default clock_text format string
This commit is contained in:
@@ -95,7 +95,7 @@ U0 Main()
|
|||||||
|
|
||||||
CDateStruct ds;
|
CDateStruct ds;
|
||||||
U8 clock_text[32];
|
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.Widget.SetFont(clock, "Eight Bit Dragon");
|
||||||
Gui.Window.Refresh(win);
|
Gui.Window.Refresh(win);
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ U0 Main()
|
|||||||
while (1) {
|
while (1) {
|
||||||
Date2Struct(&ds, Now);
|
Date2Struct(&ds, Now);
|
||||||
if (ds.min != min) {
|
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);
|
"ST_MONTHS", ds.hour, ds.min);
|
||||||
Gui.Widget.SetText(clock, &clock_text);
|
Gui.Widget.SetText(clock, &clock_text);
|
||||||
Gui.Window.Refresh(win);
|
Gui.Window.Refresh(win);
|
||||||
|
|||||||
Reference in New Issue
Block a user