1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Hack to fix a unicode rendering issue in iTerm

This commit is contained in:
Chris Cummer
2018-04-12 18:18:54 -07:00
committed by Chris Cummer
parent da27ad60a9
commit 31e17da358
10 changed files with 11 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ type Widget struct {
func NewWidget() *Widget {
widget := Widget{
TextWidget: wtf.NewTextWidget("Weather", "weather"),
TextWidget: wtf.NewTextWidget(" Weather ", "weather"),
}
widget.addView()
@@ -37,7 +37,7 @@ func (widget *Widget) Refresh() {
data := Fetch(Config.UInt("wtf.mods.weather.cityId", 6176823))
widget.View.SetTitle(fmt.Sprintf(" %s Weather: [green]%s[white] ", icon(data), data.Name))
widget.View.SetTitle(fmt.Sprintf(" %s %s ", icon(data), data.Name))
widget.RefreshedAt = time.Now()
widget.View.Clear()