diff --git a/help.go b/help.go index 441ba01..7aa5e62 100644 --- a/help.go +++ b/help.go @@ -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() diff --git a/treeAdd.go b/treeAdd.go index ec1eb4a..be80499 100644 --- a/treeAdd.go +++ b/treeAdd.go @@ -80,16 +80,17 @@ func addWidget(n *tree.Node) { tk.color = &colorCombobox return case widget.Box: - tk.color = &colorBox + // tk.color = &colorBox tk.isFake = true setFake(n) return case widget.Grid: - tk.color = &colorGrid + // tk.color = &colorGrid tk.isFake = true setFake(n) return case widget.Group: + tk.setColorLabel() tk.frame = false return case widget.Label: