diff options
author | Kierán Meinhardt <kieran.meinhardt@gmail.com> | 2020-09-23 00:26:36 +0200 |
---|---|---|
committer | Kierán Meinhardt <kieran.meinhardt@gmail.com> | 2020-09-23 00:26:36 +0200 |
commit | 7d5a45ebb25ffc4800fbc1812c9831fd5e78f944 (patch) | |
tree | 019a20d78a43259cfada40d9e5609c8cb7d3c619 /Core.hs | |
parent | ca8439b6787eb238d7b07544dfc728488f3c71b6 (diff) |
State: make tag colours configurable
Diffstat (limited to 'Core.hs')
-rw-r--r-- | Core.hs | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -42,6 +42,11 @@ emptyState = State , signalHandlers = [] , keymap = displayKey , mousemap = displayMouse + , tagVisuals = + [ ("killed", SGR [38,5,088]) + , ("star", SGR [38,5,226]) + , ("draft", SGR [38,5,202]) + ] } withQuery :: String -> State -> IO State @@ -165,7 +170,7 @@ render q@State{..} = , headBuffer = newHeadBuf } where - newTreeBuf = renderTreeView now cursor (Z.root cursor) + newTreeBuf = renderTreeView q (Z.root cursor) newHeadBuf = [ Plain (show screenWidth) <> "x" <> Plain (show screenHeight) <> " " <> Plain (show $ linearPos cursor - yoffset) @@ -194,6 +199,3 @@ redraw q@State{..} = do if Blessings.length s < screenWidth then s <> "\ESC[K" else s - - - |