Skip to content

Commit de5ab23

Browse files
zMoooooritzmuesli
authored andcommitted
Add fallbacks for clock and date widget
1 parent d4d3f5f commit de5ab23

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎widget.go‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ func NewWidget(index uint8, id string, action *ActionConfig, actionHold *ActionC
6464
label: config["label"],
6565
}
6666

67+
case "clock":
68+
return &TimeWidget{
69+
BaseWidget: bw,
70+
format: "HH;MM;SS",
71+
font: "bold;regular;thin",
72+
}
73+
74+
case "date":
75+
return &TimeWidget{
76+
BaseWidget: bw,
77+
format: "dd;mmm;yyyy",
78+
font: "bold;regular;thin",
79+
}
80+
6781
case "time":
6882
return &TimeWidget{
6983
BaseWidget: bw,

0 commit comments

Comments
 (0)
⌂ 换网址