add custom label formatting, scale for expandedMem

This commit is contained in:
Bradley Cicenas
2017-01-08 18:07:56 +00:00
parent 72066aba6e
commit e73732ae98
5 changed files with 36 additions and 37 deletions

View File

@@ -43,17 +43,6 @@ func compactPar(s string) *ui.Par {
return p
}
func mkGauge() *ui.Gauge {
g := ui.NewGauge()
g.Height = 1
g.Border = false
g.Percent = 0
g.PaddingBottom = 0
g.BarColor = ui.ColorGreen
g.Label = "-"
return g
}
func colorScale(n int) ui.Attribute {
if n > 70 {
return ui.ColorRed