summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--colorNew.go19
-rw-r--r--window.go1
2 files changed, 20 insertions, 0 deletions
diff --git a/colorNew.go b/colorNew.go
index 9fdc484..773bb12 100644
--- a/colorNew.go
+++ b/colorNew.go
@@ -9,6 +9,25 @@ import (
"github.com/awesome-gocui/gocui"
)
+func (tk *guiWidget) setColorWindowFrame() {
+ if tk.color == nil {
+ tk.color = new(colorT)
+ }
+ if me.dark { // use a dark color palette
+ tk.color.frame = gocui.AttrNone
+ tk.color.fg = gocui.ColorBlack
+ tk.color.bg = gocui.ColorBlack
+ tk.color.selFg = gocui.AttrNone
+ tk.color.selBg = gocui.AttrNone
+ return
+ }
+ tk.color.frame = gocui.AttrNone
+ tk.color.fg = gocui.AttrNone
+ tk.color.bg = gocui.AttrNone
+ tk.color.selFg = gocui.AttrNone
+ tk.color.selBg = gocui.AttrNone
+}
+
// weird. lots of color problems for me on debian sid using the traditional Andy Herzfield 'gnome'
func (tk *guiWidget) setColorWindowTitle() {
if tk.color == nil {
diff --git a/window.go b/window.go
index b368f4d..db93581 100644
--- a/window.go
+++ b/window.go
@@ -78,6 +78,7 @@ func (tk *guiWidget) redrawWindow(w int, h int) {
tk.windowFrame.full.w1 = r.w1 + 1
tk.windowFrame.full.h0 = tk.force.h0 + 2
tk.windowFrame.full.h1 = r.h1 + 1
+ tk.windowFrame.setColorWindowFrame()
tk.windowFrame.Hide()
tk.windowFrame.Show()