dark mode is okay
This commit is contained in:
parent
dd5232fa6b
commit
6c522a4b27
13
help.go
13
help.go
|
@ -95,6 +95,14 @@ func setThingsOnTop() {
|
||||||
me.baseGui.SetViewOnTop("help")
|
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 {
|
if me.stdout.outputOnTop {
|
||||||
me.baseGui.SetViewOnTop("msg")
|
me.baseGui.SetViewOnTop("msg")
|
||||||
} else {
|
} else {
|
||||||
|
@ -108,6 +116,11 @@ func setBottomBG() {
|
||||||
rootTK := me.treeRoot.TK.(*guiWidget)
|
rootTK := me.treeRoot.TK.(*guiWidget)
|
||||||
if tk := rootTK.findBG(); tk != nil {
|
if tk := rootTK.findBG(); tk != nil {
|
||||||
// log.Info("found BG. setting to bottom", tk.cuiName)
|
// 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()
|
tk.v.Clear()
|
||||||
me.baseGui.SetViewOnBottom(tk.cuiName)
|
me.baseGui.SetViewOnBottom(tk.cuiName)
|
||||||
w, h := me.baseGui.Size()
|
w, h := me.baseGui.Size()
|
||||||
|
|
|
@ -80,16 +80,17 @@ func addWidget(n *tree.Node) {
|
||||||
tk.color = &colorCombobox
|
tk.color = &colorCombobox
|
||||||
return
|
return
|
||||||
case widget.Box:
|
case widget.Box:
|
||||||
tk.color = &colorBox
|
// tk.color = &colorBox
|
||||||
tk.isFake = true
|
tk.isFake = true
|
||||||
setFake(n)
|
setFake(n)
|
||||||
return
|
return
|
||||||
case widget.Grid:
|
case widget.Grid:
|
||||||
tk.color = &colorGrid
|
// tk.color = &colorGrid
|
||||||
tk.isFake = true
|
tk.isFake = true
|
||||||
setFake(n)
|
setFake(n)
|
||||||
return
|
return
|
||||||
case widget.Group:
|
case widget.Group:
|
||||||
|
tk.setColorLabel()
|
||||||
tk.frame = false
|
tk.frame = false
|
||||||
return
|
return
|
||||||
case widget.Label:
|
case widget.Label:
|
||||||
|
|
Loading…
Reference in New Issue