mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Better color config standardization. It's not just random anymore
This commit is contained in:
@@ -53,7 +53,15 @@ func (widget *Widget) temperatures(cityData *owm.CurrentWeatherData) string {
|
||||
tempUnit := Config.UString("wtf.mods.weather.tempUnit", "C")
|
||||
|
||||
str := fmt.Sprintf("%8s: %4.1f° %s\n", "High", cityData.Main.TempMax, tempUnit)
|
||||
str = str + fmt.Sprintf("%8s: [green]%4.1f° %s[white]\n", "Current", cityData.Main.Temp, tempUnit)
|
||||
|
||||
str = str + fmt.Sprintf(
|
||||
"%8s: [%s]%4.1f° %s[white]\n",
|
||||
"Current",
|
||||
Config.UString("wtf.mods.weather.colors.current", "green"),
|
||||
cityData.Main.Temp,
|
||||
tempUnit,
|
||||
)
|
||||
|
||||
str = str + fmt.Sprintf("%8s: %4.1f° %s\n", "Low", cityData.Main.TempMin, tempUnit)
|
||||
|
||||
return str
|
||||
|
||||
Reference in New Issue
Block a user