This commit is contained in:
Jesse Duffield 2019-06-16 10:28:31 +10:00
parent e3da07d0b2
commit 55894b4a5e

View file

@ -173,8 +173,6 @@ func (gui *Gui) layout(g *gocui.Gui) error {
servicesView.Highlight = true servicesView.Highlight = true
servicesView.Title = gui.Tr.ServicesTitle servicesView.Title = gui.Tr.ServicesTitle
servicesView.FgColor = gocui.ColorWhite servicesView.FgColor = gocui.ColorWhite
gui.focusPoint(0, gui.State.Panels.Services.SelectedLine, len(gui.DockerCommand.Services), servicesView)
} }
} }
@ -190,8 +188,6 @@ func (gui *Gui) layout(g *gocui.Gui) error {
containersView.Title = gui.Tr.StandaloneContainersTitle containersView.Title = gui.Tr.StandaloneContainersTitle
} }
containersView.FgColor = gocui.ColorWhite containersView.FgColor = gocui.ColorWhite
gui.focusPoint(0, gui.State.Panels.Containers.SelectedLine, len(gui.DockerCommand.Containers), containersView)
} }
imagesView, err := g.SetViewBeneath("images", "containers", vHeights["images"]) imagesView, err := g.SetViewBeneath("images", "containers", vHeights["images"])
@ -202,8 +198,6 @@ func (gui *Gui) layout(g *gocui.Gui) error {
imagesView.Highlight = true imagesView.Highlight = true
imagesView.Title = gui.Tr.ImagesTitle imagesView.Title = gui.Tr.ImagesTitle
imagesView.FgColor = gocui.ColorWhite imagesView.FgColor = gocui.ColorWhite
gui.focusPoint(0, gui.State.Panels.Images.SelectedLine, len(gui.DockerCommand.Images), imagesView)
} }
volumesView, err := g.SetViewBeneath("volumes", "images", vHeights["volumes"]) volumesView, err := g.SetViewBeneath("volumes", "images", vHeights["volumes"])
@ -214,8 +208,6 @@ func (gui *Gui) layout(g *gocui.Gui) error {
volumesView.Highlight = true volumesView.Highlight = true
volumesView.Title = gui.Tr.VolumesTitle volumesView.Title = gui.Tr.VolumesTitle
volumesView.FgColor = gocui.ColorWhite volumesView.FgColor = gocui.ColorWhite
gui.focusPoint(0, gui.State.Panels.Images.SelectedLine, len(gui.DockerCommand.Images), volumesView)
} }
if v, err := g.SetView("options", appStatusOptionsBoundary-1, height-2, optionsVersionBoundary-1, height, 0); err != nil { if v, err := g.SetView("options", appStatusOptionsBoundary-1, height-2, optionsVersionBoundary-1, height, 0); err != nil {