Skip to content

Commit

Permalink
Improved CountDown timer (#300)
Browse files Browse the repository at this point in the history
* Improved CountDown timer

Lots of improvements over original timer. They can be divided into several
categories:

- Improve timer handler. The original timer counted seconds via a callback.
  If the computer was suspended, the timer would have been suspended too.
  The new timer continues to run even when the computer is suspended.

- Improved configurability of countdown timer
  Many of its properties can now be configured via object attributes

- Added menu bar:
  A menu bar item allows to start/pause/resume/cancel a timer

- Optional progress messages:
  It can optionally display messages to the screen as the timer is advancing

- Improved time-up messages.
  I found that the end of the timer notifications were too subtle to be noticed.
  It now allows several ways to configure the notifications

- A callback.
  User can specify a callback to the evaluated as the timer is
  started/paused/resumed/cancelled.

- In addition to minutes, a timer can now be set using a time of day,

* Add setProgress

I realized that I removed this function. To maintain full backwards
compatibility I have added it back. Adds a new type of event (setProgress).

---------

Co-authored-by: Daniel M German <[email protected]>
  • Loading branch information
dmgerman and gitmsr authored Aug 9, 2024
1 parent 1ba7fc3 commit c821e5a
Show file tree
Hide file tree
Showing 2 changed files with 875 additions and 87 deletions.
Loading

0 comments on commit c821e5a

Please sign in to comment.