-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New design and logic of notifications #2863
Conversation
nice! Q: How it behaves when notification is spanning on multiple lines? Or is it forbidden? |
For now, only one line is supported. |
If it is longer it could possibly do animation ? (like moving/scrolling text banners in TV ?) |
I would leave this decision with Andrej :) |
Definitely, my worry is that on small screen devices (e.g. mine iPhone 2020 SE) usually even small sentences are too long. I am easy |
Notification is now responsible, max. 3 rows. |
Co-authored-by: Tomas Mizera <[email protected]>
NotificationModel - class for the logic of showing notification
MMNotificationView - view for a list of notification
MMNotification - notification
Create a notification (showing 10s) - Notification{ nextId(), "Message", 10, NotificationType::Information, NotificationType::Waiting }
Add new notification - add(const QString &message, uint interval, NotificationType::MessageType type, NotificationType::IconType icon)
Remove specific notification - remove(uint id)
Removing notifications is possible with a close button or will disappear automatically
In this PR, also refactored Input fields
Samples: