aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Notifications.h
Commit message (Collapse)AuthorAgeFilesLines
* Format header filesFinlay Davidson2023-01-091-0/+3
| | | | In my PR updating clang-format, I forgot to also format the headers.
* Put common code into DismissToBlack helper functionTomas Groth2022-12-261-0/+1
|
* Make it possible to dismiss new notificationsTomas Groth2022-12-261-0/+1
|
* Notifications: no inTransition screen, simple blackbox is enoughReinhold Gschweicher2022-06-281-4/+2
|
* Dismiss notifications by swiping rightSimon Willshire2022-06-281-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new interface `NotificationManager::Dismiss(id)` to delete a notification with the specified `id`. The animate the notification dismiss the `RightAnim` transition to a black screen is used. After the dismiss the new message is swiped in from below or above. If we dismiss the oldest message (when we are at 5/5, or 3/3), then the new message after a dismiss should appear to come from below. Otherwise (when we are at 2/3) the new message after a dismiss should appear to come from above. Rework the index code to show the index of the currently viewed notification. Instead of calculating the index relative to the oldest `id` introduce a new interface `NotificationManager::IndexOf(id)`. This is done because the `id` of the notifications in the buffer aren't continuous anymore (as some messages could have been dismissed). Rework notification ring buffer to have a beginIdx and a size internally to make the dismissal of notifications easier. Fixes: https://github.com/InfiniTimeOrg/InfiniTime/issues/176 Co-authored-by: Simon Willshire <me@simonwillshire.com> Co-authored-by: Reinhold Gschweicher <pyro4hell@gmail.com>
* Notifications: replace newlines in label-copy because of const char* titleReinhold Gschweicher2022-03-031-4/+0
| | | | | | | | | | | | The variable `title` is defined as `const char*`, which means, that `strchr()` returns a `const char*` as well according to https://www.cplusplus.com/reference/cstring/strchr/ But in the same line the return value is assigned to a non-const `char*`, which shouldn't be allowed (error with `-pedantic`). Because the `lv_label` creates an internal copy of the title sting, just modify that one instead and replace newline in the copied string.
* Notifications: use motorController object instead of class functionReinhold Gschweicher2022-02-191-1/+4
| | | | We get the motoroController object, so store and use it.
* Improved notification timeoutRiku Isokoski2022-01-011-2/+8
|
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-151-1/+1
| | | | | | | Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
* Merge pull request #602 from Riksu9000/del_unusedJF0022021-09-121-8/+0
|\ | | | | Remove unused variables
| * Remove unused variablesRiku Isokoski2021-08-191-8/+0
| |
* | Merge branch 'develop' into refresh_reworkRiku Isokoski2021-08-151-4/+8
|\|
| * FixesRiku Isokoski2021-08-011-0/+2
| |
| * ImprovementsRiku Isokoski2021-08-011-20/+7
| |
| * NotificationItem now also redefines the start of the timeoutFlorian Kraupa2021-05-161-1/+3
| |
| * cleaned up the code and reduced the size of the diff by removing things like ↵Florian Kraupa2021-05-161-1/+1
| | | | | | | | additional whitespaces
| * only activate the timeout on call notification previews after they have been ↵Florian Kraupa2021-05-161-2/+6
| | | | | | | | interacted with
| * implemented continuous vibration pattern for incoming callsFlorian Kraupa2021-05-161-1/+7
| |
* | Refresh reworkRiku Isokoski2021-07-191-4/+3
|/
* Changed access modified indentationAvamander2021-04-241-4/+4
|
* Reformatted all the files according to clang-format styleAvamander2021-04-241-29/+36
|
* Big UI and navigation RewriteJoaquim2021-04-041-2/+1
| | | | | | | | | | | new navigation add some color to the apps redesign menus new settings menu new quick settings code clean up size reduction by converting navigation images to font and more...
* Merge branch 'LVGL7' of https://github.com/joaquimorg/Pinetime into ↵Jean-François Milants2021-02-231-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | joaquimorg-LVGL7 # Conflicts: # src/CMakeLists.txt # src/displayapp/DisplayApp.cpp # src/displayapp/screens/Modal.cpp # src/displayapp/screens/Modal.h # src/displayapp/screens/Notifications.cpp # src/displayapp/screens/Tile.h
| * LVGL v7.10.0Joaquim2021-01-281-1/+1
| |
* | add mute button and functionality for call notification + new button iconspetter2021-01-271-0/+3
| |
* | Revert invalid changes in Navigation.h and add missing changes in ↵Jean-François Milants2021-01-241-1/+6
| | | | | | | | Notifications.h.
* | Handle call notification the same way than other notifications.Jean-François Milants2021-01-241-16/+26
|/ | | | Display the call notifications in the Notification app, with buttons to accept/reject the call.
* Include cleanup: displayapp + screensokaestne2020-11-161-5/+4
|
* Notifications : Replace the label "notificationNr/notificationNb" by a grey ↵JF2020-10-221-0/+1
| | | | border on the bottom that is displayed when there are other notifications to available.
* Integrate new notification UI with notifications coming from BLEJF2020-10-201-10/+26
|
* [WIP] Add new notification UI that use HW scrolling effects. Both ↵JF2020-10-191-12/+20
| | | | notification apps are available in the menu, we can compare them.
* [WIP] New notification app that uses software scrolling effect.JF2020-10-181-0/+36