move highlight method into textcol widget

This commit is contained in:
Bradley Cicenas
2017-03-03 08:02:08 +00:00
parent 56be64367b
commit 8fb5c5de59
3 changed files with 15 additions and 15 deletions

View File

@@ -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)