add common status colors to global theme

This commit is contained in:
Bradley Cicenas
2017-08-27 23:46:01 +00:00
parent a1ebf3f90e
commit add44c0f18
4 changed files with 15 additions and 12 deletions

View File

@@ -25,10 +25,10 @@ func (w *GaugeCol) Reset() {
func colorScale(n int) ui.Attribute {
if n > 70 {
return ui.ColorRed
return ui.ThemeAttr("status.danger")
}
if n > 30 {
return ui.ColorYellow
return ui.ThemeAttr("status.warn")
}
return ui.ColorGreen
return ui.ThemeAttr("status.ok")
}