Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew committed Jun 9, 2018
1 parent 0528988 commit 557aa15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blockfolio/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ func (widget *Widget) Refresh() {
func contentFrom(positions *AllPositionsResponse) string {
res := ""
colorName := Config.UString("wtf.mods.blockfolio.colors.name")
// colorPrice := Config.UString("wtf.mods.blockfolio.colors.price")
// colorPrice := Config.UString("wtf.mods.blockfolio.colors.price")
colorGrows := Config.UString("wtf.mods.blockfolio.colors.grows")
colorDrop := Config.UString("wtf.mods.blockfolio.colors.drop")
for i := 0; i < len(positions.PositionList); i++ {
colorForChange := colorGrows
if positions.PositionList[i].TwentyFourHourPercentChangeFiat <= 0 {
colorForChange = colorDrop
}
res = res + fmt.Sprintf(" [%s]%6s - ([%s]%.2f\%)", colorName, positions.PositionList[i].Coin, colorForChange, positions.PositionList[i].TwentyFourHourPercentChangeFiat)
res = res + fmt.Sprintf(" [%s]%6s - ([%s]%.2f%)", colorName, positions.PositionList[i].Coin, colorForChange, positions.PositionList[i].TwentyFourHourPercentChangeFiat)
}

return res
Expand Down

0 comments on commit 557aa15

Please sign in to comment.