Change syntax highlighting
This commit is contained in:
parent
05f4343d40
commit
54e192aa8c
3 changed files with 8 additions and 4 deletions
|
|
@ -30,7 +30,10 @@ withSpace :: B.Widget n -> B.Widget n
|
|||
withSpace w = w B.<+> B.withDefAttr taskAttr (B.str " ")
|
||||
|
||||
renderCompletion :: Completion -> B.Widget n
|
||||
renderCompletion = B.withDefAttr taskCompletionAttr . B.str . formatCompletion
|
||||
renderCompletion Incomplete = B.str "-"
|
||||
renderCompletion (Complete Nothing) = B.str "x"
|
||||
renderCompletion (Complete (Just day)) =
|
||||
B.str "x" B.<+> B.withDefAttr taskCompletionAttr (B.str $ formatDate day)
|
||||
|
||||
renderPriority :: Priority -> B.Widget n
|
||||
renderPriority p =
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ defaultTheme = B.newTheme VTY.defAttr
|
|||
, (B.listSelectedAttr, st' VTY.bold)
|
||||
, (B.listSelectedFocusedAttr, bg VTY.blue $ st' VTY.bold)
|
||||
, (taskAttr, none)
|
||||
, (taskCompletionAttr, none)
|
||||
, (taskCompletionAttr, fg' VTY.brightBlack)
|
||||
, (taskPriorityAttr, fg VTY.cyan $ st' VTY.bold)
|
||||
, (taskPriorityAttr <> "A", fg VTY.red $ st' VTY.bold)
|
||||
, (taskPriorityAttr <> "B", fg VTY.yellow $ st' VTY.bold)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue