fix tree items possibly getting the wrong foreground or background

This commit is contained in:
Tim Cooper
2014-12-09 15:27:08 -04:00
parent b65aa544b3
commit 91247c27e7
2 changed files with 3 additions and 5 deletions

View File

@@ -20,9 +20,7 @@ func (ti TreeItem) String() string {
return ""
}
func (ti TreeItem) TreeItemStyle(active bool) (uiterm.Attribute, uiterm.Attribute) {
fg := uiterm.ColorDefault
bg := uiterm.ColorBlack
func (ti TreeItem) TreeItemStyle(fg, bg uiterm.Attribute, active bool) (uiterm.Attribute, uiterm.Attribute) {
if ti.Channel != nil {
fg |= uiterm.AttrBold
}