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:
parent
da27ad60a9
commit
31e17da358
@ -18,7 +18,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("BambooHR", "bamboohr"),
|
||||
TextWidget: wtf.NewTextWidget(" 👽 BambooHR ", "bamboohr"),
|
||||
}
|
||||
|
||||
widget.addView()
|
||||
|
@ -20,7 +20,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("Calendar", "gcal"),
|
||||
TextWidget: wtf.NewTextWidget(" 🍿 Calendar ", "gcal"),
|
||||
}
|
||||
|
||||
widget.addView()
|
||||
@ -37,7 +37,6 @@ func (widget *Widget) Refresh() {
|
||||
|
||||
events, _ := Fetch()
|
||||
|
||||
widget.View.SetTitle(" 🍿 Calendar ")
|
||||
widget.RefreshedAt = time.Now()
|
||||
|
||||
widget.View.Clear()
|
||||
|
@ -20,7 +20,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("Git", "git"),
|
||||
TextWidget: wtf.NewTextWidget(" Git ", "git"),
|
||||
}
|
||||
|
||||
widget.addView()
|
||||
|
@ -19,7 +19,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("Github", "github"),
|
||||
TextWidget: wtf.NewTextWidget(" Github ", "github"),
|
||||
}
|
||||
|
||||
widget.addView()
|
||||
|
@ -18,7 +18,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("JIRA", "jira"),
|
||||
TextWidget: wtf.NewTextWidget(" JIRA ", "jira"),
|
||||
}
|
||||
|
||||
widget.addView()
|
||||
|
@ -19,7 +19,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("New Relic", "newrelic"),
|
||||
TextWidget: wtf.NewTextWidget(" New Relic ", "newrelic"),
|
||||
}
|
||||
|
||||
widget.addView()
|
||||
|
@ -19,7 +19,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("OpsGenie", "opsgenie"),
|
||||
TextWidget: wtf.NewTextWidget(" ⏰ OpsGenie ", "opsgenie"),
|
||||
}
|
||||
|
||||
widget.addView()
|
||||
|
@ -18,7 +18,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("Security", "security"),
|
||||
TextWidget: wtf.NewTextWidget(" 🤺 Security ", "security"),
|
||||
}
|
||||
|
||||
widget.addView()
|
||||
@ -36,7 +36,6 @@ func (widget *Widget) Refresh() {
|
||||
data := NewSecurityData()
|
||||
data.Fetch()
|
||||
|
||||
widget.View.SetTitle(" 🤺 Security ")
|
||||
widget.RefreshedAt = time.Now()
|
||||
|
||||
widget.View.Clear()
|
||||
|
@ -21,7 +21,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("Status", "status"),
|
||||
TextWidget: wtf.NewTextWidget(" 🎉 Status ", "status"),
|
||||
Current: 0,
|
||||
}
|
||||
|
||||
@ -37,7 +37,6 @@ func (widget *Widget) Refresh() {
|
||||
return
|
||||
}
|
||||
|
||||
widget.View.SetTitle(" 🎉 Status ")
|
||||
widget.RefreshedAt = time.Now()
|
||||
|
||||
widget.View.Clear()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user