summaryrefslogtreecommitdiff
path: root/colorNew.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-07 02:49:11 -0600
committerJeff Carr <[email protected]>2025-02-07 02:49:11 -0600
commit6ac82df94991ed25794bf28791e94cb98e01012b (patch)
tree85bcbac5b9ba41f3dbf109026517ed88aa59b3ca /colorNew.go
parent0b67b198bdc439c62ac2e6a7cc18bd4be128faf7 (diff)
might as well test dark/light mode
Diffstat (limited to 'colorNew.go')
-rw-r--r--colorNew.go19
1 files changed, 19 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 {