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

@@ -24,6 +24,16 @@ func NewTextCol(s string) *TextCol {
return &TextCol{p}
}
func (w *TextCol) Highlight() {
w.TextFgColor = ui.ThemeAttr("par.text.bg")
w.TextBgColor = ui.ThemeAttr("par.text.fg")
}
func (w *TextCol) UnHighlight() {
w.TextFgColor = ui.ThemeAttr("par.text.fg")
w.TextBgColor = ui.ThemeAttr("par.text.bg")
}
func (w *TextCol) Reset() {
w.Text = "-"
}