Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qbar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
qbar
Commits
1c9b1462
Commit
1c9b1462
authored
5 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Update some comments.
parent
f605f3ad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/QBar/Server.hs
+2
-2
2 additions, 2 deletions
src/QBar/Server.hs
with
2 additions
and
2 deletions
src/QBar/Server.hs
+
2
−
2
View file @
1c9b1462
...
@@ -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'
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment