mirror of
https://github.com/bcicen/ctop.git
synced 2025-11-15 07:25:49 +01:00
add ContainerWidgets interface, config channel
This commit is contained in:
6
grid.go
6
grid.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user