From e95ecb9e9cb37c2a07833d93e950c917c9c9ad9c Mon Sep 17 00:00:00 2001 From: Jens Krause <47693+sectore@users.noreply.github.com> Date: Wed, 5 Feb 2025 19:29:56 +0100 Subject: [PATCH] feat(notification): Animate (blink) clock entering `done` mode (#65) Optional. --- CHANGELOG.md | 5 ++-- README.md | 3 ++- demo/blink.gif | Bin 0 -> 39910 bytes demo/blink.tape | 23 ++++++++++++++++++ justfile | 5 ++++ src/app.rs | 32 +++++++++++++++++------- src/args.rs | 13 +++++++--- src/common.rs | 2 +- src/storage.rs | 8 +++--- src/widgets/clock.rs | 51 +++++++++++++++++++++++++++++++++++++-- src/widgets/countdown.rs | 4 ++- src/widgets/pomodoro.rs | 4 ++- src/widgets/timer.rs | 4 ++- 13 files changed, 130 insertions(+), 24 deletions(-) create mode 100644 demo/blink.gif create mode 100644 demo/blink.tape diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c34482..8d9edee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,9 @@ ### Features -- (notification) Native desktop notification (experimental) [#49](https://github.com/sectore/timr-tui/pull/59) -- (notification) Sound notification (experimental) [#62](https://github.com/sectore/timr-tui/pull/62) +- (notification) Blink clock when it reaches its `done` mode. (optional) [#65](https://github.com/sectore/timr-tui/pull/65) +- (notification) Native desktop notification (optional, experimental) [#49](https://github.com/sectore/timr-tui/pull/59) +- (notification) Sound notification (optional, experimental, available in local build only) [#62](https://github.com/sectore/timr-tui/pull/62) ## v1.1.0 - 2025-01-22 diff --git a/README.md b/README.md index c43a778..a4fecf9 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,8 @@ Options: -s, --style