add option for color inversion

This commit is contained in:
Bradley Cicenas
2017-03-15 10:02:46 +10:00
parent 50b4181866
commit e82d77ecb0
4 changed files with 23 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import (
ui "github.com/gizak/termui"
)
var header = NewCompactHeader()
var header *CompactHeader
type CompactGrid struct {
ui.GridBufferer
@@ -16,6 +16,7 @@ type CompactGrid struct {
}
func NewCompactGrid() *CompactGrid {
header = NewCompactHeader() // init column header
return &CompactGrid{}
}

View File

@@ -17,7 +17,7 @@ func NewTextCol(s string) *TextCol {
}
func (w *TextCol) Highlight() {
w.TextFgColor = ui.ColorBlack
w.TextFgColor = ui.ThemeAttr("par.text.hi")
w.TextBgColor = ui.ThemeAttr("par.text.fg")
}