diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-30 10:40:55 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-30 10:41:12 -0400 |
commit | 4465646fedc5dd3efa680a7cc8d06671350b75b9 (patch) | |
tree | a00457017cd26aef80bdd78cfd02293a9292e40a /widgets/msglist.go | |
parent | 77ede6eb5a22a5407541ac587736189fcca0037f (diff) | |
download | aerc-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.go | 3 |
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) |