summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Notifications.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-01-22Change: colors & menu itemsdavidpkj1-1/+1
2022-12-26Fix formattingtgc-dk1-2/+1
2022-12-26Put common code into DismissToBlack helper functionTomas Groth1-15/+13
2022-12-26Make it possible to dismiss new notificationsTomas Groth1-2/+24
2022-12-18Update clang-tidy configuration and fix some warnings (#1474)Riku Isokoski1-12/+6
Don't enable coding conventions from unrelated projects. Only enable generic checks.
2022-08-16Centralize most color definitions (#1258)Riku Isokoski1-4/+5
2022-08-08Notification swap text colors for visibility and reduce duplication (#1252)Riku Isokoski1-12/+7
2022-06-28Notifications: no inTransition screen, simple blackbox is enoughReinhold Gschweicher1-11/+7
2022-06-28Dismiss notifications by swiping rightSimon Willshire1-48/+127
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>
2022-06-05Apply clang-format to all C++ filesFinlay Davidson1-2/+2
2022-05-08Force full screen refresh with a rounder functionRiku Isokoski1-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.
2022-04-29Fix large blacklevel step. Lower 25% of shades are now accessible.Riku Isokoski1-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.
2022-04-25Tweak gamma on ST7789 and match UI colorsRiku Isokoski1-6/+6
This change will increase the color accuracy of the PineTime and make UI development with the simulator easier.
2022-04-18Replace lv_label_set_text where possibleRiku Isokoski1-5/+5
2022-03-03Notifications: replace newlines in label-copy because of const char* titleReinhold Gschweicher1-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.
2022-02-19Notifications: use motorController object instead of class functionReinhold Gschweicher1-9/+15
We get the motoroController object, so store and use it.
2022-01-01Improved notification timeoutRiku Isokoski1-14/+38
2021-11-15Update includes to to be relative to src directoryReinhold Gschweicher1-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.
2021-09-13Merge branch 'develop' into disable_notif_onlyRiku Isokoski1-1/+1
2021-09-12Merge pull request #602 from Riksu9000/del_unusedJF0021-1/+1
Remove unused variables
2021-09-12Toggle notifications only, keep vibrations.Riku Isokoski1-4/+0
2021-08-31Fix notifications that wouldn't auto close when the timeout elapsed (in ↵Jean-François Milants1-1/+0
preview mode).
2021-08-19Remove unused variablesRiku Isokoski1-1/+1
2021-08-15Merge branch 'develop' into refresh_reworkRiku Isokoski1-44/+39
2021-08-03Merge branch 'develop' into refresh_reworkRiku Isokoski1-1/+0
2021-08-01FixesRiku Isokoski1-10/+17
2021-08-01ImprovementsRiku Isokoski1-74/+29
2021-08-01Merge branch 'develop' into HEADRiku Isokoski1-20/+20
2021-07-25Fix slow scrollRiku Isokoski1-1/+0
2021-07-19Refresh reworkRiku Isokoski1-3/+4
2021-07-02Fix call notification button alignmentRiku Isokoski1-20/+12
2021-05-20removed an empty assignment that caused a compiler warning (#372)Florian1-1/+0
2021-05-16NotificationItem now also redefines the start of the timeoutFlorian Kraupa1-7/+13
2021-05-16cleaned up the code and reduced the size of the diff by removing things like ↵Florian Kraupa1-14/+9
additional whitespaces
2021-05-16only activate the timeout on call notification previews after they have been ↵Florian Kraupa1-11/+24
interacted with
2021-05-16implemented continuous vibration pattern for incoming callsFlorian Kraupa1-11/+28
2021-05-16better handling of long notification titlesFlorian Kraupa1-0/+10
2021-04-24Reformatted all the files according to clang-format styleAvamander1-55/+59
2021-04-09Fix display of empty notification.Jean-François Milants1-1/+1
2021-04-09Merge branch 'develop' into notification-titleJean-François Milants1-23/+18
# Conflicts: # src/displayapp/screens/Notifications.cpp
2021-04-04double tap wakeup error fixJoaquim1-1/+4
battery nonblocking read
2021-04-04Notification app : disable swipe when the app is in 'preview' mode. In this ↵Jean-François Milants1-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).
2021-04-04Add support for notification title. The notification buffer must contain the ↵Jean-François Milants1-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.
2021-04-04Big UI and navigation RewriteJoaquim1-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...
2021-03-22replaced all unique_ptr.reset calls with std::make_uniqueNiall Cooling1-8/+8
2021-02-23Merge branch 'LVGL7' of https://github.com/joaquimorg/Pinetime into ↵Jean-François Milants1-109/+82
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
2021-02-14Fix merge conflict.Jean-François Milants1-3/+6
2021-02-07add vibration togglepetter1-0/+4
2021-02-05trigger vibration from systemtaskpetter1-7/+3
2021-01-28LVGL v7.10.0Joaquim1-69/+41