summaryrefslogtreecommitdiff
path: root/cmd/rescribe/gui.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2024-01-29 00:16:53 +0000
committerNick White <git@njw.name>2024-01-29 00:16:53 +0000
commit3c00df0ff61ac45def703c25a4b63f2e795c3dfd (patch)
treec55df4362231b1ae59c23c3025ddef5efde05bd2 /cmd/rescribe/gui.go
parent159442e34059ee791d1bb3b2dae4a5ced7216c6f (diff)
Use border layout so that process log expands to take up as much window space as is left when opened
Diffstat (limited to 'cmd/rescribe/gui.go')
-rw-r--r--cmd/rescribe/gui.go7
1 files changed, 5 insertions, 2 deletions
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)