Skip to content

Commit

Permalink
Add fallbacks for clock and date widget
Browse files Browse the repository at this point in the history
  • Loading branch information
zMoooooritz authored and muesli committed May 29, 2021
1 parent d4d3f5f commit de5ab23
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,20 @@ func NewWidget(index uint8, id string, action *ActionConfig, actionHold *ActionC
label: config["label"],
}

case "clock":
return &TimeWidget{
BaseWidget: bw,
format: "HH;MM;SS",
font: "bold;regular;thin",
}

case "date":
return &TimeWidget{
BaseWidget: bw,
format: "dd;mmm;yyyy",
font: "bold;regular;thin",
}

case "time":
return &TimeWidget{
BaseWidget: bw,
Expand Down

0 comments on commit de5ab23

Please sign in to comment.