add ContainerWidgets interface, config channel

This commit is contained in:
Bradley Cicenas
2017-01-06 12:59:45 +00:00
parent 6d63d09c83
commit f311aad105
6 changed files with 45 additions and 16 deletions

View File

@@ -54,11 +54,9 @@ func (g *Grid) cursorDown() {
func (g *Grid) redrawCursor() {
for _, c := range g.containers {
if c.id == g.cursorID {
c.widgets.Name.TextFgColor = ui.ColorDefault
c.widgets.Name.TextBgColor = ui.ColorWhite
c.widgets.Highlight()
} else {
c.widgets.Name.TextFgColor = ui.ColorWhite
c.widgets.Name.TextBgColor = ui.ColorDefault
c.widgets.UnHighlight()
}
ui.Render(ui.Body)
}