mirror of
https://github.com/bcicen/ctop.git
synced 2025-11-16 16:05:47 +01:00
move highlight method into textcol widget
This commit is contained in:
@@ -108,16 +108,6 @@ func (row *Compact) Buffer() ui.Buffer {
|
||||
return buf
|
||||
}
|
||||
|
||||
func (row *Compact) Highlight() {
|
||||
row.Name.TextFgColor = ui.ColorDefault
|
||||
row.Name.TextBgColor = ui.ColorWhite
|
||||
}
|
||||
|
||||
func (row *Compact) UnHighlight() {
|
||||
row.Name.TextFgColor = ui.ColorWhite
|
||||
row.Name.TextBgColor = ui.ColorDefault
|
||||
}
|
||||
|
||||
func (row *Compact) SetNet(rx int64, tx int64) {
|
||||
label := fmt.Sprintf("%s / %s", cwidgets.ByteFormat(rx), cwidgets.ByteFormat(tx))
|
||||
row.Net.Set(label)
|
||||
|
||||
Reference in New Issue
Block a user