InfiniTime icon indicating copy to clipboard operation
InfiniTime copied to clipboard

notifications: add option to clear all notifications

Open KaffeinatedKat opened this issue 1 year ago • 6 comments

I have added an action to dismiss all notifications in the notification viewer. You swipe left and it moves the notification to reveal a button that dismisses all of the notifications. If the menu is open and you swipe right it closes.

The button looks kinda jank currently. I really like the idea of swiping to reveal a button, but I don't know how to make it look good

image image

KaffeinatedKat avatar Feb 02 '24 09:02 KaffeinatedKat

Build checks have not completed. Possible reasons for this are:

  1. The checks need to be approved by a maintainer
  2. The branch has conflicts
  3. The firmware build has failed

github-actions[bot] avatar Feb 02 '24 10:02 github-actions[bot]

@KaffeinatedKat What if you implemented a long press action that pops up your button in the middle of the screen?

JustScott avatar Feb 03 '24 20:02 JustScott

I thought about that, but I hate how inconsistent the long press action is detected, so I went with a swipe action because it's much more consistent

KaffeinatedKat avatar Feb 03 '24 20:02 KaffeinatedKat

If we ever get to implement iOS notifications, we will need both left and right swipe to interact with them. Not super relevant right now, but there might be a conflict in the (far) future.

minacode avatar Feb 04 '24 20:02 minacode

how come? How are iOS notifications different from android ones?

KaffeinatedKat avatar Feb 04 '24 21:02 KaffeinatedKat

Apple has its own BLE service 😄

minacode avatar Feb 04 '24 22:02 minacode