eww -> timer: Fixed circular progress not being updated
This commit is contained in:
parent
98d6cb2dd5
commit
568ba5f879
1 changed files with 6 additions and 1 deletions
|
@ -43,8 +43,13 @@
|
|||
(overlay
|
||||
(circular-progress
|
||||
:class "circle-progress"
|
||||
:value 100
|
||||
:value "${
|
||||
timer-state == "inactive" ? 100 :
|
||||
100 * (timer-start-time + (timer-state == "work" ? WORK_TIME_SEC : PAUSE_TIME_SEC) - timer-time)
|
||||
/ (timer-state == "work" ? WORK_TIME_SEC : PAUSE_TIME_SEC)
|
||||
}"
|
||||
:thickness 6
|
||||
:start-at 75
|
||||
:clockwise true)
|
||||
(label :class "start-icon" :text "${timer-state == "inactive" ? 'Start' : (timer-state == "work" ? "Working" : "Pause")}")
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue