Skip to content
Snippets Groups Projects
Commit 1c9b1462 authored by Jens Nolte's avatar Jens Nolte
Browse files

Update some comments.

parent f605f3ad
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,7 @@ swayBarOutput options@MainOptions{indicator} = do ...@@ -121,7 +121,7 @@ swayBarOutput options@MainOptions{indicator} = do
runBarServerMirror :: BarIO () -> MainOptions -> IO () runBarServerMirror :: BarIO () -> MainOptions -> IO ()
runBarServerMirror loadBlocks options = do runBarServerMirror loadBlocks options = do
-- TODO: apply theme from remote -- It would be nice to apply the theme from the remote, but because of the current split between Host and Server some redesign is required first.
(blockConsumer, eventProducer, _setTheme') <- themingBarServer options (blockConsumer, eventProducer, _setTheme') <- themingBarServer options
runBarHost (return (blockConsumer, eventProducer)) $ do runBarHost (return (blockConsumer, eventProducer)) $ do
addServerMirrorStream options addServerMirrorStream options
...@@ -192,7 +192,7 @@ themingBarServer options = do ...@@ -192,7 +192,7 @@ themingBarServer options = do
(themedBlocks, isAnimated'') <- liftIO $ modifyMVar themedBlockProducerMVar (\(themedBlockProducer, isAnimated') -> do (themedBlocks, isAnimated'') <- liftIO $ modifyMVar themedBlockProducerMVar (\(themedBlockProducer, isAnimated') -> do
result <- next themedBlockProducer result <- next themedBlockProducer
case result of case result of
-- TODO: fix type safety on this somehow? -- Maybe type safety can be improved so this pattern match is no longer needed?
Left _ -> throw $ userError "Unexpected behavior: Themes and output cache mailbox should never return" Left _ -> throw $ userError "Unexpected behavior: Themes and output cache mailbox should never return"
Right (themedBlocks, nextThemedBlockProducer) -> Right (themedBlocks, nextThemedBlockProducer) ->
return ((nextThemedBlockProducer, isAnimated'), (themedBlocks, isAnimated')) return ((nextThemedBlockProducer, isAnimated'), (themedBlocks, isAnimated'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment