Safe Haskell | None |
---|---|
Language | Haskell2010 |
UI.Mail.Main
Synopsis
- renderMailView :: AppState -> Widget Name
- renderAttachmentsList :: AppState -> Widget Name
- renderPart :: CharsetLookup -> Bool -> Headers -> Widget Name
- buildWordMarkup :: Maybe ScrollStep -> Line -> Markup AttrName
Documentation
renderMailView :: AppState -> Widget Name Source #
Instead of using the entire rendering area to show the email, we still show the index in context above the mail.
Implementation detail: Currently we're creating the sub list of mails we show for each key press. This might have to change in the future.
renderAttachmentsList :: AppState -> Widget Name Source #
renderPart :: CharsetLookup -> Bool -> Headers -> Widget Name Source #
buildWordMarkup :: Maybe ScrollStep -> Line -> Markup AttrName Source #
Render the line by inserting markup if we have a match *and* a scroll step matching Note: Why are we ignoring the line number here? Because it only matters for scrolling, not for highlighting the match.