mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
fixed platform-specific stuff.
Mostly fixed character encoding and stuff. Signed-off-by: Mike Lloyd <mike@reboot3times.org>
This commit is contained in:
@@ -18,7 +18,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget(" π Status ", "status", false),
|
||||
TextWidget: wtf.NewTextWidget(" Status ", "status", false),
|
||||
CurrentIcon: 0,
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ func (widget *Widget) Refresh() {
|
||||
/* -------------------- Unexported Functions -------------------- */
|
||||
|
||||
func (widget *Widget) animation() string {
|
||||
icons := []string{"π", "π€", "π€", "π€", "π€", "π€", "β", "π€", "π", "π€"}
|
||||
icons := []string{"|", "/", "-", "\\", "|"}
|
||||
next := icons[widget.CurrentIcon]
|
||||
|
||||
widget.CurrentIcon = widget.CurrentIcon + 1
|
||||
|
||||
Reference in New Issue
Block a user