aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Notifications.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | |
| * | add motor to notifs, fix tabs in motorcontroller.hjlukanc2021-01-151-0/+4
| |/
* | add mute button and functionality for call notification + new button iconspetter2021-01-271-5/+28
| |
* | Handle call notification the same way than other notifications.Jean-François Milants2021-01-241-17/+116
|/ | | | Display the call notifications in the Notification app, with buttons to accept/reject the call.
* Include cleanup: displayapp + screensokaestne2020-11-161-3/+1
|
* Notifications : Replace the label "notificationNr/notificationNb" by a grey ↵JF2020-10-221-12/+16
| | | | border on the bottom that is displayed when there are other notifications to available.
* Notifications : Fix display of notification index/number.JF2020-10-211-4/+4
|
* Integrate new notification UI with notifications coming from BLEJF2020-10-201-139/+96
|
* [WIP] Add new notification UI that use HW scrolling effects. Both ↵JF2020-10-191-73/+141
| | | | notification apps are available in the menu, we can compare them.