Show unsupported mimetype message in red

This commit is contained in:
Drew DeVault 2019-05-20 17:05:37 -04:00
parent d224487b68
commit 33f2d4f9ee

View file

@ -425,7 +425,7 @@ func (pv *PartViewer) Draw(ctx *ui.Context) {
if pv.filter == nil {
// TODO: Let them download it directly or something
ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault)
ctx.Printf(0, 0, tcell.StyleDefault,
ctx.Printf(0, 0, tcell.StyleDefault.Foreground(tcell.ColorRed),
"No filter configured for this mimetype")
return
}