mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
fix tie color
This commit is contained in:
parent
d48a3a6d8c
commit
f334604071
2
main.go
2
main.go
@ -41,6 +41,7 @@ import (
|
|||||||
"github.com/wtfutil/wtf/modules/jenkins"
|
"github.com/wtfutil/wtf/modules/jenkins"
|
||||||
"github.com/wtfutil/wtf/modules/jira"
|
"github.com/wtfutil/wtf/modules/jira"
|
||||||
"github.com/wtfutil/wtf/modules/mercurial"
|
"github.com/wtfutil/wtf/modules/mercurial"
|
||||||
|
"github.com/wtfutil/wtf/modules/nbascore"
|
||||||
"github.com/wtfutil/wtf/modules/newrelic"
|
"github.com/wtfutil/wtf/modules/newrelic"
|
||||||
"github.com/wtfutil/wtf/modules/opsgenie"
|
"github.com/wtfutil/wtf/modules/opsgenie"
|
||||||
"github.com/wtfutil/wtf/modules/pagerduty"
|
"github.com/wtfutil/wtf/modules/pagerduty"
|
||||||
@ -63,7 +64,6 @@ import (
|
|||||||
"github.com/wtfutil/wtf/modules/weatherservices/prettyweather"
|
"github.com/wtfutil/wtf/modules/weatherservices/prettyweather"
|
||||||
"github.com/wtfutil/wtf/modules/weatherservices/weather"
|
"github.com/wtfutil/wtf/modules/weatherservices/weather"
|
||||||
"github.com/wtfutil/wtf/modules/zendesk"
|
"github.com/wtfutil/wtf/modules/zendesk"
|
||||||
"github.com/wtfutil/wtf/modules/nbascore"
|
|
||||||
"github.com/wtfutil/wtf/wtf"
|
"github.com/wtfutil/wtf/wtf"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ func NewWidget(app *tview.Application, pages *tview.Pages) *Widget {
|
|||||||
TextWidget: wtf.NewTextWidget(app, "NBA Score", "nbascore", true),
|
TextWidget: wtf.NewTextWidget(app, "NBA Score", "nbascore", true),
|
||||||
}
|
}
|
||||||
widget.HelpfulWidget.SetView(widget.View)
|
widget.HelpfulWidget.SetView(widget.View)
|
||||||
widget.TextWidget.RefreshInt = 5
|
widget.TextWidget.RefreshInt = 15
|
||||||
widget.View.SetInputCapture(widget.keyboardIntercept)
|
widget.View.SetInputCapture(widget.keyboardIntercept)
|
||||||
widget.View.SetScrollable(true)
|
widget.View.SetScrollable(true)
|
||||||
return &widget
|
return &widget
|
||||||
@ -118,6 +118,7 @@ func (widget *Widget) nbascore() {
|
|||||||
hTeam = hTeam + "[white]"
|
hTeam = hTeam + "[white]"
|
||||||
} else {
|
} else {
|
||||||
vTeam = "[orange]" + vTeam
|
vTeam = "[orange]" + vTeam
|
||||||
|
hColor = "[orange]"
|
||||||
hTeam = hTeam + "[white]"
|
hTeam = hTeam + "[white]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user