From 4465646fedc5dd3efa680a7cc8d06671350b75b9 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 30 Mar 2019 10:40:55 -0400 Subject: Show deleted emails pending server ack in grey TODO: Don't let the user select or interact with deleted messages --- widgets/msglist.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets') diff --git a/widgets/msglist.go b/widgets/msglist.go index 18a7019..47be7bc 100644 --- a/widgets/msglist.go +++ b/widgets/msglist.go @@ -81,6 +81,9 @@ func (ml *MessageList) Draw(ctx *ui.Context) { style = style.Background(tcell.ColorWhite). Foreground(tcell.ColorBlack) } + if _, ok := ml.store.Deleted[msg.Uid]; ok { + style = style.Foreground(tcell.ColorGray) + } ctx.Fill(0, row, ctx.Width(), 1, ' ', style) ctx.Printf(0, row, style, "%s", msg.Envelope.Subject) -- cgit v1.2.3