summary refs log tree commit diff stats
path: root/widgets/msglist.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-30 10:40:55 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-30 10:41:12 -0400
commit4465646fedc5dd3efa680a7cc8d06671350b75b9 (patch)
treea00457017cd26aef80bdd78cfd02293a9292e40a /widgets/msglist.go
parent77ede6eb5a22a5407541ac587736189fcca0037f (diff)
downloadaerc-4465646fedc5dd3efa680a7cc8d06671350b75b9.tar.gz
Show deleted emails pending server ack in grey
TODO: Don't let the user select or interact with deleted messages
Diffstat (limited to 'widgets/msglist.go')
-rw-r--r--widgets/msglist.go3
1 files changed, 3 insertions, 0 deletions
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)