diff options
| author | Jeff Carr <[email protected]> | 2025-02-06 04:47:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-06 04:47:50 -0600 |
| commit | 9c7b139e5ac7c0fbec70a827aab6d0d2b9a030b7 (patch) | |
| tree | 134dd43db3313fefc72f60d5520c3955130b06dc /help.go | |
| parent | d3b25092f89c86c8448f4bd088cdd128b9e28e2c (diff) | |
full screen BG widget is created. good enough to ship it
Diffstat (limited to 'help.go')
| -rw-r--r-- | help.go | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -89,14 +89,27 @@ func showHelp() error { // depending on the state the user has chosen func setThingsOnTop() { if me.showHelp { // terrible variable name. FIXME - // log.Info("help is hidden") - return + // log.Info("help does not exist") + } else { + me.baseGui.SetViewOnTop("help") } - me.baseGui.SetViewOnTop("help") if me.stdout.outputOnTop { me.baseGui.SetViewOnTop("msg") } else { me.baseGui.SetViewOnBottom("msg") } + setBottomBG() +} + +func setBottomBG() { + // this attempts to find the "BG" widget and set it to the background on the very very bottom + rootTK := me.treeRoot.TK.(*guiWidget) + if tk := rootTK.findBG(); tk != nil { + // log.Info("found BG. setting to bottom", tk.cuiName) + tk.v.Clear() + me.baseGui.SetViewOnBottom(tk.cuiName) + w, h := me.baseGui.Size() + me.baseGui.SetView(tk.cuiName, -1, -1, w+1, h+1, 0) + } } |
