diff options
| author | Jeff Carr <[email protected]> | 2025-02-07 03:19:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-07 03:19:36 -0600 |
| commit | 6c522a4b271dd978928ec0079a6be205edb22727 (patch) | |
| tree | 16906a4be486a7fcd2f68221a503a56d1c7ff56c /help.go | |
| parent | dd5232fa6ba887c0b3fbc8dba3f91d81eef6a409 (diff) | |
dark mode is okay
Diffstat (limited to 'help.go')
| -rw-r--r-- | help.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -95,6 +95,14 @@ func setThingsOnTop() { me.baseGui.SetViewOnTop("help") } + if me.dark { + me.stdout.tk.v.FgColor = gocui.ColorWhite + me.stdout.tk.v.BgColor = gocui.ColorBlack + } else { + me.stdout.tk.v.FgColor = gocui.ColorBlack + me.stdout.tk.v.BgColor = gocui.AttrNone + } + if me.stdout.outputOnTop { me.baseGui.SetViewOnTop("msg") } else { @@ -108,6 +116,11 @@ func setBottomBG() { rootTK := me.treeRoot.TK.(*guiWidget) if tk := rootTK.findBG(); tk != nil { // log.Info("found BG. setting to bottom", tk.cuiName) + if me.dark { + tk.v.BgColor = gocui.ColorBlack + } else { + tk.v.BgColor = gocui.ColorWhite + } tk.v.Clear() me.baseGui.SetViewOnBottom(tk.cuiName) w, h := me.baseGui.Size() |
