Skip to content

Commit

Permalink
Update WeatherPane.go
Browse files Browse the repository at this point in the history
  • Loading branch information
theojulienne committed Mar 9, 2015
1 parent f6082d5 commit 6df4934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/WeatherPane.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ func (p *WeatherPane) Render() (*image.RGBA, error) {
}

if p.weather.City.Country == "US" || p.weather.City.Country == "United States of America" {
drawText(fmt.Sprintf("%dF", int(p.weather.List[0].Temp.Max*(9/5)-459.67)), color.RGBA{253, 151, 32, 255}, 1)
drawText(fmt.Sprintf("%dF", int(p.weather.List[0].Temp.Min*(9/5)-459.67)), color.RGBA{69, 175, 249, 255}, 8)
drawText(fmt.Sprintf("%dF", int(p.weather.List[0].Temp.Max*(9.0/5)-459.67)), color.RGBA{253, 151, 32, 255}, 1)
drawText(fmt.Sprintf("%dF", int(p.weather.List[0].Temp.Min*(9.0/5)-459.67)), color.RGBA{69, 175, 249, 255}, 8)
} else {
drawText(fmt.Sprintf("%dC", int(p.weather.List[0].Temp.Max-273.15)), color.RGBA{253, 151, 32, 255}, 1)
drawText(fmt.Sprintf("%dC", int(p.weather.List[0].Temp.Min-273.15)), color.RGBA{69, 175, 249, 255}, 8)
Expand Down

0 comments on commit 6df4934

Please sign in to comment.