aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Notifications.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix formattingtgc-dk2022-12-261-2/+1
|
* Put common code into DismissToBlack helper functionTomas Groth2022-12-261-15/+13
|
* Make it possible to dismiss new notificationsTomas Groth2022-12-261-2/+24
|
* Update clang-tidy configuration and fix some warnings (#1474)Riku Isokoski2022-12-181-12/+6
| | | | | Don't enable coding conventions from unrelated projects. Only enable generic checks.
* Centralize most color definitions (#1258)Riku Isokoski2022-08-161-4/+5
|
* Notification swap text colors for visibility and reduce duplication (#1252)Riku Isokoski2022-08-081-12/+7
|
* Notifications: no inTransition screen, simple blackbox is enoughReinhold Gschweicher2022-06-281-11/+7
|
* Dismiss notifications by swiping rightSimon Willshire2022-06-281-45/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Apply clang-format to all C++ filesFinlay Davidson2022-06-051-2/+2
|
* Force full screen refresh with a rounder functionRiku Isokoski2022-05-081-6/+0
| | | | | | When the screen switches, the full screen needs to be refreshed for the hardware scrolling to work. This was enforced with backgroundLabels, but is simpler to do with a rounder function.
* Fix large blacklevel step. Lower 25% of shades are now accessible.Riku Isokoski2022-04-291-1/+1
| | | | | | | | | There is a large step in brightness from level zero to level one. After experimenting with various ST7789 options, I found that decreasing VDV to 0x10 (-0.4V) fixes this issue. The gamma change reduced the average error in brightness, but with the underlying issue fixed, the gamma change has been reverted.
* Tweak gamma on ST7789 and match UI colorsRiku Isokoski2022-04-251-6/+6
| | | | | This change will increase the color accuracy of the PineTime and make UI development with the simulator easier.
* Replace lv_label_set_text where possibleRiku Isokoski2022-04-181-5/+5
|
* Notifications: replace newlines in label-copy because of const char* titleReinhold Gschweicher2022-03-031-8/+11
| | | | | | | | | | | | 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-9/+15
| | | | We get the motoroController object, so store and use it.
* Improved notification timeoutRiku Isokoski2022-01-011-14/+38
|
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-151-3/+3
| | | | | | | 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 branch 'develop' into disable_notif_onlyRiku Isokoski2021-09-131-1/+1
|\
| * Merge pull request #602 from Riksu9000/del_unusedJF0022021-09-121-1/+1
| |\ | | | | | | Remove unused variables
| | * Remove unused variablesRiku Isokoski2021-08-191-1/+1
| | |
* | | Toggle notifications only, keep vibrations.Riku Isokoski2021-09-121-4/+0
|/ /
* | Fix notifications that wouldn't auto close when the timeout elapsed (in ↵Jean-François Milants2021-08-311-1/+0
| | | | | | | | preview mode).
* | Merge branch 'develop' into refresh_reworkRiku Isokoski2021-08-151-42/+37
|\|
| * FixesRiku Isokoski2021-08-011-10/+17
| |
| * ImprovementsRiku Isokoski2021-08-011-74/+29
| |
| * Merge branch 'develop' into HEADRiku Isokoski2021-08-011-20/+20
| |\
| * | NotificationItem now also redefines the start of the timeoutFlorian Kraupa2021-05-161-7/+13
| | |
| * | cleaned up the code and reduced the size of the diff by removing things like ↵Florian Kraupa2021-05-161-14/+9
| | | | | | | | | | | | additional whitespaces
| * | only activate the timeout on call notification previews after they have been ↵Florian Kraupa2021-05-161-11/+24
| | | | | | | | | | | | interacted with
| * | implemented continuous vibration pattern for incoming callsFlorian Kraupa2021-05-161-11/+28
| | |
* | | Merge branch 'develop' into refresh_reworkRiku Isokoski2021-08-031-1/+0
|\ \ \ | | |/ | |/|
| * | Fix slow scrollRiku Isokoski2021-07-251-1/+0
| | |
* | | Refresh reworkRiku Isokoski2021-07-191-3/+4
|/ /
* | Fix call notification button alignmentRiku Isokoski2021-07-021-20/+12
| |
* | removed an empty assignment that caused a compiler warning (#372)Florian2021-05-201-1/+0
| |
* | better handling of long notification titlesFlorian Kraupa2021-05-161-0/+10
|/
* Reformatted all the files according to clang-format styleAvamander2021-04-241-55/+59
|
* Fix display of empty notification.Jean-François Milants2021-04-091-1/+1
|
* Merge branch 'develop' into notification-titleJean-François Milants2021-04-091-23/+18
|\ | | | | | | | | # Conflicts: # src/displayapp/screens/Notifications.cpp
| * double tap wakeup error fixJoaquim2021-04-041-1/+4
| | | | | | | | battery nonblocking read
| * Big UI and navigation RewriteJoaquim2021-04-041-28/+20
| | | | | | | | | | | | | | | | | | | | | | 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...
* | Notification app : disable swipe when the app is in 'preview' mode. In this ↵Jean-François Milants2021-04-041-0/+2
| | | | | | | | | | | | mode, only the new notification should be displayed, there is no point to allow navigating to past notifications. Works as a workaround for the crash that occurs when you swipe the notification app in preview mode (https://github.com/JF002/InfiniTime/issues/250).
* | Add support for notification title. The notification buffer must contain the ↵Jean-François Milants2021-04-041-7/+8
|/ | | | | | title and the message separated by a '\0' character. If the buffer does not contain any \0, the whole buffer is considered to be the message of the notification. A default title will be displayed in the notification app.
* replaced all unique_ptr.reset calls with std::make_uniqueNiall Cooling2021-03-221-8/+8
|
* Merge branch 'LVGL7' of https://github.com/joaquimorg/Pinetime into ↵Jean-François Milants2021-02-231-102/+75
|\ | | | | | | | | | | | | | | | | | | | | | | 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-62/+34
| |
* | Fix merge conflict.Jean-François Milants2021-02-141-3/+6
|\ \
| * | add vibration togglepetter2021-02-071-0/+4
| | |
| * | trigger vibration from systemtaskpetter2021-02-051-7/+3
| | |
| * | create motorcontroller in main and pass by referencepetter2021-01-251-3/+7
| | |