aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Alarm.h
Commit message (Collapse)AuthorAgeFilesLines
* navigation: fix greying out the app icon if not enabledHeiko Stuebner2025-07-031-0/+4
| | | | | | | | | | | | | | | | Commit 0aead42fdf51 ("navigation: Add is available (#1847)") added the ability to draw the app icon in grey and in a disabled state when some prerequisits were not met. Only the Navigation app was using this mechanism due to its icons being stored in the external memory and possibly missing. Commit 63e0c4f4efb0 ("Application selection at build time") broke this by always setting the state as true: for (const auto& userApp : userApps) { apps[i++] = Screens::Tile::Applications {userApp.icon, userApp.app, true}; } Fix this by creating an isAvailable() strcuture in the app classes, similar to how the Watchfaces handle the same problem of checking availability.
* Refactor doNotGoToSleep to a wakelock countermark90642024-09-211-1/+2
|
* Alarm: Replace clock icon with bellVictor Kareh2024-02-121-1/+1
|
* Watch face selection with CMakeJean-François Milants2023-12-231-1/+1
| | | | Move displayapp/Apps.h into a header only library (to make the integration easier in InfiniSim.
* Fix code formattingJean-François Milants2023-11-191-3/+7
|
* Application selection at build timeJean-François Milants2023-11-191-8/+18
| | | | | | | A list of "user applications" is built at compile time. It contains all the info needed to create the application at runtime (ptr to a create() function) and to display the app in the application menu. All applications declare a TypeTrait with these information. When a new app must be loaded, DisplayApp first check if this app is a System app (in which case it creates it like it did before). If it's not a System app, it looks for the app in the list of User applications and creates it if it found it. Those changes allow to more easily add new app and to select which app must be built into the firmware. Switch to C++20 (and fix a few issues in SpiMaster.cpp and Watchdog.cpp.
* screens: Remove unused DisplayApp parametersRiku Isokoski2023-02-251-2/+1
|
* SystemTask: Move MotorController to DisplayAppRiku Isokoski2023-02-251-1/+3
| | | | | Vibrations should be associated with something happening on the UI. Therefore SystemTask should not be controlling the motor.
* Remove clockType variable by checking for nullptr instead.Riku Isokoski2022-08-021-2/+2
| | | | Saves a few bytes
* Use Counter widget in AlarmRiku Isokoski2022-08-021-6/+8
|
* Apply clang-format to all C++ filesFinlay Davidson2022-06-051-2/+2
|
* Improved alarm alert handlingRiku Isokoski2022-02-131-2/+8
|
* Alarm: Change checkable button for a switchRiku Isokoski2022-02-121-4/+4
|
* Added alarm 12 hour interfaceEli Weiss2022-01-311-3/+4
|
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-151-2/+2
| | | | | | | 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.
* Fix Alarm app crashing on buttonpressRiku Isokoski2021-11-091-1/+3
|
* Fixes based on code reviewsMaxim Leshchenko2021-09-291-0/+1
|
* Alarm: Close the popup with information about the time until alarm with the ↵Maxim Leshchenko2021-09-281-0/+1
| | | | | | back button Previously, pressing the back button would close the alarm app anyway. Now if you press on it and the popup with information is open, it will first close and the second press will close the application
* Fixes per Riksu9000's feedbackMark Russell2021-09-161-3/+4
|
* License header fix, add missing bracesMark Russell2021-09-131-1/+5
|
* Fixes based on code reviews (formatting, UI code)Mark Russell2021-09-131-19/+37
|
* Created basic alarm appMark Russell2021-09-101-0/+31