mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Minor config tweaks
This commit is contained in:
committed by
Chris Cummer
parent
85f010f886
commit
fd5becd397
@@ -54,6 +54,7 @@ func (widget *Widget) addView() {
|
||||
view.SetBorderColor(tcell.ColorGray)
|
||||
view.SetDynamicColors(true)
|
||||
view.SetTitle(widget.Name)
|
||||
view.SetWrap(false)
|
||||
|
||||
widget.View = view
|
||||
}
|
||||
@@ -71,7 +72,7 @@ func (widget *Widget) contentFrom(data *owm.CurrentWeatherData) string {
|
||||
tempUnit := Config.UString("wtf.weather.tempUnit", "C")
|
||||
|
||||
str = str + fmt.Sprintf("%8s: %4.1f° %s\n", "High", data.Main.TempMax, tempUnit)
|
||||
str = str + fmt.Sprintf("%8s: [yellow]%4.1f° %s[white]\n", "Current", data.Main.Temp, tempUnit)
|
||||
str = str + fmt.Sprintf("%8s: [green]%4.1f° %s[white]\n", "Current", data.Main.Temp, tempUnit)
|
||||
str = str + fmt.Sprintf("%8s: %4.1f° %s\n", "Low", data.Main.TempMin, tempUnit)
|
||||
|
||||
str = str + "\n"
|
||||
|
||||
Reference in New Issue
Block a user