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 | |
| parent | dd5232fa6ba887c0b3fbc8dba3f91d81eef6a409 (diff) | |
dark mode is okay
| -rw-r--r-- | help.go | 13 | ||||
| -rw-r--r-- | treeAdd.go | 5 |
2 files changed, 16 insertions, 2 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() @@ -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: |
