Make passiveNotifications last longer, so users can actually read them

Authored by ngraham on Sun, Mar 4, 2:41 AM.



Right now passiveNotifications last for 4.5 seconds by default, including the time taken up by their appearance and disappearance animations. In practice, the notifications are readable for abour 3.5-4 seconds, max. This is far too short a time for the user to notice that the notification appeared, move their eyeballs to it, start reading it, and finish reading it.

When a notification disappears before it's been fully read, or worse, before the user even started reading it, extreme feelings of user discomfort are generated. Users start to think, "did I miss something important? What are the consequences to not seeing that!?" It matters not if the notification was unimportant;people hate the feeling of "missing out", and the current low duration induces those feelings.

This patch increases the default time on-screen to 7 seconds, greatly increasing the liklihood that the user will actually notice and read the notification before it disappears. It also accordingly increases the short and long durations too.

Test Plan

Test in Discover:

  • Install Flatpak backend
  • Go to Settings page
  • Click hamburger menu for Flatpah backend
  • Choose "Add Source"
  • Enter "aaaaaaaaaaaaaa" in the text field and click OK

With this patch, the message that appears lasts for 7 seconds, and you can actually read it in time before it disappears.

Diff Detail

R169 Kirigami
longer-lasting-passiveNotifications (branched from master)
No Linters Available
No Unit Test Coverage
ngraham created this revision.Sun, Mar 4, 2:41 AM
Restricted Application added a project: Kirigami. · View Herald TranscriptSun, Mar 4, 2:41 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ngraham requested review of this revision.Sun, Mar 4, 2:41 AM
ngraham added inline comments.Sun, Mar 4, 2:42 AM

Not sure there was possibly a use case for a one-second textual notification. With this patch, the short duration is actually useful for very short messages.

apol added a comment.Mon, Mar 5, 12:41 AM

Makes sense to me. Maybe we want to have some kind of formula to turn length into time like we do in plasma notifications (AFAIR).

mart accepted this revision.Wed, Mar 7, 12:27 PM
This revision is now accepted and ready to land.Wed, Mar 7, 12:27 PM
ngraham updated this revision to Diff 28965.Wed, Mar 7, 5:36 PM

Rebase on master

ngraham closed this revision.Wed, Mar 7, 5:43 PM