diff options
author | Kierán Meinhardt <kieran.meinhardt@gmail.com> | 2020-09-29 21:55:23 +0200 |
---|---|---|
committer | Kierán Meinhardt <kieran.meinhardt@gmail.com> | 2020-09-29 22:14:38 +0200 |
commit | e7d53d6fc81fb14576fca035ab0360b44bbd6495 (patch) | |
tree | d0fbd3b38c12d6541e08b446c2e6d9b4c43da7b4 /src/Much/RenderTreeView.hs | |
parent | 8d5e610b4caee7cb184294ca22f527f9f6934b82 (diff) |
override colors and query via JSON config
Diffstat (limited to 'src/Much/RenderTreeView.hs')
-rw-r--r-- | src/Much/RenderTreeView.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Much/RenderTreeView.hs b/src/Much/RenderTreeView.hs index 60b48d6..d5999b2 100644 --- a/src/Much/RenderTreeView.hs +++ b/src/Much/RenderTreeView.hs @@ -196,11 +196,11 @@ renderTags state = renderTag :: State -> Tag -> Blessings String -renderTag state tag = case lookup tag (tagMap (colorConfig state)) of +renderTag state tag = case M.lookup tag (tagMap (colorConfig state)) of Just visual -> visual plain Nothing -> plain where - plain = Plain $ T.unpack $ fromMaybe tag $ lookup tag (tagSymbols state) + plain = Plain $ T.unpack $ fromMaybe tag $ M.lookup tag (tagSymbols state) dropAddress :: String -> String |