From 3c00df0ff61ac45def703c25a4b63f2e795c3dfd Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 29 Jan 2024 00:16:53 +0000 Subject: Use border layout so that process log expands to take up as much window space as is left when opened --- cmd/rescribe/gui.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go index aeb714e..a4bdfdb 100644 --- a/cmd/rescribe/gui.go +++ b/cmd/rescribe/gui.go @@ -572,8 +572,11 @@ func startGui(log *log.Logger, cmd string, gbookcmd string, training string, tes trainingBits := container.New(layout.NewBorderLayout(nil, nil, trainingLabel, nil), trainingLabel, trainingOpts) - fullContent = container.NewVBox(choices, chosen, trainingBits, wipe, bigpdf, gobtn, abortbtn, progressBar, detail) - startContent := container.NewVBox(choices, trainingBits, wipe, bigpdf, gobtn, abortbtn, progressBar, detail) + // TODO: add / remove widgets rather than swapping between fullContent and startContent + fullBox := container.NewVBox(choices, chosen, trainingBits, wipe, bigpdf, gobtn, abortbtn, progressBar) + fullContent = container.NewBorder(fullBox, nil, nil, nil, detail) + startBox := container.NewVBox(choices, trainingBits, wipe, bigpdf, gobtn, abortbtn, progressBar) + startContent := container.NewBorder(startBox, nil, nil, nil, detail) myWindow.SetContent(startContent) -- cgit v1.2.1-24-ge1ad