mirror of
https://github.com/bcicen/ctop.git
synced 2025-11-14 15:05:49 +01:00
add global default ColorMap
This commit is contained in:
@@ -18,7 +18,7 @@ func (row *Compact) SetCPU(val int) {
|
||||
row.Cpu.Label = fmt.Sprintf("%s%%", strconv.Itoa(val))
|
||||
if val < 5 {
|
||||
val = 5
|
||||
row.Cpu.BarColor = ui.ColorBlack
|
||||
row.Cpu.BarColor = ui.ThemeAttr("gauge.bar.bg")
|
||||
}
|
||||
row.Cpu.Percent = val
|
||||
}
|
||||
@@ -29,7 +29,7 @@ func (row *Compact) SetMem(val int64, limit int64, percent int) {
|
||||
percent = 5
|
||||
row.Memory.BarColor = ui.ColorBlack
|
||||
} else {
|
||||
row.Memory.BarColor = ui.ColorGreen
|
||||
row.Memory.BarColor = ui.ThemeAttr("gauge.bar.bg")
|
||||
}
|
||||
row.Memory.Percent = percent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user