diff options
Diffstat (limited to 'colorNew.go')
| -rw-r--r-- | colorNew.go | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/colorNew.go b/colorNew.go index 773bb12..b7b908b 100644 --- a/colorNew.go +++ b/colorNew.go @@ -67,6 +67,25 @@ func (tk *guiWidget) setColorBG() { tk.color.selBg = gocui.AttrNone } +func (tk *guiWidget) setColorLabel() { + if tk.color == nil { + tk.color = new(colorT) + } + if me.dark { + tk.color.frame = gocui.AttrNone + tk.color.fg = gocui.ColorWhite + tk.color.bg = gocui.ColorBlack + tk.color.selFg = gocui.ColorWhite + tk.color.selBg = gocui.AttrNone + return + } + tk.color.frame = gocui.AttrNone + tk.color.fg = gocui.ColorBlack + tk.color.bg = gocui.AttrNone + tk.color.selFg = gocui.AttrNone + tk.color.selBg = gocui.AttrNone +} + func (tk *guiWidget) setColorButtonDense() { if tk.color == nil { tk.color = new(colorT) @@ -74,7 +93,7 @@ func (tk *guiWidget) setColorButtonDense() { if me.dark { tk.color.frame = gocui.AttrNone tk.color.fg = gocui.ColorBlue - tk.color.bg = gocui.AttrNone + tk.color.bg = gocui.ColorBlack tk.color.selFg = gocui.ColorWhite tk.color.selBg = gocui.ColorBlue return @@ -91,9 +110,9 @@ func (tk *guiWidget) setColorButton() { tk.color = new(colorT) } if me.dark { - tk.color.frame = gocui.ColorBlue - tk.color.fg = gocui.AttrNone - tk.color.bg = gocui.AttrNone + tk.color.frame = gocui.ColorBlack + tk.color.fg = gocui.ColorBlue + tk.color.bg = gocui.ColorBlack tk.color.selFg = gocui.ColorWhite tk.color.selBg = gocui.ColorBlue return |
