shift-shell/tests
Micah Stanley eba6074161 notifications: Implement popup notifications
This merge request implements a more mobile optimized solution for popup notification.
- 

The current controls are:
- Swipe up to move the notification to the notification center.
- Swipe left/right to dismiss the notification entirely.
- If multiple popup notifications are grouped together, tap on the bottom area to view them in a expanded view.

What still needs to be done:
- ~~For notification without a default action, tapping on them should probably open up the associated app.~~ Note: I think I will add this in a separate merge request as it probably should be the case regardless if the notification is a popup
- ~~Swiping down on a notification currently does nothing. Maybe we should map this to a notification action?~~ Note: I have some ideas I will try later, though for now, I will leave this action blank
- ~~The expanded view of notifications should be able to be dismissed by swiping up/down on the top/bottom of the list.~~ Note: Added
- Investigate further into how to remove the current desktop popup notifications.
- ~~Code clean up.~~ Note: The code is at least a bit better

Single popup notification:

![notification_1](/uploads/63d12be6da1dd2676de17940dcadbdfa/notification_1.gif)

Multiple popup notifications:

![notification_2](/uploads/907a14b772f66f46040c28342f4dcf02/notification_2.gif)

Multiple popup notifications in the expanded view:

![notification_3](/uploads/9a7cd09a6bb8a0f7ee70e5bcf7c29c6b/notification_3.gif)

Any feedback would be greatly appreciated.
2024-11-07 16:13:06 +00:00
..
assets tests: Fix license 2022-06-06 21:29:28 -04:00
notificationtest notifications: Implement popup notifications 2024-11-07 16:13:06 +00:00
ActionDrawerTest.qml actiondrawer: Share components between portrait and landscape 2024-10-31 15:27:00 +00:00
CMakeLists.txt tests: Add plasma-mobile-notificationtest binary 2024-07-26 20:28:55 +00:00
LockScreenTest.qml Remove trailing whitespace 2024-07-26 23:47:44 -04:00
README.md Remove trailing whitespace 2024-07-26 23:47:44 -04:00

Tests

Run any of the example files in this folder with qmlscene to test different components.

Be sure to have the project installed on the system.

Power Menu

To test the power menu, the following command can be used to invoke ksmserver-logout-greeter with the mobile look and feel in a window:

~/kde/usr/lib/libexec/ksmserver-logout-greeter --windowed --lookandfeel org.kde.breeze.mobile