From a57561d6ec8cb1b14a1c7cfc3af24c9d601bb493 Mon Sep 17 00:00:00 2001 From: Daniel Kampert Date: Sat, 25 Nov 2023 23:56:54 +0100 Subject: [PATCH] Notifications app: - Add button to clear all notifications - Replace text area with label to prevent a focus on the body - Fix a bug where the last notification out of many can not be removed when the removal starts not at the bottom - Add "Now" string for notifications with an age of less than 1 minute instead of showing the seconds - Add notification for WhatsApp Notification manager: - Add notification remove channel for ZBUS Signed-off-by: Daniel Kampert --- .../notification/notification_app.c | 26 +- .../notification/project/assets/trash.png | Bin 0 -> 327 bytes .../notification/project/assets/youtube.png | Bin 0 -> 395 bytes .../notification/project/notification.sll | 2 +- .../notification/project/notification.spj | 228 ++++++------------ .../notification/ui_export/CMakeLists.txt | 2 + .../ui_export/images/ui_img_call_png.c | 48 ++-- .../ui_export/images/ui_img_gadget_png.c | 46 ++-- .../ui_export/images/ui_img_mail_png.c | 48 ++-- .../ui_export/images/ui_img_trash_png.c | 38 +++ .../ui_export/images/ui_img_whatsapp_png.c | 22 +- .../ui_export/images/ui_img_youtube_png.c | 40 +++ .../notification/ui_export/notification_ui.h | 14 +- .../ui_export/screens/notification_ui.c | 162 ++++++++----- app/src/ble/gadgetbridge/ble_gadgetbridge.c | 2 + app/src/events/zsw_notification_event.c | 12 + app/src/events/zsw_notification_event.h | 5 + app/src/main.c | 2 +- app/src/managers/zsw_notification_manager.c | 63 +++-- app/src/managers/zsw_notification_manager.h | 31 ++- 20 files changed, 453 insertions(+), 338 deletions(-) create mode 100644 app/src/applications/notification/project/assets/trash.png create mode 100644 app/src/applications/notification/project/assets/youtube.png create mode 100644 app/src/applications/notification/ui_export/images/ui_img_trash_png.c create mode 100644 app/src/applications/notification/ui_export/images/ui_img_youtube_png.c diff --git a/app/src/applications/notification/notification_app.c b/app/src/applications/notification/notification_app.c index 9400df3d..e3949540 100644 --- a/app/src/applications/notification/notification_app.c +++ b/app/src/applications/notification/notification_app.c @@ -4,16 +4,19 @@ #include #include "ui_export/notification_ui.h" -#include "managers/zsw_notification_manager.h" +#include "events/zsw_notification_event.h" #include "managers/zsw_app_manager.h" +#include "managers/zsw_notification_manager.h" LOG_MODULE_REGISTER(notification_app, CONFIG_NOTIFICATION_APP_LOG_LEVEL); static void notification_app_start(lv_obj_t *root, lv_group_t *group); static void notification_app_stop(void); static void notification_app_zbus_notification_callback(const struct zbus_channel *chan); +static void notification_app_zbus_notification_remove_callback(const struct zbus_channel *chan); ZBUS_LISTENER_DEFINE(notification_app_lis, notification_app_zbus_notification_callback); +ZBUS_LISTENER_DEFINE(notification_app_remove_lis, notification_app_zbus_notification_remove_callback); static lv_group_t *notification_group; @@ -26,7 +29,7 @@ static application_t app = { static void notification_app_zbus_notification_callback(const struct zbus_channel *chan) { - zsw_not_mngr_notification_t* not; + zsw_not_mngr_notification_t *not; LOG_DBG("New notification available"); @@ -34,9 +37,26 @@ static void notification_app_zbus_notification_callback(const struct zbus_channe notifications_ui_add_notification(not, notification_group); } +static void notification_app_zbus_notification_remove_callback(const struct zbus_channel *chan) +{ + int msg_len; + char buf[100]; + const struct zsw_notification_remove_event *evt = zbus_chan_const_msg(chan); + uint32_t id = evt->notification.id; + + LOG_DBG("Remove notification with ID %u", id); + notifications_ui_remove_notification(id); + + // TODO: We have to check the type of notification here to figure out the sender (BLE or other sources). + // TODO: Move this to BLE Gadgetbridge + //memset(buf, 0, sizeof(buf)); + //msg_len = snprintf(buf, sizeof(buf), "{\"t\":\"notify\", \"id\": %d, \"n\": %s} \n", id, "\"DISMISS\""); + //ble_comm_send(buf, msg_len); +} + static void on_notification_page_notification_close(uint32_t not_id) { - // TODO send to phone that the notification was read. + // Inform the noti zsw_notification_manager_remove(not_id); } diff --git a/app/src/applications/notification/project/assets/trash.png b/app/src/applications/notification/project/assets/trash.png new file mode 100644 index 0000000000000000000000000000000000000000..e8f4be7604d28f244d6b8fdfc91ff7485a6437f9 GIT binary patch literal 327 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmSQK*5Dp-y;YjHK@;M7UB8!3a z8xUr!)F|8wWJs2{MwA5SrERCL7C#W5tJ z_3boku0sI=uKq4g8$LFlE=bQ)n4p)vp)1 zPKAZ7ZQYXQa@IACf!*)9avJXL4p5wWKzGxr8|~Y2KNtHpw*Bzk9j0tNPpX>1eF1~m z{Chqn6D0qJ_bvXK-B#`V+(Gow#Z5cSPW)%#PdyOxQr&^ehiPYsO_bSXruzTfJO>!y zsEWJb*CCy+Qhaw?MBkajSN-J2?- zd=O^*xaf{EkRe&(8c`CQpH@mmtT}V`<;yx0|O(6r;B5V zMeowf_Fm480>?j|w+r4Aq0ylrr||EfmidOumoCK>@ko1D^G`VC-d*=W{Y4Zbx=~KBHtd2{G%~6hd z$oHD{M1fGkg!9rBN9u$ZXl*szUc?wJS#f)bCgZUgM{VbAkP%d0>ax`R&XGGUdRHVu zDh|Bz&vJ=zJMy`OE4*lp+_{ZynXTKNuF*_?_dsN?*sq8qiq8U{TS`1OP0vm~b^W{C mLyo^8vyR#GU#>s?Q`l3DW%=gg=QaZaj=|H_&t;ucLK6Ti2%gOV literal 0 HcmV?d00001 diff --git a/app/src/applications/notification/project/notification.sll b/app/src/applications/notification/project/notification.sll index 3348db6f..5511edf4 100644 --- a/app/src/applications/notification/project/notification.sll +++ b/app/src/applications/notification/project/notification.sll @@ -1 +1 @@ -{"name":"SquareLine_Project.spj","depth":2,"width":240,"height":240,"rotation":0,"offset_x":0,"offset_y":0,"shape":"CIRCLE","multilang":"DISABLE","description":"","board":"Arduino with TFT_eSPI","board_version":"v1.1.0","editor_version":"1.3.2","image":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCADwAPADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3aiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAorN13XbHw7pb39/IViU7VVRlnbsqjua85f41oHYR6AzJngtd4J/DYaAPWKK8m/4XZ/1L3/AJO//a6P+F2f9S9/5O//AGugD1mivJv+F2f9S9/5O/8A2uj/AIXZ/wBS9/5O/wD2ugD1mivJv+F2f9S9/wCTv/2uj/hdn/Uvf+Tv/wBroA9Zoryb/hdn/Uvf+Tv/ANro/wCF2f8AUvf+Tv8A9roA9Zoryb/hdn/Uvf8Ak7/9ro/4XZ/1L3/k7/8Aa6APWaK8m/4XZ/1L3/k7/wDa6P8Ahdn/AFL3/k7/APa6APWaK8m/4XZ/1L3/AJO//a6P+F2f9S9/5O//AGugD1mivJv+F2f9S9/5O/8A2uj/AIXZ/wBS9/5O/wD2ugD1mivJv+F2f9S9/wCTv/2uj/hdn/Uvf+Tv/wBroA9Zoryb/hdn/Uvf+Tv/ANro/wCF2f8AUvf+Tv8A9roA9Zoryb/hdn/Uvf8Ak7/9ro/4XZ/1L3/k7/8Aa6APWaK8nT41oXUSaAypnkrd5I/DYK9G0LXbHxFpaX9hIWiY7WVhhkburDsaANKiiigAooooA8n+NbsI9EjDHYxnYj1I2Y/mfzrySvWvjZ/zA/8At4/9p15LSEFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAV638FHYx63GWOxTAwHoTvz/ACH5V5JXrXwT/wCY5/27/wDtSgD1miiimMKKKKAPJvjZ/wAwP/t4/wDadeS1618bP+YH/wBvH/tOvJaQgooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACvWvgn/zHP+3f/wBqV5LXrXwT/wCY5/27/wDtSgD1miiimMKKKKAPJvjZ/wAwP/t4/wDadeS1618bP+YH/wBvH/tOvJaQj0Kz8P2Ez6RAdL0t4bm1hknlbUHW5+ZcuyxiTJPUgBDn0NZttpuix2NnO8Cs81lLKr3AmMRYXLIGkEXzD5BgY4zjNZ8PiyaA2kyaZp/220iSKG7KyGRNowrYL7Mj/dqo2vXUdtpqWck1pNYwvEJoZirOGkZ+2MfexjPagZ1N5ouk2C61cR6OLz7HHYFYhLMEQyxEuW6NjOOu0g46ciom0HR4Xaa4srhI2msGa3RmaSFZVkLxgdTnapGecEd652z8RXtlZX0cU9wt3dTxTG7WdldSgcHnqc7+ue3vUcetTpp19buZJJ7qeGc3DSHcrR7/AMSTv654xQI6618P6Rdz6P8A6DDMbqS9Dx2T3CiQRwhkC+aNwIbPqM+vQU7PSNN1OG2vH0r7DuN3GYBLIVl8u3Z1cbjuyrAA84PHuKwbPxFfQ6smoXk9xeypDLCpmnYsA8bJwTnpuzj2otPEN7Hqi317NcXzpBLCvnTEkB42TgnPA3Zx7UDNyXS9Gk8O6hcwW8Svb2MEkbN9oWYSM0YYvn92Qdz42npjg9RxlWpdTv5rKOzlvbmS1j5SB5WKL9FzgVVoEFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABXrXwT/wCY5/27/wDtSvJa9a+Cf/Mc/wC3f/2pQB6zRRRTGFFFFAHk3xs/5gf/AG8f+068lr1r42f8wP8A7eP/AGnXlESK8gVnCKerHtQld2QmMoq21kD5JgmEiSv5e4rtw3HX86V7KMRTsk7Ew43K0e3PIHHNbfV6mun4rtf56dieeJToq4NPkZrcKfllTeWIwFHfn2/rSLaRFHle42wB9itsyWP0zS+r1Owc8SpRV1dOLz7BMuxozIkmOCB6+lMktY/IeWCfzRGRvBTaRnv7im8PUSvb8V0DniVaKmgtzNFO4bHlJuxjOecU9LTMCyyPs8xgsa4yW55P0FQqU5apeY3JIrUVaWy3XU8JkwsO4swXJIBxwKJLRFSB0mLLMxUZTBGMdefeq9hUs3b8u9vzFzoq0VZS03X72u/G0uN2Ou0Ht+FItsn2Tz5JdmSVRQudxA/TrSVGb6d/w3/MOZFeirr2lukEcrXL4kXIxFkZ7jrVKlUpyp6S/NDUk9gooorMYUUUUAFFFFABRRRQAV618E/+Y5/27/8AtSvJa9a+Cf8AzHP+3f8A9qUAes0UUUxhRRRQB5N8bP8AmB/9vH/tOvJkVndUUZZjgAdzXrPxs/5gf/bx/wC068lo6iNKWCS20mNZ42U/aCcdCRtFNmvkNrJCklzJ5mB++bIUA54rPoroeJa0grK1v08iOTuasl2YYbeF9zW8luA6g89TyPeqsc1uYDbzCTYrlkdAMjPqPyqpRRLFTk/w+Xb9QUEjVtriOSdlWM+RFbuoUnlhgk5+tVXnt4reSO2EpMuAzSY4AOcDFVKKHiZONra6/jp+QKCuX9OlaCK7lTG5YxjIz/EKW5cTvHex/wCqXarRj/lnjt9PSs+ihYl+zVPovzve4cmty9LcWr3hnQXEZYsW2sAQexH65FFxerK1uoaV1iYsXlOWbJH+FUaKTxM2mu4ciNF7y0FxLcxJN5r7tqtjaCeM/r0psjWx0qFfMfzAzHaAOuB156VQopvEyd7pa/rbX8A5Ei9FNZpbSRO07BxnGwYVvUc1RoorKdRzSTWxSVgooorMYUUUUAFFFFABRRRQAV618E/+Y5/27/8AtSvJa9a+Cf8AzHP+3f8A9qUAes0UUUxhRRRQB5N8bP8AmB/9vH/tOvJa9a+Nn/MD/wC3j/2nXi15GZr+2jWWRPldm2Njjj+uKQi/RWN+7aZVtBeEliv2kOWXPuCcEVpWk7TwBnAEiko4H94HBoAnoq7p1nHdyP5zlI1AG4f3iQB/P9KdbaeJYLgyFllUlY1H8TAEsD+A/WgChRVjyF/s77Rk7/N2Y7YxmrK2ERm25kfFukojUgM7EDIHHvnoelAGdRWo+nQpPGGE6J5DTOjYDDBPHT2ptpZ29yC2y4Cb8eYXVVQe5PU/lQBm0VebTw8UcsEsew5VjJIq/MDzjOOMYP41bW3t7a2vYZWkOxY/N2kH58ngfy79DQBjUVr2VvCmoWc0LP5Mu8YfllIBz069RVV4LaS1lltjKGhxuEmPmBOMjHT6UAUqKKKACiiigAooooAKKvRW9qsdpLcNKEmLhyhHy4OAelS/YrZr+O2CTIGydxkDBlwSCMCgDMoqdYFNhJPk7lkVAO2CCf6Ut1AsBhCknfErnPqRQBXr1r4J/wDMc/7d/wD2pXktetfBP/mOf9u//tSgD1miiimMKKKKAPJvjZ/zA/8At4/9p14zewuWWeNWbCsjqp5Kn09xgV7P8a0Yx6JIFOxTOpPoTsx/I/lXklIRm291Fb2iW8CTzSIMBTGQc+5IwKt2cLQW4WQgyMS7kdMk5NT0UAWftCrp4gQMHaTe7dsAYA/U1ZuNTD3NtNEhXyzvcH+JyfmP0OKzaKANIXsENlJFHGkim4LrHKuflxweO/41VN4z3LTyRxOWGNjL8oHYDHTpVeigDRg1MLLI80EbKYTEiqCAvXjr05571Al8VTyzbwugYsiuCQmeuOenA65qrRQBcsruKAOs8ZdMiRAOzjpn29abDfSwiYFUkExBk8wZzzmqtFAFwajMlxFMiRp5IIjQD5Vz/wDrpkt60kJiWKKJWOX8tcbj78/oKrUUAFFFFABRRRQAUUUUAX5Z7J4raH9+0cYbc2ApyT25NKb9IDbfZAx8jcQ0oGTu9h2/xrPooAvf2m4jMYtrcRE5ZAhwx9Tzn8sVWuJ3uZTI4UcABVGAAOgFRUUAFetfBP8A5jn/AG7/APtSvJa9b+CiMI9bkKnYxgUH1I35/mPzoA9YooopjCiiigDN13QrHxFpb2F/GWiY7lZThkbsynsa85f4KIXYx6+ypngNaZI/HeK9YooA8m/4Un/1MP8A5Jf/AGyj/hSf/Uw/+SX/ANsr1migDyb/AIUn/wBTD/5Jf/bKP+FJ/wDUw/8Akl/9sr1migDyb/hSf/Uw/wDkl/8AbKP+FJ/9TD/5Jf8A2yvWaKAPJv8AhSf/AFMP/kl/9so/4Un/ANTD/wCSX/2yvWaKAPJv+FJ/9TD/AOSX/wBso/4Un/1MP/kl/wDbK9ZooA8m/wCFJ/8AUw/+SX/2yj/hSf8A1MP/AJJf/bK9ZooA8m/4Un/1MP8A5Jf/AGyj/hSf/Uw/+SX/ANsr1migDyb/AIUn/wBTD/5Jf/bKP+FJ/wDUw/8Akl/9sr1migDyb/hSf/Uw/wDkl/8AbKP+FJ/9TD/5Jf8A2yvWaKAPJv8AhSf/AFMP/kl/9so/4Un/ANTD/wCSX/2yvWaKAPJv+FJ/9TD/AOSX/wBso/4Un/1MP/kl/wDbK9ZooA8nT4KIHUya+zJnkLaYJ/Hea9G0LQrHw7paWFhGViU7mZjlnbuzHua0qKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD//Z","force_export_images":false,"flat_export":false,"pointfilter":false,"theme_simplified":false,"theme_dark":false,"theme_color1":5,"theme_color2":0,"exportFolderPath":"F:\\Git\\ZSWatch\\app\\src\\applications\\notification\\ui_export","projectExportFolderPath":"F:\\Git\\ZSWatch\\app\\src\\applications\\notification","backup_cnt":109,"autosave_cnt":0,"lvgl_version":"8.3.6","callfuncsexport":"C_FILE","lvgl_include_path":""} \ No newline at end of file +{"name":"SquareLine_Project.spj","depth":2,"width":240,"height":240,"rotation":0,"offset_x":0,"offset_y":0,"shape":"CIRCLE","multilang":"DISABLE","description":"","board":"Arduino with TFT_eSPI","board_version":"v1.1.0","editor_version":"1.3.2","image":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCADwAPADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3aiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigBk00VtA808iRRICzu7AKo9ST0rl3+JPhGN2RtYUkHB2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AOLoA+eaK+hv+FZ+EP8AoEf+TMv/AMXR/wAKz8If9Aj/AMmZf/i6APnmivob/hWfhD/oEf8AkzL/APF0f8Kz8If9Aj/yZl/+LoA+eaK+hv8AhWfhD/oEf+TMv/xdH/Cs/CH/AECP/JmX/wCLoA+eaK+hv+FZ+EP+gR/5My//ABdH/Cs/CH/QI/8AJmX/AOLoA+eaK+hv+FZ+EP8AoEf+TMv/AMXR/wAKz8If9Aj/AMmZf/i6APnmivob/hWfhD/oEf8AkzL/APF0f8Kz8If9Aj/yZl/+LoA+eaK+hv8AhWfhD/oEf+TMv/xdH/Cs/CH/AECP/JmX/wCLoA+eaK+hv+FZ+EP+gR/5My//ABdH/Cs/CH/QI/8AJmX/AOLoA+ea9j+DFhcQadql9IhWG5eNIiRjds3ZI9vmA/A10qfDbwjG6uujqSDkbp5WH5FsGuohhitoEhgjSKJAFREUBVHoAOlMY+iiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD/2Q==","force_export_images":false,"flat_export":false,"pointfilter":false,"theme_simplified":false,"theme_dark":false,"theme_color1":5,"theme_color2":0,"exportFolderPath":"F:\\Git\\ZSWatch\\app\\src\\applications\\notification\\ui_export","projectExportFolderPath":"F:\\Git\\ZSWatch\\app\\src\\applications\\notification","backup_cnt":158,"autosave_cnt":0,"lvgl_version":"8.3.6","callfuncsexport":"C_FILE","lvgl_include_path":""} \ No newline at end of file diff --git a/app/src/applications/notification/project/notification.spj b/app/src/applications/notification/project/notification.spj index 9c3c300b..ebf7d461 100644 --- a/app/src/applications/notification/project/notification.spj +++ b/app/src/applications/notification/project/notification.spj @@ -51,7 +51,7 @@ "strtype": "OBJECT/Position", "intarray": [ 15, - -40 + -30 ], "InheritedType": 7 }, @@ -356,7 +356,7 @@ "strtype": "OBJECT/Position", "intarray": [ 70, - -40 + -30 ], "InheritedType": 7 }, @@ -581,7 +581,7 @@ { "nid": 647266155, "strtype": "LABEL/Text", - "strval": "12m", + "strval": "Now", "InheritedType": 10 }, { @@ -661,7 +661,7 @@ "strtype": "OBJECT/Position", "intarray": [ -85, - -40 + -30 ], "InheritedType": 7 }, @@ -954,7 +954,7 @@ "strtype": "OBJECT/Position", "intarray": [ 0, - -10 + 0 ], "InheritedType": 7 }, @@ -1173,7 +1173,7 @@ { "nid": 926823397, "strtype": "LABEL/Long_mode", - "strval": "WRAP", + "strval": "DOT", "InheritedType": 3 }, { @@ -1226,18 +1226,18 @@ "saved_objtypeKey": "LABEL" }, { - "guid": "GUID75604764-700907S532326", - "deepid": 177087071, + "guid": "GUID7252926-315478S222329", + "deepid": -326779936, "locked": false, "properties": [ { - "nid": 593243290, + "nid": 619656111, "strtype": "OBJECT/Name", - "strval": "TextAreaBody", + "strval": "LabelBody", "InheritedType": 10 }, { - "nid": -1276665139, + "nid": -750254138, "strtype": "OBJECT/Layout", "InheritedType": 1 }, @@ -1249,18 +1249,18 @@ "CrossAlignment": 0, "TrackAlignment": 0, "LayoutType": 0, - "nid": -1839152265, + "nid": -134698281, "strtype": "OBJECT/Layout_type", "strval": "No_layout", "InheritedType": 13 }, { - "nid": -778378820, + "nid": 2087952695, "strtype": "OBJECT/Transform", "InheritedType": 1 }, { - "nid": 2139874823, + "nid": 1262995831, "flags": 17, "strtype": "OBJECT/Position", "intarray": [ @@ -1270,232 +1270,240 @@ "InheritedType": 7 }, { - "nid": -1217816940, + "nid": 2004026712, "flags": 17, "strtype": "OBJECT/Size", "intarray": [ 180, - 35 + 15 ], "InheritedType": 7 }, { - "nid": 323999867, + "nid": 2141368007, "strtype": "OBJECT/Align", "strval": "CENTER", "InheritedType": 3 }, { - "nid": 1622081848, + "nid": -1538037089, + "flags": 1048576, "strtype": "OBJECT/Flags", "InheritedType": 1 }, { - "nid": 643874225, + "nid": -1359689803, "strtype": "OBJECT/Hidden", "strval": "False", "InheritedType": 2 }, { - "nid": -2061537103, + "nid": -280613605, "strtype": "OBJECT/Clickable", "strval": "False", "InheritedType": 2 }, { - "nid": 610413318, + "nid": 1399749492, "strtype": "OBJECT/Checkable", "strval": "False", "InheritedType": 2 }, { - "nid": 279108145, + "nid": 1531456052, "strtype": "OBJECT/Press_lock", - "strval": "False", + "strval": "True", "InheritedType": 2 }, { - "nid": 851657709, + "nid": -355936684, "strtype": "OBJECT/Click_focusable", - "strval": "False", + "strval": "True", "InheritedType": 2 }, { - "nid": -970684365, + "nid": 1827809535, "strtype": "OBJECT/Adv_hittest", "strval": "False", "InheritedType": 2 }, { - "nid": -1825960635, + "nid": 348548824, "strtype": "OBJECT/Ignore_layout", "strval": "False", "InheritedType": 2 }, { - "nid": -968879399, + "nid": 655413258, "strtype": "OBJECT/Floating", "strval": "False", "InheritedType": 2 }, { - "nid": -230743211, + "nid": 1488646013, "strtype": "OBJECT/Overflow_visible", "strval": "False", "InheritedType": 2 }, { - "nid": 1921388432, + "nid": -507837335, "strtype": "OBJECT/Flex_in_new_track", "strval": "False", "InheritedType": 2 }, { - "nid": 2066014032, + "nid": 1369557221, "strtype": "OBJECT/Event_bubble", "strval": "False", "InheritedType": 2 }, { - "nid": -1865209277, + "nid": -776791766, "strtype": "OBJECT/Gesture_bubble", - "strval": "False", + "strval": "True", "InheritedType": 2 }, { - "nid": -941904100, + "nid": 1675747650, "strtype": "OBJECT/Snappable", - "strval": "False", + "strval": "True", "InheritedType": 2 }, { - "nid": 137104911, + "nid": 518567873, "strtype": "OBJECT/Scrollable", "strval": "True", "InheritedType": 2 }, { - "nid": -1997141534, + "nid": 153113336, "strtype": "OBJECT/Scroll_elastic", "strval": "True", "InheritedType": 2 }, { - "nid": -1450493026, + "nid": -639296571, "strtype": "OBJECT/Scroll_momentum", "strval": "True", "InheritedType": 2 }, { - "nid": -1589057987, + "nid": -406059701, "strtype": "OBJECT/Scroll_on_focus", "strval": "False", "InheritedType": 2 }, { - "nid": -1309558821, + "nid": -410411789, "strtype": "OBJECT/Scroll_chain", "strval": "True", "InheritedType": 2 }, { - "nid": 2116026652, + "nid": 82164431, "strtype": "OBJECT/Scroll_with_arrow", "strval": "False", "InheritedType": 2 }, { - "nid": 142767369, + "nid": -2044415002, "strtype": "OBJECT/Scroll_one", "strval": "False", "InheritedType": 2 }, { - "nid": 894065273, + "nid": 1574992685, "strtype": "OBJECT/Scrollbar_mode", "strval": "AUTO", "InheritedType": 3 }, { - "nid": -2130783327, + "nid": -981764255, "strtype": "OBJECT/Scroll_direction", "strval": "ALL", "InheritedType": 3 }, { - "nid": 926328644, + "nid": 2011519539, + "flags": 1048576, "strtype": "OBJECT/States", "InheritedType": 1 }, { - "nid": -1213535899, + "nid": 98664432, "strtype": "OBJECT/Checked", "strval": "False", "InheritedType": 2 }, { - "nid": 1327631228, + "nid": 1115420990, "strtype": "OBJECT/Disabled", "strval": "False", "InheritedType": 2 }, { - "nid": -183389607, + "nid": -721185333, "strtype": "OBJECT/Focused", "strval": "False", "InheritedType": 2 }, { - "nid": 896853900, + "nid": -1874768244, "strtype": "OBJECT/Pressed", "strval": "False", "InheritedType": 2 }, { - "nid": -1536547660, + "nid": 2084280059, "strtype": "OBJECT/User_1", "strval": "False", "InheritedType": 2 }, { - "nid": 1602380740, + "nid": 438214425, "strtype": "OBJECT/User_2", "strval": "False", "InheritedType": 2 }, { - "nid": -202350885, + "nid": 1469130436, "strtype": "OBJECT/User_3", "strval": "False", "InheritedType": 2 }, { - "nid": -519231879, + "nid": -120048251, "strtype": "OBJECT/User_4", "strval": "False", "InheritedType": 2 }, { - "nid": -2089246559, - "strtype": "TEXTAREA/Label", + "nid": 1582602637, + "strtype": "LABEL/Label", "InheritedType": 1 }, { - "nid": 503235043, - "strtype": "TEXTAREA/Text", - "strval": "Blablabla", + "nid": -109502882, + "strtype": "LABEL/Long_mode", + "strval": "WRAP", + "InheritedType": 3 + }, + { + "nid": 1743433956, + "strtype": "LABEL/Text", + "strval": "Text", "InheritedType": 10 }, { "part": "lv.PART.MAIN", "childs": [ { - "nid": 1809158566, + "nid": -333199442, "strtype": "_style/StyleState", "strval": "DEFAULT", "childs": [ { - "nid": -1404276804, + "nid": 1740256228, "strtype": "_style/Text_Color", "intarray": [ 255, @@ -1506,109 +1514,28 @@ "InheritedType": 7 }, { - "nid": 1104710314, + "nid": 1722028762, "strtype": "_style/Text_Font", - "strval": "montserrat_12", + "strval": "montserrat_14", "InheritedType": 3 - }, - { - "nid": -1143025981, - "strtype": "_style/Bg_Color", - "intarray": [ - 68, - 68, - 68, - 255 - ], - "InheritedType": 7 - }, - { - "nid": -655320996, - "strtype": "_style/Border_Color", - "intarray": [ - 68, - 68, - 68, - 255 - ], - "InheritedType": 7 - }, - { - "nid": 1374767152, - "strtype": "_style/Padding", - "intarray": [ - 0, - 0, - 0, - 0 - ], - "InheritedType": 7 } ], "InheritedType": 1 } ], - "nid": 1616663665, - "strtype": "TEXTAREA/Style_main", + "nid": 1379285591, + "strtype": "LABEL/Style_main", "strval": "lv.PART.MAIN, Text, Rectangle, Pad", "InheritedType": 11 }, { - "part": "lv.PART.SELECTED", - "childs": [], - "nid": 703347368, - "strtype": "TEXTAREA/Style_selected", - "strval": "lv.PART.SELECTED, Text, Rectangle", - "InheritedType": 11 - }, - { - "part": "lv.PART.CURSOR", - "childs": [], - "nid": -1298458551, - "strtype": "TEXTAREA/Style_cursor", - "strval": "lv.PART.CURSOR, Text, Rectangle", - "InheritedType": 11 - }, - { - "part": "lv.PART_TEXTAREA.PLACEHOLDER", - "childs": [], - "nid": 268818614, - "strtype": "TEXTAREA/Style_placeholder", - "strval": "lv.PART_TEXTAREA.PLACEHOLDER, Text", - "InheritedType": 11 - }, - { - "nid": 1869133145, - "strtype": "TEXTAREA/Placeholder", - "strval": "", - "InheritedType": 10 - }, - { - "nid": -1963685737, - "strtype": "TEXTAREA/One_line_mode", - "strval": "False", - "InheritedType": 2 - }, - { - "nid": 1619112706, - "strtype": "TEXTAREA/Password_mode", + "nid": 385001366, + "strtype": "LABEL/Recolor", "strval": "False", "InheritedType": 2 - }, - { - "nid": 602253058, - "strtype": "TEXTAREA/Accepted_characters", - "strval": "", - "InheritedType": 10 - }, - { - "nid": 1526908869, - "strtype": "TEXTAREA/Max_text_length", - "integer": 98989898, - "InheritedType": 6 } ], - "saved_objtypeKey": "TEXTAREA" + "saved_objtypeKey": "LABEL" } ], "locked": false, @@ -1658,7 +1585,7 @@ "strtype": "OBJECT/Size", "intarray": [ 200, - 120 + 100 ], "InheritedType": 7 }, @@ -1670,7 +1597,6 @@ }, { "nid": 544113739, - "flags": 1048576, "strtype": "OBJECT/Flags", "InheritedType": 1 }, @@ -2181,7 +2107,7 @@ "theme_color2": 0, "exportFolderPath": "F:\\Git\\ZSWatch\\app\\src\\applications\\notification\\ui_export", "projectExportFolderPath": "F:\\Git\\ZSWatch\\app\\src\\applications\\notification", - "backup_cnt": 108, + "backup_cnt": 157, "autosave_cnt": 0, "lvgl_version": "8.3.6", "callfuncsexport": "C_FILE", diff --git a/app/src/applications/notification/ui_export/CMakeLists.txt b/app/src/applications/notification/ui_export/CMakeLists.txt index 79858905..c250dcf9 100644 --- a/app/src/applications/notification/ui_export/CMakeLists.txt +++ b/app/src/applications/notification/ui_export/CMakeLists.txt @@ -1,8 +1,10 @@ SET(SOURCES screens/notification_ui.c + images/ui_img_trash_png.c images/ui_img_call_png.c images/ui_img_mail_png.c images/ui_img_gadget_png.c + images/ui_img_youtube_png.c images/ui_img_whatsapp_png.c) target_sources(app PRIVATE ${SOURCES}) \ No newline at end of file diff --git a/app/src/applications/notification/ui_export/images/ui_img_call_png.c b/app/src/applications/notification/ui_export/images/ui_img_call_png.c index a584ee62..53137999 100644 --- a/app/src/applications/notification/ui_export/images/ui_img_call_png.c +++ b/app/src/applications/notification/ui_export/images/ui_img_call_png.c @@ -11,30 +11,30 @@ // IMAGE DATA: assets\call.png const LV_ATTRIBUTE_MEM_ALIGN uint8_t ui_img_call_png_data[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0xc0, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf2, 0x00, 0x00, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59, 0x00, 0x00, 0x96, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xdc, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x8d, 0x00, 0x00, 0xe4, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0xef, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x4d, 0x00, 0x00, 0x94, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0xe9, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x41, 0x00, 0x00, 0xd6, 0x00, 0x00, 0x9e, 0x00, 0x00, 0x02, 0x00, 0x00, 0x58, 0x00, 0x00, 0xd7, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xc3, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xbd, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb6, 0x00, 0x00, 0x65, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0xe9, 0x00, 0x00, 0x24, 0x00, 0x00, 0x47, 0x00, 0x00, 0xc5, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x71, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x83, 0x00, 0x00, 0x89, 0x00, 0x00, 0x07, 0x00, 0x00, 0xf4, 0x00, 0x00, 0x08, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0xb7, 0x00, 0x00, 0x00, 0x00, 0x00, 0xde, 0x00, 0x00, 0x21, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0xee, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf9, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5e, 0x00, 0x00, 0x0b, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xe6, 0x00, 0x00, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0xbf, 0x00, 0x00, 0xe3, 0x00, 0x00, 0x62, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0xdc, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf3, 0x00, 0x00, 0x83, 0x00, 0x00, 0xda, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xfb, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0xe1, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0xa6, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xcc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x00, 0xb0, 0x00, 0x00, 0xfd, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xd6, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0xc0, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf2, 0x00, 0x00, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59, 0x00, 0x00, 0x96, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xdc, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x8d, 0x00, 0x00, 0xe4, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0xef, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x4d, 0x00, 0x00, 0x94, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0xe9, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x41, 0x00, 0x00, 0xd6, 0x00, 0x00, 0x9e, 0x00, 0x00, 0x02, 0x00, 0x00, 0x58, 0x00, 0x00, 0xd7, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xc3, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xbd, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb6, 0x00, 0x00, 0x65, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0xe9, 0x00, 0x00, 0x24, 0x00, 0x00, 0x47, 0x00, 0x00, 0xc5, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x71, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x83, 0x00, 0x00, 0x89, 0x00, 0x00, 0x07, 0x00, 0x00, 0xf4, 0x00, 0x00, 0x08, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0xb7, 0x00, 0x00, 0x00, 0x00, 0x00, 0xde, 0x00, 0x00, 0x21, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0xee, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf9, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5e, 0x00, 0x00, 0x0b, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xe6, 0x00, 0x00, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0xbf, 0x00, 0x00, 0xe3, 0x00, 0x00, 0x62, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0xdc, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf3, 0x00, 0x00, 0x83, 0x00, 0x00, 0xda, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xfb, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0xe1, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0xa6, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xcc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x00, 0xb0, 0x00, 0x00, 0xfd, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xd6, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; const lv_img_dsc_t ui_img_call_png = { - .header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA, - .header.always_zero = 0, - .header.reserved = 0, - .header.w = 16, - .header.h = 16, - .data_size = 256 * LV_IMG_PX_SIZE_ALPHA_BYTE, - .data = ui_img_call_png_data, -}; + .header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA, + .header.always_zero = 0, + .header.reserved = 0, + .header.w = 16, + .header.h = 16, + .data_size = sizeof(ui_img_call_png_data), + .data = ui_img_call_png_data, +}; \ No newline at end of file diff --git a/app/src/applications/notification/ui_export/images/ui_img_gadget_png.c b/app/src/applications/notification/ui_export/images/ui_img_gadget_png.c index 39b9a269..1f2ec5c0 100644 --- a/app/src/applications/notification/ui_export/images/ui_img_gadget_png.c +++ b/app/src/applications/notification/ui_export/images/ui_img_gadget_png.c @@ -11,30 +11,30 @@ // IMAGE DATA: assets\gadget.png const LV_ATTRIBUTE_MEM_ALIGN uint8_t ui_img_gadget_png_data[] = { - 0x00, 0x00, 0x0b, 0x00, 0x00, 0x68, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x60, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x65, 0x00, 0x00, 0x25, 0x00, 0x00, 0x11, 0x00, 0x00, 0x11, 0x00, 0x00, 0x11, 0x00, 0x00, 0x30, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x50, 0x00, 0x00, 0x99, 0x00, 0x00, 0x98, 0x00, 0x00, 0x64, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x71, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x71, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x71, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x4e, 0x00, 0x00, 0x5a, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x89, 0x00, 0x00, 0x2b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x71, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x52, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x99, 0x00, 0x00, 0x76, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x71, 0x00, 0x00, 0x8d, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0xb1, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x68, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9d, 0x00, 0x00, 0x87, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x10, 0x00, 0x00, 0x79, 0x00, 0x00, 0x88, 0x00, 0x00, 0xbc, 0x00, 0x00, 0x8f, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0xb1, 0x00, 0x00, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x66, 0x00, 0x00, 0x66, 0x00, 0x00, 0x66, 0x00, 0x00, 0x9b, 0x00, 0x00, 0x9d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x71, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x77, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x3d, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa3, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0xb1, 0x00, 0x00, 0x9a, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x8d, 0x00, 0x00, 0x71, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x94, 0x00, 0x00, 0x95, 0x00, 0x00, 0x77, 0x00, 0x00, 0x94, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x71, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x00, 0x00, 0x3b, 0x00, 0x00, 0x26, 0x00, 0x00, 0x65, 0x00, 0x00, 0xaa, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x90, 0x00, 0x00, 0x6e, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x66, 0x00, 0x00, 0x66, 0x00, 0x00, 0x78, 0x00, 0x00, 0xa5, 0x00, 0x00, 0x77, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x1a, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x82, 0x00, 0x00, 0x11, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4d, 0x00, 0x00, 0x76, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x0b, 0x00, 0x00, 0x68, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x60, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x65, 0x00, 0x00, 0x25, 0x00, 0x00, 0x11, 0x00, 0x00, 0x11, 0x00, 0x00, 0x11, 0x00, 0x00, 0x30, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x50, 0x00, 0x00, 0x99, 0x00, 0x00, 0x98, 0x00, 0x00, 0x64, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x71, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x71, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x71, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x4e, 0x00, 0x00, 0x5a, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x89, 0x00, 0x00, 0x2b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x71, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x52, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x99, 0x00, 0x00, 0x76, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x71, 0x00, 0x00, 0x8d, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0xb1, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x68, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9d, 0x00, 0x00, 0x87, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x10, 0x00, 0x00, 0x79, 0x00, 0x00, 0x88, 0x00, 0x00, 0xbc, 0x00, 0x00, 0x8f, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0xb1, 0x00, 0x00, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x66, 0x00, 0x00, 0x66, 0x00, 0x00, 0x66, 0x00, 0x00, 0x9b, 0x00, 0x00, 0x9d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x71, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x77, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x3d, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa3, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0xb1, 0x00, 0x00, 0x9a, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x8d, 0x00, 0x00, 0x71, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x94, 0x00, 0x00, 0x95, 0x00, 0x00, 0x77, 0x00, 0x00, 0x94, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x71, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x00, 0x00, 0x3b, 0x00, 0x00, 0x26, 0x00, 0x00, 0x65, 0x00, 0x00, 0xaa, 0x00, 0x00, 0x88, 0x00, 0x00, 0x88, 0x00, 0x00, 0x90, 0x00, 0x00, 0x6e, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x66, 0x00, 0x00, 0x66, 0x00, 0x00, 0x78, 0x00, 0x00, 0xa5, 0x00, 0x00, 0x77, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x1a, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x82, 0x00, 0x00, 0x11, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4d, 0x00, 0x00, 0x76, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, }; const lv_img_dsc_t ui_img_gadget_png = { - .header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA, - .header.always_zero = 0, - .header.reserved = 0, - .header.w = 16, - .header.h = 16, - .data_size = 256 * LV_IMG_PX_SIZE_ALPHA_BYTE, - .data = ui_img_gadget_png_data, + .header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA, + .header.always_zero = 0, + .header.reserved = 0, + .header.w = 16, + .header.h = 16, + .data_size = sizeof(ui_img_gadget_png_data), + .data = ui_img_gadget_png_data, }; \ No newline at end of file diff --git a/app/src/applications/notification/ui_export/images/ui_img_mail_png.c b/app/src/applications/notification/ui_export/images/ui_img_mail_png.c index 68dfb922..9a8a957a 100644 --- a/app/src/applications/notification/ui_export/images/ui_img_mail_png.c +++ b/app/src/applications/notification/ui_export/images/ui_img_mail_png.c @@ -11,30 +11,30 @@ // IMAGE DATA: assets\gadget.png const LV_ATTRIBUTE_MEM_ALIGN uint8_t ui_img_mail_png_data[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x05, 0x00, 0x00, 0x90, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x90, 0x00, 0x00, 0x05, - 0x00, 0x00, 0x69, 0x00, 0x00, 0x41, 0x00, 0x00, 0xf5, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf5, 0x00, 0x00, 0x41, 0x00, 0x00, 0x69, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x40, 0x00, 0x00, 0xf5, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf5, 0x00, 0x00, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7b, 0x00, 0x00, 0x3f, 0x00, 0x00, 0xf4, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf4, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x7b, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7d, 0x00, 0x00, 0x3e, 0x00, 0x00, 0xf4, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf4, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x7d, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x3d, 0x00, 0x00, 0xf3, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf3, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x7f, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x3c, 0x00, 0x00, 0xe1, 0x00, 0x00, 0xe1, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x7f, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7d, 0x00, 0x00, 0x3d, 0x00, 0x00, 0xf3, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x2f, 0x00, 0x00, 0x2f, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xf3, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x7d, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7b, 0x00, 0x00, 0x3e, 0x00, 0x00, 0xf4, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf4, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x7b, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x3f, 0x00, 0x00, 0xf4, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf4, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x7a, 0x00, 0x00, 0xff, - 0x00, 0x00, 0x69, 0x00, 0x00, 0x41, 0x00, 0x00, 0xf5, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf5, 0x00, 0x00, 0x41, 0x00, 0x00, 0x69, - 0x00, 0x00, 0x05, 0x00, 0x00, 0x90, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x90, 0x00, 0x00, 0x05, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x05, 0x00, 0x00, 0x90, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x90, 0x00, 0x00, 0x05, + 0x00, 0x00, 0x69, 0x00, 0x00, 0x41, 0x00, 0x00, 0xf5, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf5, 0x00, 0x00, 0x41, 0x00, 0x00, 0x69, + 0x00, 0x00, 0xff, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x40, 0x00, 0x00, 0xf5, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf5, 0x00, 0x00, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0xff, + 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7b, 0x00, 0x00, 0x3f, 0x00, 0x00, 0xf4, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf4, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x7b, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, + 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7d, 0x00, 0x00, 0x3e, 0x00, 0x00, 0xf4, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf4, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x7d, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, + 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x3d, 0x00, 0x00, 0xf3, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf3, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x7f, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, + 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x3c, 0x00, 0x00, 0xe1, 0x00, 0x00, 0xe1, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x7f, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, + 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7d, 0x00, 0x00, 0x3d, 0x00, 0x00, 0xf3, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x2f, 0x00, 0x00, 0x2f, 0x00, 0x00, 0xa0, 0x00, 0x00, 0xf3, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x7d, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, + 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x7b, 0x00, 0x00, 0x3e, 0x00, 0x00, 0xf4, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf4, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x7b, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, + 0x00, 0x00, 0xff, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x3f, 0x00, 0x00, 0xf4, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf4, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x7a, 0x00, 0x00, 0xff, + 0x00, 0x00, 0x69, 0x00, 0x00, 0x41, 0x00, 0x00, 0xf5, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf5, 0x00, 0x00, 0x41, 0x00, 0x00, 0x69, + 0x00, 0x00, 0x05, 0x00, 0x00, 0x90, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x90, 0x00, 0x00, 0x05, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; const lv_img_dsc_t ui_img_mail_png = { - .header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA, - .header.always_zero = 0, - .header.reserved = 0, - .header.w = 16, - .header.h = 16, - .data_size = 256 * LV_IMG_PX_SIZE_ALPHA_BYTE, - .data = ui_img_mail_png_data, -}; + .header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA, + .header.always_zero = 0, + .header.reserved = 0, + .header.w = 16, + .header.h = 16, + .data_size = sizeof(ui_img_mail_png_data), + .data = ui_img_mail_png_data, +}; \ No newline at end of file diff --git a/app/src/applications/notification/ui_export/images/ui_img_trash_png.c b/app/src/applications/notification/ui_export/images/ui_img_trash_png.c new file mode 100644 index 00000000..8b089c75 --- /dev/null +++ b/app/src/applications/notification/ui_export/images/ui_img_trash_png.c @@ -0,0 +1,38 @@ +// This file was generated by SquareLine Studio +// SquareLine Studio version: SquareLine Studio 1.3.2 +// LVGL version: 8.3.6 +// Project name: button + +#include "../notification_ui.h" + +#ifndef LV_ATTRIBUTE_MEM_ALIGN +#define LV_ATTRIBUTE_MEM_ALIGN +#endif + +// IMAGE DATA: assets\trash.png +const LV_ATTRIBUTE_MEM_ALIGN uint8_t ui_img_trash_png_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2C, 0x00, 0x00, 0x97, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x97, 0x00, 0x00, 0x2B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0xEA, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xEA, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x65, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x77, 0x00, 0x00, 0x65, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0xEE, 0x00, 0x00, 0xEE, 0x00, 0x00, 0xEE, 0x00, 0x00, 0xEE, 0x00, 0x00, 0xEE, 0x00, 0x00, 0x10, 0x00, 0x00, 0x7B, 0x00, 0x00, 0xF5, 0x00, 0x00, 0xF5, 0x00, 0x00, 0xF5, 0x00, 0x00, 0xF5, 0x00, 0x00, 0xF5, 0x00, 0x00, 0xF5, 0x00, 0x00, 0x7B, 0x00, 0x00, 0x10, 0x00, 0x00, 0xEE, 0x00, 0x00, 0xEE, 0x00, 0x00, 0xEE, 0x00, 0x00, 0xEE, 0x00, 0x00, 0xEE, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x11, 0x00, 0x00, 0x81, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x00, 0x00, 0x11, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x85, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x4D, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x4D, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x99, 0x00, 0x00, 0x85, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; +const lv_img_dsc_t ui_img_trash_png = { + .header.always_zero = 0, + .header.w = 32, + .header.h = 32, + .data_size = sizeof(ui_img_trash_png_data), + .header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA, + .data = ui_img_trash_png_data +}; \ No newline at end of file diff --git a/app/src/applications/notification/ui_export/images/ui_img_whatsapp_png.c b/app/src/applications/notification/ui_export/images/ui_img_whatsapp_png.c index 7f2aa5ff..359833dd 100644 --- a/app/src/applications/notification/ui_export/images/ui_img_whatsapp_png.c +++ b/app/src/applications/notification/ui_export/images/ui_img_whatsapp_png.c @@ -11,16 +11,16 @@ // IMAGE DATA: assets\whatsapp.png const LV_ATTRIBUTE_MEM_ALIGN uint8_t ui_img_whatsapp_png_data[] = { -0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x53,0x00,0x00,0x73,0x00,0x00,0x76,0x00,0x00,0x58,0x00,0x00,0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x00,0x00,0x92,0x00,0x00,0xF8,0x00,0x00,0xF2,0x00,0x00,0xCC,0x00,0x00,0xC8,0x00,0x00,0xEE,0x00,0x00,0xFC,0x00,0x00,0x9F,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0xDA,0x00,0x00,0xD8,0x00,0x00,0x52,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x47,0x00,0x00,0xCD,0x00,0x00,0xE4,0x00,0x00,0x2E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0D,0x00,0x00,0xD6,0x00,0x00,0xBB,0x00,0x00,0x0D,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0xA9,0x00,0x00,0xE3,0x00,0x00,0x17,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x84,0x00,0x00,0xE0,0x00,0x00,0x0F,0x00,0x00,0x0E,0x00,0x00,0x77,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0xD0,0x00,0x00,0x9B,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0xEE,0x00,0x00,0x64,0x00,0x00,0x00,0x00,0x00,0x8F,0x00,0x00,0xFF,0x00,0x00,0x79,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4C,0x00,0x00,0xFA,0x00,0x00,0x10,0x00,0x00,0x3A,0x00,0x00,0xFD,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x00,0xAF,0x00,0x00,0xFF,0x00,0x00,0xAE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0xF1,0x00,0x00,0x51,0x00,0x00,0x58,0x00,0x00,0xE9,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5F,0x00,0x00,0xFF,0x00,0x00,0x53,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD0,0x00,0x00,0x70, - 0x00,0x00,0x50,0x00,0x00,0xF2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0xB6,0x00,0x00,0xDF,0x00,0x00,0x1B,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x0A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD5,0x00,0x00,0x6B,0x00,0x00,0x2D,0x00,0x00,0xFF,0x00,0x00,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0xCA,0x00,0x00,0xEA,0x00,0x00,0x63,0x00,0x00,0xAE,0x00,0x00,0xEB,0x00,0x00,0x6C,0x00,0x00,0x00,0x00,0x00,0x0B,0x00,0x00,0xF7,0x00,0x00,0x48,0x00,0x00,0x02,0x00,0x00,0xDB,0x00,0x00,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x00,0x00,0x93,0x00,0x00,0xFC,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0xA3,0x00,0x00,0x00,0x00,0x00,0x5F,0x00,0x00,0xF3,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0xDC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x00,0x00,0x6B,0x00,0x00,0x65,0x00,0x00,0x0A,0x00,0x00,0x13,0x00,0x00,0xE1,0x00,0x00,0x84,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0xA0,0x00,0x00,0xAB,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x15,0x00,0x00,0xC6,0x00,0x00,0xCF,0x00,0x00,0x0B,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0xE5,0x00,0x00,0xA5,0x00,0x00,0x93,0x00,0x00,0xCB,0x00,0x00,0x7F,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x19,0x00,0x00,0x6F,0x00,0x00,0xE8,0x00,0x00,0xCC,0x00,0x00,0x1A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2C,0x00,0x00,0xFF,0x00,0x00,0xF4,0x00,0x00,0xB7,0x00,0x00,0x8A,0x00,0x00,0xD9,0x00,0x00,0xFF,0x00,0x00,0xF6,0x00,0x00,0xF0,0x00,0x00,0xFF,0x00,0x00,0xE6,0x00,0x00,0x77,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x3E,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x29,0x00,0x00,0x4C,0x00,0x00,0x4F,0x00,0x00,0x30,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - }; + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x53, 0x00, 0x00, 0x73, 0x00, 0x00, 0x76, 0x00, 0x00, 0x58, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x92, 0x00, 0x00, 0xF8, 0x00, 0x00, 0xF2, 0x00, 0x00, 0xCC, 0x00, 0x00, 0xC8, 0x00, 0x00, 0xEE, 0x00, 0x00, 0xFC, 0x00, 0x00, 0x9F, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0xDA, 0x00, 0x00, 0xD8, 0x00, 0x00, 0x52, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x47, 0x00, 0x00, 0xCD, 0x00, 0x00, 0xE4, 0x00, 0x00, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x00, 0xD6, 0x00, 0x00, 0xBB, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xA9, 0x00, 0x00, 0xE3, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0xE0, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x77, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xD0, 0x00, 0x00, 0x9B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0xEE, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8F, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4C, 0x00, 0x00, 0xFA, 0x00, 0x00, 0x10, 0x00, 0x00, 0x3A, 0x00, 0x00, 0xFD, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0xAF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xAE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0xF1, 0x00, 0x00, 0x51, 0x00, 0x00, 0x58, 0x00, 0x00, 0xE9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5F, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x53, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD0, 0x00, 0x00, 0x70, + 0x00, 0x00, 0x50, 0x00, 0x00, 0xF2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0xB6, 0x00, 0x00, 0xDF, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD5, 0x00, 0x00, 0x6B, 0x00, 0x00, 0x2D, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0xCA, 0x00, 0x00, 0xEA, 0x00, 0x00, 0x63, 0x00, 0x00, 0xAE, 0x00, 0x00, 0xEB, 0x00, 0x00, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x00, 0x00, 0xF7, 0x00, 0x00, 0x48, 0x00, 0x00, 0x02, 0x00, 0x00, 0xDB, 0x00, 0x00, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x93, 0x00, 0x00, 0xFC, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xA3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5F, 0x00, 0x00, 0xF3, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x00, 0x00, 0xDC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x6B, 0x00, 0x00, 0x65, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x13, 0x00, 0x00, 0xE1, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0x00, 0x00, 0xAB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0xC6, 0x00, 0x00, 0xCF, 0x00, 0x00, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0xE5, 0x00, 0x00, 0xA5, 0x00, 0x00, 0x93, 0x00, 0x00, 0xCB, 0x00, 0x00, 0x7F, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x6F, 0x00, 0x00, 0xE8, 0x00, 0x00, 0xCC, 0x00, 0x00, 0x1A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2C, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xF4, 0x00, 0x00, 0xB7, 0x00, 0x00, 0x8A, 0x00, 0x00, 0xD9, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xF6, 0x00, 0x00, 0xF0, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xE6, 0x00, 0x00, 0x77, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x29, 0x00, 0x00, 0x4C, 0x00, 0x00, 0x4F, 0x00, 0x00, 0x30, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; const lv_img_dsc_t ui_img_whatsapp_png = { - .header.always_zero = 0, - .header.w = 16, - .header.h = 16, - .data_size = sizeof(ui_img_whatsapp_png_data), - .header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA, - .data = ui_img_whatsapp_png_data + .header.always_zero = 0, + .header.w = 16, + .header.h = 16, + .data_size = sizeof(ui_img_whatsapp_png_data), + .header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA, + .data = ui_img_whatsapp_png_data }; \ No newline at end of file diff --git a/app/src/applications/notification/ui_export/images/ui_img_youtube_png.c b/app/src/applications/notification/ui_export/images/ui_img_youtube_png.c new file mode 100644 index 00000000..19a54ce5 --- /dev/null +++ b/app/src/applications/notification/ui_export/images/ui_img_youtube_png.c @@ -0,0 +1,40 @@ +// This file was generated by SquareLine Studio +// SquareLine Studio version: SquareLine Studio 1.3.2 +// LVGL version: 8.3.6 +// Project name: notification + +#include "../notification_ui.h" + +#ifndef LV_ATTRIBUTE_MEM_ALIGN +#define LV_ATTRIBUTE_MEM_ALIGN +#endif + +// IMAGE DATA: assets\youtube.png +const LV_ATTRIBUTE_MEM_ALIGN uint8_t ui_img_youtube_png_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x00, 0x81, 0x00, 0x00, 0xd9, 0x00, 0x00, 0xe7, 0x00, 0x00, 0xeb, 0x00, 0x00, 0xec, 0x00, 0x00, 0xeb, 0x00, 0x00, 0xe3, 0x00, 0x00, 0xe3, 0x00, 0x00, 0xeb, 0x00, 0x00, 0xec, 0x00, 0x00, 0xeb, 0x00, 0x00, 0xe7, 0x00, 0x00, 0xd8, 0x00, 0x00, 0x84, 0x00, 0x00, 0x06, + 0x00, 0x00, 0x63, 0x00, 0x00, 0xb6, 0x00, 0x00, 0x26, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x25, 0x00, 0x00, 0xb2, 0x00, 0x00, 0x65, + 0x00, 0x00, 0xc2, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0xc3, + 0x00, 0x00, 0xe8, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x95, 0x00, 0x00, 0x58, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xe8, + 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xf2, 0x00, 0x00, 0xbb, 0x00, 0x00, 0xcb, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, + 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xe8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x00, 0x00, 0xdc, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, + 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xe8, 0x00, 0x00, 0x17, 0x00, 0x00, 0x97, 0x00, 0x00, 0xe4, 0x00, 0x00, 0x51, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, + 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0xf7, 0x00, 0x00, 0xe4, 0x00, 0x00, 0x7b, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, + 0x00, 0x00, 0xe8, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xe8, + 0x00, 0x00, 0xc3, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0xc3, + 0x00, 0x00, 0x65, 0x00, 0x00, 0xb3, 0x00, 0x00, 0x2b, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x00, 0x25, 0x00, 0x00, 0xb1, 0x00, 0x00, 0x65, + 0x00, 0x00, 0x06, 0x00, 0x00, 0x7e, 0x00, 0x00, 0xd2, 0x00, 0x00, 0xe6, 0x00, 0x00, 0xee, 0x00, 0x00, 0xf0, 0x00, 0x00, 0xee, 0x00, 0x00, 0xe4, 0x00, 0x00, 0xe4, 0x00, 0x00, 0xed, 0x00, 0x00, 0xf0, 0x00, 0x00, 0xef, 0x00, 0x00, 0xe7, 0x00, 0x00, 0xd9, 0x00, 0x00, 0x84, 0x00, 0x00, 0x06, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; + +const lv_img_dsc_t youtube = { + .header.cf = LV_IMG_CF_TRUE_COLOR_ALPHA, + .header.always_zero = 0, + .header.reserved = 0, + .header.w = 16, + .header.h = 16, + .data_size = sizeof(ui_img_youtube_png_data), + .data = ui_img_youtube_png_data, +}; diff --git a/app/src/applications/notification/ui_export/notification_ui.h b/app/src/applications/notification/ui_export/notification_ui.h index f5f26574..e96c1e87 100644 --- a/app/src/applications/notification/ui_export/notification_ui.h +++ b/app/src/applications/notification/ui_export/notification_ui.h @@ -5,18 +5,28 @@ #include "managers/zsw_notification_manager.h" +typedef struct { + zsw_not_mngr_notification_t *notification; + lv_obj_t *deltaLabel; + lv_obj_t *panel; + lv_timer_t *timer; +} active_notification_t; + LV_IMG_DECLARE(ui_img_whatsapp_png); LV_IMG_DECLARE(ui_img_gadget_png); LV_IMG_DECLARE(ui_img_mail_png); LV_IMG_DECLARE(ui_img_call_png); +LV_IMG_DECLARE(ui_img_trash_png); typedef void(*on_notification_remove_cb_t)(uint32_t id); void notifications_ui_page_init(on_notification_remove_cb_t not_removed_cb); void notifications_ui_page_create(zsw_not_mngr_notification_t *notifications, uint8_t num_notifications, - lv_group_t *input_group); + lv_group_t *input_group); void notifications_ui_page_close(void); -void notifications_ui_add_notification(zsw_not_mngr_notification_t *not, lv_group_t *group); \ No newline at end of file +void notifications_ui_add_notification(zsw_not_mngr_notification_t *not, lv_group_t *group); + +void notifications_ui_remove_notification(uint32_t id); \ No newline at end of file diff --git a/app/src/applications/notification/ui_export/screens/notification_ui.c b/app/src/applications/notification/ui_export/screens/notification_ui.c index 171a84b3..f81b14dd 100644 --- a/app/src/applications/notification/ui_export/screens/notification_ui.c +++ b/app/src/applications/notification/ui_export/screens/notification_ui.c @@ -2,29 +2,20 @@ #include "../notification_ui.h" -// TODO: Weg -#include -LOG_MODULE_REGISTER(notification_ui, LOG_LEVEL_DBG); -// - -typedef struct { - zsw_not_mngr_notification_t *notification; - lv_obj_t *deltaLabel; - lv_timer_t *timer; -} active_notification_t; - static on_notification_remove_cb_t notification_removed_callback; static lv_obj_t *main_page; static active_notification_t active_notifications[ZSW_NOTIFICATION_MGR_MAX_STORED]; static uint32_t active_notification_num; +#include +LOG_MODULE_REGISTER(notificationUI_app, LOG_LEVEL_DBG); + /** @brief Convert a time in seconds to a age string. * @param delta Time in seconds * @param buf Pointer to output buffer */ static void notification_delta2char(uint32_t delta, char *buf) { - uint32_t seconds = (delta % 60); uint32_t minutes = (delta % 3600) / 60; uint32_t hours = (delta % 86400) / 3600; uint32_t days = (delta % (86400 * 30)) / 86400; @@ -36,49 +27,53 @@ static void notification_delta2char(uint32_t delta, char *buf) } else if (days > 0) { sprintf(buf, "%u d", days); } else { - sprintf(buf, "%u s", seconds); + sprintf(buf, "Now"); } } +/** @brief + * @param timer +*/ static void label_on_Timer_Callback(lv_timer_t *timer) { char buf[16]; active_notification_t *active_notification = timer->user_data; uint32_t delta = time(NULL) - active_notification->notification->timestamp; - LOG_DBG("Notification %u: Delta %u", active_notification->notification->id, delta); notification_delta2char(delta, buf); lv_label_set_text(active_notification->deltaLabel, buf); } -static void notifications_ui_on_clicked(lv_event_t *e) +/** @brief + * @param event +*/ +static void notification_on_Clicked_Callback(lv_event_t *event) { uint32_t id; - id = (uint32_t)lv_event_get_user_data(e); + id = (uint32_t)lv_event_get_user_data(event); - for (uint32_t i = 0; i < active_notification_num; i++) { + for (uint32_t i = 0; i < ZSW_NOTIFICATION_MGR_MAX_STORED; i++) { if (active_notifications[i].notification->id == id) { lv_timer_del(active_notifications[i].timer); - - LOG_DBG("Remove notification id: %u", id); - - if (active_notification_num > 0) { - active_notification_num--; - } - - lv_obj_del(lv_event_get_target(e)); - notification_removed_callback(id); - + lv_obj_del(lv_event_get_target(event)); lv_obj_scroll_to_view(lv_obj_get_child(main_page, -1), LV_ANIM_ON); lv_obj_update_layout(main_page); + notification_removed_callback(id); + active_notification_num--; + break; } } } +/** @brief + * @param parent + * @param not + * @param group +*/ static void build_notification_entry(lv_obj_t *parent, zsw_not_mngr_notification_t *not, lv_group_t *group) { lv_obj_t *ui_Panel; @@ -86,30 +81,25 @@ static void build_notification_entry(lv_obj_t *parent, zsw_not_mngr_notification lv_obj_t *ui_LabelTimeDelta; lv_obj_t *ui_ImageIcon; lv_obj_t *ui_LabelHeader; - lv_obj_t *ui_TextAreaBody; + lv_obj_t *ui_LabelBody; const lv_img_dsc_t *image_source; - uint8_t sender_length; const char *source; char buf[16]; - char sender[ZSW_NOTIFICATION_MGR_MAX_SENDER_LEN]; - - // Check the length of the sender and cap it if needed. - sender_length = strlen(not->sender); - if (sender_length < (ZSW_NOTIFICATION_MGR_MAX_SENDER_LEN - 4)) { - memcpy(sender, not->sender, sender_length); - } else { - memset(sender, '.', sizeof(sender) - 1); - memcpy(sender, not->sender, ZSW_NOTIFICATION_MGR_MAX_SENDER_LEN - 4); - } switch (not->src) { case NOTIFICATION_SRC_COMMON_MESSENGER: + image_source = &ui_img_whatsapp_png; + source = "Messenger"; + break; case NOTIFICATION_SRC_WHATSAPP: image_source = &ui_img_whatsapp_png; source = "WhatsApp"; break; case NOTIFICATION_SRC_GMAIL: + image_source = &ui_img_mail_png; + source = "Gmail"; + break; case NOTIFICATION_SRC_COMMON_MAIL: image_source = &ui_img_mail_png; source = "Mail"; @@ -122,19 +112,19 @@ static void build_notification_entry(lv_obj_t *parent, zsw_not_mngr_notification ui_Panel = lv_obj_create(parent); lv_obj_set_width(ui_Panel, 200); - lv_obj_set_height(ui_Panel, 120); + lv_obj_set_height(ui_Panel, 100); lv_obj_set_align(ui_Panel, LV_ALIGN_CENTER); lv_obj_clear_flag(ui_Panel, LV_OBJ_FLAG_SCROLLABLE | LV_OBJ_FLAG_CLICK_FOCUSABLE); lv_obj_set_style_bg_color(ui_Panel, lv_color_hex(0x444444), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui_Panel, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui_Panel, LV_BORDER_SIDE_NONE, LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_add_event_cb(ui_Panel, notifications_ui_on_clicked, LV_EVENT_LONG_PRESSED, (void *)not->id); + lv_obj_add_event_cb(ui_Panel, notification_on_Clicked_Callback, LV_EVENT_LONG_PRESSED, (void *)not->id); ui_LabelSource = lv_label_create(ui_Panel); lv_obj_set_width(ui_LabelSource, LV_SIZE_CONTENT); lv_obj_set_height(ui_LabelSource, LV_SIZE_CONTENT); lv_obj_set_x(ui_LabelSource, 15); - lv_obj_set_y(ui_LabelSource, -40); + lv_obj_set_y(ui_LabelSource, -30); lv_obj_set_align(ui_LabelSource, LV_ALIGN_LEFT_MID); lv_label_set_text(ui_LabelSource, source); lv_obj_clear_flag(ui_LabelSource, LV_OBJ_FLAG_PRESS_LOCK | LV_OBJ_FLAG_CLICK_FOCUSABLE | LV_OBJ_FLAG_GESTURE_BUBBLE | @@ -147,7 +137,7 @@ static void build_notification_entry(lv_obj_t *parent, zsw_not_mngr_notification lv_obj_set_width(ui_LabelTimeDelta, LV_SIZE_CONTENT); lv_obj_set_height(ui_LabelTimeDelta, LV_SIZE_CONTENT); lv_obj_set_x(ui_LabelTimeDelta, 70); - lv_obj_set_y(ui_LabelTimeDelta, -40); + lv_obj_set_y(ui_LabelTimeDelta, -30); lv_obj_set_align(ui_LabelTimeDelta, LV_ALIGN_CENTER); notification_delta2char(time(NULL) - not->timestamp, buf); @@ -159,6 +149,7 @@ static void build_notification_entry(lv_obj_t *parent, zsw_not_mngr_notification lv_obj_set_style_text_color(ui_LabelTimeDelta, lv_color_hex(0x8C8C8C), LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui_LabelTimeDelta, 255, LV_PART_MAIN | LV_STATE_DEFAULT); + active_notifications[active_notification_num].panel = ui_Panel; active_notifications[active_notification_num].deltaLabel = ui_LabelTimeDelta; active_notifications[active_notification_num].notification = not; active_notifications[active_notification_num].timer = lv_timer_create(label_on_Timer_Callback, 1000UL, @@ -168,7 +159,7 @@ static void build_notification_entry(lv_obj_t *parent, zsw_not_mngr_notification lv_obj_set_width(ui_ImageIcon, 16); lv_obj_set_height(ui_ImageIcon, 16); lv_obj_set_x(ui_ImageIcon, -85); - lv_obj_set_y(ui_ImageIcon, -40); + lv_obj_set_y(ui_ImageIcon, -30); lv_obj_set_align(ui_ImageIcon, LV_ALIGN_CENTER); lv_img_set_src(ui_ImageIcon, image_source); lv_obj_clear_flag(ui_ImageIcon, LV_OBJ_FLAG_PRESS_LOCK | LV_OBJ_FLAG_CLICK_FOCUSABLE | LV_OBJ_FLAG_GESTURE_BUBBLE | @@ -179,9 +170,10 @@ static void build_notification_entry(lv_obj_t *parent, zsw_not_mngr_notification lv_obj_set_width(ui_LabelHeader, 180); lv_obj_set_height(ui_LabelHeader, LV_SIZE_CONTENT); lv_obj_set_x(ui_LabelHeader, 0); - lv_obj_set_y(ui_LabelHeader, -10); + lv_obj_set_y(ui_LabelHeader, 0); lv_obj_set_align(ui_LabelHeader, LV_ALIGN_CENTER); - lv_label_set_text(ui_LabelHeader, sender); + lv_label_set_text(ui_LabelHeader, not->sender); + lv_label_set_long_mode(ui_LabelHeader, LV_LABEL_LONG_DOT); lv_obj_clear_flag(ui_LabelHeader, LV_OBJ_FLAG_PRESS_LOCK | LV_OBJ_FLAG_CLICK_FOCUSABLE | LV_OBJ_FLAG_GESTURE_BUBBLE | LV_OBJ_FLAG_SNAPPABLE | LV_OBJ_FLAG_SCROLLABLE | LV_OBJ_FLAG_SCROLL_ELASTIC | LV_OBJ_FLAG_SCROLL_MOMENTUM | LV_OBJ_FLAG_SCROLL_CHAIN); @@ -189,29 +181,31 @@ static void build_notification_entry(lv_obj_t *parent, zsw_not_mngr_notification lv_obj_set_style_text_opa(ui_LabelHeader, 255, LV_PART_MAIN | LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui_LabelHeader, &lv_font_montserrat_16, LV_PART_MAIN | LV_STATE_DEFAULT); - ui_TextAreaBody = lv_textarea_create(ui_Panel); - lv_obj_set_width(ui_TextAreaBody, 180); - lv_obj_set_height(ui_TextAreaBody, 35); - lv_obj_set_x(ui_TextAreaBody, 0); - lv_obj_set_y(ui_TextAreaBody, 25); - lv_obj_set_align(ui_TextAreaBody, LV_ALIGN_CENTER); - lv_textarea_set_text(ui_TextAreaBody, not->body); - lv_obj_clear_flag(ui_TextAreaBody, LV_OBJ_FLAG_CLICKABLE | LV_OBJ_FLAG_PRESS_LOCK | LV_OBJ_FLAG_CLICK_FOCUSABLE | - LV_OBJ_FLAG_GESTURE_BUBBLE | LV_OBJ_FLAG_SNAPPABLE); - lv_obj_set_style_text_color(ui_TextAreaBody, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_set_style_text_opa(ui_TextAreaBody, 255, LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_set_style_text_font(ui_TextAreaBody, &lv_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_set_style_bg_color(ui_TextAreaBody, lv_color_hex(0x444444), LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_set_style_bg_opa(ui_TextAreaBody, 255, LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_set_style_border_color(ui_TextAreaBody, lv_color_hex(0x444444), LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_set_style_border_opa(ui_TextAreaBody, 255, LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_set_style_pad_left(ui_TextAreaBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_set_style_pad_right(ui_TextAreaBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_set_style_pad_top(ui_TextAreaBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT); - lv_obj_set_style_pad_bottom(ui_TextAreaBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT); + ui_LabelBody = lv_label_create(ui_Panel); + lv_obj_set_width(ui_LabelBody, 180); + lv_obj_set_height(ui_LabelBody, 25); + lv_obj_set_x(ui_LabelBody, 0); + lv_obj_set_y(ui_LabelBody, 30); + lv_obj_set_align(ui_LabelBody, LV_ALIGN_CENTER); + lv_label_set_text(ui_LabelBody, not->body); + lv_label_set_long_mode(ui_LabelBody, LV_LABEL_LONG_SCROLL_CIRCULAR); + lv_obj_clear_flag(ui_LabelBody, LV_OBJ_FLAG_PRESS_LOCK | LV_OBJ_FLAG_CLICK_FOCUSABLE | LV_OBJ_FLAG_GESTURE_BUBBLE | + LV_OBJ_FLAG_SNAPPABLE | LV_OBJ_FLAG_SCROLLABLE | LV_OBJ_FLAG_SCROLL_ELASTIC | LV_OBJ_FLAG_SCROLL_MOMENTUM | + LV_OBJ_FLAG_SCROLL_CHAIN); + lv_obj_set_style_text_color(ui_LabelBody, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_text_opa(ui_LabelBody, 255, LV_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_text_font(ui_LabelBody, &lv_font_montserrat_14, LV_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_bg_color(ui_LabelBody, lv_color_hex(0x444444), LV_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_bg_opa(ui_LabelBody, 255, LV_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_border_color(ui_LabelBody, lv_color_hex(0x444444), LV_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_border_opa(ui_LabelBody, 255, LV_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_pad_left(ui_LabelBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_pad_right(ui_LabelBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_pad_top(ui_LabelBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_pad_bottom(ui_LabelBody, 0, LV_PART_MAIN | LV_STATE_DEFAULT); // Remove the cursor and the highlighting (visible for the first entry). - lv_obj_clear_state(ui_TextAreaBody, LV_STATE_CHECKED | LV_STATE_FOCUSED | LV_STATE_FOCUS_KEY); + lv_obj_clear_state(ui_LabelBody, LV_STATE_CHECKED | LV_STATE_FOCUSED | LV_STATE_FOCUS_KEY); if (active_notification_num < ZSW_NOTIFICATION_MGR_MAX_STORED) { active_notification_num++; @@ -240,6 +234,18 @@ void notifications_ui_page_create(zsw_not_mngr_notification_t *notifications, ui lv_obj_set_scroll_snap_y(main_page, LV_SCROLL_SNAP_CENTER); lv_obj_set_scrollbar_mode(main_page, LV_SCROLLBAR_MODE_OFF); + /* + ui_ImgButtonClearAll = lv_imgbtn_create(lv_obj_create(lv_scr_act())); + lv_imgbtn_set_src(ui_ImgButtonClearAll, LV_IMGBTN_STATE_RELEASED, NULL, &ui_img_trash_png, NULL); + lv_imgbtn_set_src(ui_ImgButtonClearAll, LV_IMGBTN_STATE_PRESSED, NULL, &ui_img_trash_png, NULL); + lv_obj_set_width(ui_ImgButtonClearAll, 32); + lv_obj_set_height(ui_ImgButtonClearAll, 32); + lv_obj_align(ui_ImgButtonClearAll, LV_ALIGN_CENTER, 0, 0); + lv_obj_set_align(ui_ImgButtonClearAll, LV_ALIGN_CENTER); + lv_obj_clear_flag(ui_ImgButtonClearAll, LV_OBJ_FLAG_GESTURE_BUBBLE | LV_OBJ_FLAG_SNAPPABLE); + lv_obj_add_event_cb(ui_ImgButtonClearAll, on_ImgButtonClearAll_clicked, LV_EVENT_PRESSED, NULL); + */ + for (int i = 0; i < num_notifications; i++) { build_notification_entry(main_page, ¬ifications[i], group); } @@ -270,4 +276,26 @@ void notifications_ui_add_notification(zsw_not_mngr_notification_t *not, lv_grou build_notification_entry(main_page, not, group); lv_obj_scroll_to_view(lv_obj_get_child(main_page, -1), LV_ANIM_OFF); lv_obj_update_layout(main_page); +} + +void notifications_ui_remove_notification(uint32_t id) +{ + if (main_page == NULL) { + return; + } + + for (uint32_t i = 0; i < ZSW_NOTIFICATION_MGR_MAX_STORED; i++) { + if (active_notifications[i].notification->id == id) { + lv_timer_del(active_notifications[i].timer); + lv_obj_del(active_notifications[i].panel); + lv_obj_scroll_to_view(lv_obj_get_child(main_page, -1), LV_ANIM_ON); + lv_obj_update_layout(main_page); + + active_notification_num--; + + LOG_DBG("Notification removed"); + + break; + } + } } \ No newline at end of file diff --git a/app/src/ble/gadgetbridge/ble_gadgetbridge.c b/app/src/ble/gadgetbridge/ble_gadgetbridge.c index 91c6fd00..ce5f06c1 100644 --- a/app/src/ble/gadgetbridge/ble_gadgetbridge.c +++ b/app/src/ble/gadgetbridge/ble_gadgetbridge.c @@ -388,7 +388,9 @@ static int parse_notify_delete(char *data, int len) cb.type = BLE_COMM_DATA_TYPE_NOTIFY_REMOVE; cb.data.notify.id = extract_value_uint32("\"id\":", data); + send_ble_data_event(&cb); + return 0; } diff --git a/app/src/events/zsw_notification_event.c b/app/src/events/zsw_notification_event.c index abd070ee..7be99c67 100644 --- a/app/src/events/zsw_notification_event.c +++ b/app/src/events/zsw_notification_event.c @@ -8,4 +8,16 @@ ZBUS_CHAN_DEFINE(zsw_notification_mgr_chan, NULL, ZBUS_OBSERVERS(notification_app_lis, main_notification_lis), ZBUS_MSG_INIT() + ); + +/** @brief This event is used to inform all listeners about a removed notification. A notify is + * send, when all notifications were removed. Otherwise the event will contain a copy + * of the removed notification. +*/ +ZBUS_CHAN_DEFINE(zsw_notification_mgr_remove_chan, + struct zsw_notification_remove_event, + NULL, + NULL, + ZBUS_OBSERVERS(notification_app_remove_lis), + ZBUS_MSG_INIT() ); \ No newline at end of file diff --git a/app/src/events/zsw_notification_event.h b/app/src/events/zsw_notification_event.h index 840543d3..9cec7daa 100644 --- a/app/src/events/zsw_notification_event.h +++ b/app/src/events/zsw_notification_event.h @@ -1,9 +1,14 @@ #pragma once #include "ble/ble_comm.h" +#include "managers/zsw_notification_manager.h" /** @brief We use an empty struct, because all listeners were only informed. They have * to fetch the notifications on their own. */ struct zsw_notification_event { +}; + +struct zsw_notification_remove_event { + zsw_not_mngr_notification_t notification; }; \ No newline at end of file diff --git a/app/src/main.c b/app/src/main.c index fda9e9ad..507b57ce 100644 --- a/app/src/main.c +++ b/app/src/main.c @@ -354,7 +354,7 @@ static void open_notification_popup(void *data) lv_group_set_default(temp_group); lv_indev_set_group(enc_indev, temp_group); zsw_vibration_run_pattern(ZSW_VIBRATION_PATTERN_NOTIFICATION); - zsw_notification_popup_show(not->title, not->body, not->src, not->id, on_popup_notifcation_closed, 10); + zsw_notification_popup_show(not->sender, not->body, not->src, not->id, on_popup_notifcation_closed, 10); is_buttons_for_lvgl = true; } pending_not_open = false; diff --git a/app/src/managers/zsw_notification_manager.c b/app/src/managers/zsw_notification_manager.c index d59693c4..fc17944a 100644 --- a/app/src/managers/zsw_notification_manager.c +++ b/app/src/managers/zsw_notification_manager.c @@ -30,6 +30,7 @@ static ble_comm_notify_t notification; static K_WORK_DEFINE(notification_work, notification_mgr_update_worker); ZBUS_LISTENER_DEFINE(notification_mgr_ble_comm_lis, notification_mgr_zbus_ble_comm_data_callback); ZBUS_CHAN_DECLARE(zsw_notification_mgr_chan); +ZBUS_CHAN_DECLARE(zsw_notification_mgr_remove_chan); static void notification_mgr_update_worker(struct k_work *item) { @@ -60,6 +61,8 @@ static void notification_mgr_zbus_ble_comm_data_callback(const struct zbus_chann memcpy(¬ification, &event->data.data.notify, sizeof(ble_comm_notify_t)); k_work_submit(¬ification_work); } else if (event->data.type == BLE_COMM_DATA_TYPE_NOTIFY_REMOVE) { + LOG_DBG("Remove notification with ID %u", event->data.data.notify_remove.id); + if (zsw_notification_manager_remove(event->data.data.notify_remove.id) != 0) { LOG_WRN("Notification %d not found", event->data.data.notify_remove.id); } @@ -92,28 +95,35 @@ zsw_not_mngr_notification_t *zsw_notification_manager_add(const ble_comm_notify_ if (strncmp(not->src, "Messenger", not->src_len) == 0) { notifications[idx].src = NOTIFICATION_SRC_COMMON_MESSENGER; notifications[idx].id = not->id; - memcpy(notifications[idx].title, not->title, MIN(not->title_len, NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); - memcpy(notifications[idx].body, not->body, MIN(not->body_len, NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); - memcpy(notifications[idx].sender, not->sender, MIN(not->sender_len, NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + memcpy(notifications[idx].title, not->title, MIN(not->title_len, ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + memcpy(notifications[idx].body, not->body, MIN(not->body_len, ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + memcpy(notifications[idx].sender, not->sender, MIN(not->sender_len, ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + } else if (strncmp(not->src, "WhatsApp", not->src_len) == 0) { + // {"t":"notify","id":1700974318,"src":"WhatsApp","title":"Daniel Kampert","subject":"","body":"H","sender":""} + + notifications[idx].src = NOTIFICATION_SRC_WHATSAPP; + notifications[idx].id = not->id; + memcpy(notifications[idx].sender, not->title, MIN(not->title_len, ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + memcpy(notifications[idx].body, not->body, MIN(not->body_len, ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + } else if (strncmp(not->src, "YouTube", not->src_len) == 0) { + } else if (strncmp(not->src, "Gmail", not->src_len) == 0) { // {t:"notify",id:1670967782,src:"Gmail",title:"Jakob Krantz",body:"Nytt test\nDetta YR NÖTT" // TODO Subject is before first \n in body so extract that into title field. notifications[idx].src = NOTIFICATION_SRC_GMAIL; notifications[idx].id = not->id; - memcpy(notifications[idx].body, not->body, MIN(not->body_len, NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); - memcpy(notifications[idx].sender, not->title, MIN(not->title_len, NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); - - memcpy(notifications[idx].title, not->title, MIN(not->title_len, NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + memcpy(notifications[idx].body, not->body, MIN(not->body_len, ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + memcpy(notifications[idx].sender, not->title, MIN(not->title_len, ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); } else { // TODO add more // For example debug notfication // {t:"notify",id:1670967783,src:"Bangle.js Gadgetbridge",subject:"Testar",body:"Testar",sender:"Testar",tel:"Testar"} notifications[idx].src = NOTIFICATION_SRC_NONE; notifications[idx].id = not->id; - memcpy(notifications[idx].title, not->src, MIN(not->src_len, NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); - memcpy(notifications[idx].body, not->body, MIN(not->body_len, NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); - memcpy(notifications[idx].sender, not->sender, MIN(not->sender_len, NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + memcpy(notifications[idx].title, not->src, MIN(not->src_len, ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + memcpy(notifications[idx].body, not->body, MIN(not->body_len, ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); + memcpy(notifications[idx].sender, not->sender, MIN(not->sender_len, ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN - 1)); } notifications[idx].timestamp = time(NULL); @@ -127,26 +137,39 @@ zsw_not_mngr_notification_t *zsw_notification_manager_add(const ble_comm_notify_ int32_t zsw_notification_manager_remove(uint32_t id) { - int msg_len; - char buf[100]; uint32_t idx = find_notification_idx(id); if (idx != NOTIFICATION_INVALID_INDEX) { - notifications[idx].id = NOTIFICATION_INVALID_ID; + struct zsw_notification_remove_event evt; + memcpy(&evt.notification, ¬ifications[idx], sizeof(zsw_not_mngr_notification_t)); - // TODO: We have to check the type of notification here to figure out the sender (BLE or other sources). - memset(buf, 0, sizeof(buf)); - msg_len = snprintf(buf, sizeof(buf), "{\"t\":\"notify\", \"id\": %d, \"n\": %s} \n", id, "\"DISMISS\""); - ble_comm_send(buf, msg_len); + zbus_chan_pub(&zsw_notification_mgr_remove_chan, &evt, K_NO_WAIT); + + // NOTE: We pass a copy of the notification into the ZBUS event. This help the listeners to + // handle the notification, because the data in the notification buffer can change before + // the listeners have ececuted their operations. + notifications[idx].id = NOTIFICATION_INVALID_ID; if (num_notifications > 0) { num_notifications--; } return 0; - } else { - return -ENOENT; } + + return -ENOENT; +} + +void zsw_notification_manager_remove_all(void) +{ + for (uint32_t i = 0; i < num_notifications; i++) { + + notifications[i].id = NOTIFICATION_INVALID_ID; + } + + zbus_chan_notify(&zsw_notification_mgr_remove_chan, K_NO_WAIT); + + num_notifications = 0; } int32_t zsw_notification_manager_get_all(zsw_not_mngr_notification_t *nots, int *num_notifications) @@ -158,7 +181,9 @@ int32_t zsw_notification_manager_get_all(zsw_not_mngr_notification_t *nots, int num_stored++; } } + *num_notifications = num_stored; + return 0; } diff --git a/app/src/managers/zsw_notification_manager.h b/app/src/managers/zsw_notification_manager.h index 61b9074e..006838e2 100644 --- a/app/src/managers/zsw_notification_manager.h +++ b/app/src/managers/zsw_notification_manager.h @@ -21,30 +21,33 @@ #include "ble/ble_comm.h" -/** @brief The field "LabelHeader" allows 19 characters. So the maximum length is 20 bytes. +/** @brief */ -#define ZSW_NOTIFICATION_MGR_MAX_SENDER_LEN 20 - -#define NOTIFICATION_MGR_MAX_FIELD_LEN 50 +#define ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN 50 /** @brief Maximum number of notification stored at a time. */ #define ZSW_NOTIFICATION_MGR_MAX_STORED 20 +/** @brief Notification sources definitions. +*/ typedef enum { - NOTIFICATION_SRC_COMMON_MESSENGER, - NOTIFICATION_SRC_WHATSAPP, - NOTIFICATION_SRC_COMMON_MAIL, - NOTIFICATION_SRC_GMAIL, - NOTIFICATION_SRC_NONE + NOTIFICATION_SRC_COMMON_MESSENGER, /**< */ + NOTIFICATION_SRC_WHATSAPP, /**< */ + NOTIFICATION_SRC_COMMON_MAIL, /**< */ + NOTIFICATION_SRC_GMAIL, /**< */ + NOTIFICATION_SRC_YOUTUBE, /**< */ + NOTIFICATION_SRC_NONE /**< */ } zsw_notification_src_t; +/** @brief Notification object definition. +*/ typedef struct not_mngr_notification { uint32_t id; /**< Notification ID. */ uint32_t timestamp; /**< Active notification time in seconds. */ - char sender[ZSW_NOTIFICATION_MGR_MAX_SENDER_LEN]; /**< */ - char title[NOTIFICATION_MGR_MAX_FIELD_LEN];//TODO: Maybe remove? - char body[NOTIFICATION_MGR_MAX_FIELD_LEN]; /**< */ + char sender[ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN]; /**< Contains the notification sender (e-mail address or name in WhatsApp). */ + char title[ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN]; /**< */ + char body[ZSW_NOTIFICATION_MGR_MAX_FIELD_LEN]; /**< */ zsw_notification_src_t src; /**< */ } zsw_not_mngr_notification_t; @@ -64,6 +67,10 @@ zsw_not_mngr_notification_t *zsw_notification_manager_add(const ble_comm_notify_ */ int32_t zsw_notification_manager_remove(uint32_t id); +/** @brief Remove all notifications. +*/ +void zsw_notification_manager_remove_all(void); + /** @brief * @param id * @param notification