Show unsupported mimetype message in red
This commit is contained in:
parent
d224487b68
commit
33f2d4f9ee
|
@ -425,7 +425,7 @@ func (pv *PartViewer) Draw(ctx *ui.Context) {
|
||||||
if pv.filter == nil {
|
if pv.filter == nil {
|
||||||
// TODO: Let them download it directly or something
|
// TODO: Let them download it directly or something
|
||||||
ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault)
|
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")
|
"No filter configured for this mimetype")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue