diff --git a/cwidgets/compact/gauge.go b/cwidgets/compact/gauge.go index 3d3169e..39fccdc 100644 --- a/cwidgets/compact/gauge.go +++ b/cwidgets/compact/gauge.go @@ -100,11 +100,11 @@ func (w *GaugeCol) UnHighlight() { } func colorScale(n int) ui.Attribute { - if n > 70 { - return ui.ThemeAttr("status.danger") + if n <= 70 { + return ui.ThemeAttr("status.ok") } - if n > 30 { + if n <= 90 { return ui.ThemeAttr("status.warn") } - return ui.ThemeAttr("status.ok") + return ui.ThemeAttr("status.danger") }