about summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/aerc.go2
-rw-r--r--widgets/dirlist.go3
-rw-r--r--widgets/msglist.go3
-rw-r--r--widgets/status.go15
4 files changed, 11 insertions, 12 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 92fc06e..fdfc658 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -49,7 +49,7 @@ func NewAerc(conf *config.AercConfig, logger *log.Logger,
 
 	grid.AddChild(libui.NewText("aerc").
 		Strategy(libui.TEXT_CENTER).
-		Color(tcell.ColorBlack, tcell.ColorWhite))
+		Reverse(true))
 	grid.AddChild(tabs.TabStrip).At(0, 1)
 	grid.AddChild(tabs.TabContent).At(1, 0).Span(1, 2)
 
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 58108ff..eb79bc4 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -109,8 +109,7 @@ func (dirlist *DirectoryList) Draw(ctx *ui.Context) {
 		}
 		style := tcell.StyleDefault
 		if name == dirlist.selected {
-			style = style.Background(tcell.ColorWhite).
-				Foreground(tcell.ColorBlack)
+			style = style.Reverse(true)
 		}
 		ctx.Fill(0, row, ctx.Width(), 1, ' ', style)
 		ctx.Printf(0, row, style, "%s", name)
diff --git a/widgets/msglist.go b/widgets/msglist.go
index 47be7bc..d8d419e 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -78,8 +78,7 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
 
 		style := tcell.StyleDefault
 		if row == ml.selected-ml.scroll {
-			style = style.Background(tcell.ColorWhite).
-				Foreground(tcell.ColorBlack)
+			style = style.Reverse(true)
 		}
 		if _, ok := ml.store.Deleted[msg.Uid]; ok {
 			style = style.Foreground(tcell.ColorGray)
diff --git a/widgets/status.go b/widgets/status.go
index 7a746fa..3536760 100644
--- a/widgets/status.go
+++ b/widgets/status.go
@@ -24,8 +24,8 @@ type StatusMessage struct {
 func NewStatusLine() *StatusLine {
 	return &StatusLine{
 		fallback: StatusMessage{
-			bg:      tcell.ColorWhite,
-			fg:      tcell.ColorBlack,
+			bg:      tcell.ColorDefault,
+			fg:      tcell.ColorDefault,
 			message: "Idle",
 		},
 	}
@@ -46,15 +46,16 @@ func (status *StatusLine) Draw(ctx *ui.Context) {
 	if len(status.stack) != 0 {
 		line = status.stack[len(status.stack)-1]
 	}
-	style := tcell.StyleDefault.Background(line.bg).Foreground(line.fg)
+	style := tcell.StyleDefault.
+		Background(line.bg).Foreground(line.fg).Reverse(true)
 	ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', style)
 	ctx.Printf(0, 0, style, "%s", line.message)
 }
 
 func (status *StatusLine) Set(text string) *StatusMessage {
 	status.fallback = StatusMessage{
-		bg:      tcell.ColorWhite,
-		fg:      tcell.ColorBlack,
+		bg:      tcell.ColorDefault,
+		fg:      tcell.ColorDefault,
 		message: text,
 	}
 	status.Invalidate()
@@ -63,8 +64,8 @@ func (status *StatusLine) Set(text string) *StatusMessage {
 
 func (status *StatusLine) Push(text string, expiry time.Duration) *StatusMessage {
 	msg := &StatusMessage{
-		bg:      tcell.ColorWhite,
-		fg:      tcell.ColorBlack,
+		bg:      tcell.ColorDefault,
+		fg:      tcell.ColorDefault,
 		message: text,
 	}
 	status.stack = append(status.stack, msg)