aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/settings
Commit message (Collapse)AuthorAgeFilesLines
* Setting to disable DFU and FS access (#1891)Dāvis Mošenkovs2025-09-033-1/+88
| | | | | | | | | | | | | | * Expose SystemTask dependency controllers Expose NotificationManager and Settings for use by the feature in next commit. This is a memory efficient way for accessing SystemTask dependencies from controllers that have SystemTask injected as a dependency. Looks like each direct dependency injection uses 4 bytes RAM. As InfiniTime is close to running out of RAM (using 16 more bytes causes build to fail with "ld: region RAM overflowed with stack") it might be helpful to use this approach more. * Add setting to disable DFU and FS access
* set static text as static text (#2312)lmamane2025-06-121-3/+1
| | | | | and save a few bytes of heap memory Co-authored-by: Lionel Elie Mamane <lionel@mamane.lu>
* Show alarm controller state in status iconJozef Mlich2025-01-052-3/+5
|
* Update Date&Time settings label for "Date & Time"Samuel Dorsaz2024-11-041-1/+1
|
* Remove unused pointer to DisplayApp member variables (#2125)NeroBurner2024-09-296-10/+4
| | | | | | | | In the screens that use `DisplayApp *app` and pass it to a child item, or use the reference just in the constructor. Afterwards the `app` member is not used. So remove it from the private member variables. Completely remove `app` parameter from `SettingDisplay` constructor as it is unused.
* aod: disable while in notification sleepJohn Crawford2024-08-051-3/+3
|
* aod: integrate with display timeoutJohn Crawford2024-08-052-15/+26
|
* feat: always on displayKaffeinatedKat2024-08-052-3/+13
|
* Emit the message BleRadioEnableToggle to DisplayApp only if the enable state ↵JF2024-03-152-3/+4
| | | | | | | of the radio has actually changed. (#2037) This fixes an issue where the BLE connected logo would disappear when opening and closing the BLE setting (without changing it) while InfiniTime was already connected to a companion app. Co-authored-by: JustScott <development@justscott.me>
* Watch face selection using CMakeJean-François Milants2024-01-062-7/+45
| | | | | | The list of watch face to build into the firmware is now set by CMake (-DENABLE_WATCHFACES). Fix SettingWatchFace : convert to index to/from WatchFace when needed.
* Update incorrect icon in weather settingsliamcharger2023-12-301-1/+1
|
* settings: Add settings item for weather formatFintasticMan2023-12-233-2/+93
|
* 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.
* Watch face selection at build timeJean-François Milants2023-12-212-17/+15
| | | | Watch faces can now be selected at buid time. It's implemented in a similar way than the selection of user apps, using a list of watch face description that is generated at build time (consteval, constexpr)
* SettingDisplay: Reduce buffer sizeMingjie Shen2023-12-011-1/+1
| | | | Given that 2^16 / 1000 is 65, we can make the buffer only 3 chars.
* Fix potential buffer overflows when calling sprintfMingjie Shen2023-12-011-1/+1
| | | | | | | | | | 1. Replace sprintf with snprintf, which is safer 2. An unsigned int or unsigned long int requires 11 bytes to print (including the null terminator) 3. Use PRIu16 macro to print uint16_t 4. Format string "#%2d %2d:%02d:%02d.%02d\n" in StopWatch::stopLapBtnEventHandler() requires at least 17 bytes. The 16-byte buffer would clearly be overrun if sprintf were used.
* lowersleep: Implement Lower to Sleep functionality (#827)FintasticMan2023-08-272-4/+5
|
* Refactor watch face to enum (#1339)Max Friedrich2023-04-301-3/+4
| | | | | | | change watch face from int to enum --------- Co-authored-by: minacode <minamoto9@web.de>
* inactivity: Use LVGL inactivity timersRiku Isokoski2023-03-181-1/+0
| | | | | | | | | | | | | | | | | Replace custom FreeRTOS inactivity timers with LVGL inactivity timers. DisplayApp: Trigger display activity on timer done. inactivity: Add additional checks The backlight could be turned on by RestoreBrightness() on ble connect event. inactivity: Trigger activity on screen switch A notification timing out could put the watch to sleep immediately. While this could be ideal behaviour, it was caused by delay in processing the EnableSleeping event and pushing RestoreBrightness to DisplayApp.
* shakewake: Fix names according to style guideFinlay Davidson2023-03-091-4/+4
|
* screens: Add notes about using C++20 featuresRiku Isokoski2023-02-251-0/+1
|
* DateTimeController: Remove SetTime tick parameterRiku Isokoski2023-02-252-11/+3
| | | | | | The systick doesn't need to be updated when setting time. Also removed unused nrf_rtc.h includes.
* screens: Remove unused DisplayApp parametersRiku Isokoski2023-02-2517-28/+16
|
* screens: Remove explicit Screen constructorsRiku Isokoski2023-02-257-9/+7
| | | | | This constructor didn't do anything since DisplayApp reference was removed from the Screen base class.
* screens: Remove displayapp parameter from screenRiku Isokoski2023-02-2512-6/+12
| | | | | | | | The DisplayApp class isn't used in the Screen base class and most screens, so requiring it is pointless. In this commit, DisplayApp pointers were added to screens which use it and the explicit Screen constructor was removed in those screens.
* displayapp: Make Ble references constRiku Isokoski2023-02-242-2/+2
|
* displayapp: Make Battery class references constRiku Isokoski2023-02-242-2/+2
|
* SettingSteps: Update UIRiku Isokoski2023-02-121-5/+13
| | | | Bigger buttons, use new color.
* SettingSteps: Improve goal settingRiku Isokoski2023-02-121-14/+18
| | | | | | Long pressing will change the value by 1000, whereas clicks will change it by 500. This allows setting more precise values, while also making it easier to set any value.
* SettingChimes: Use CheckboxListRiku Isokoski2023-01-292-66/+48
|
* SettingBluetooth: Use CheckboxListRiku Isokoski2023-01-292-79/+42
|
* src: Enable unused parameter warningRiku Isokoski2023-01-244-8/+6
| | | | | | Fix warnings. Some clang-formatting was necessary. DebugPins is unused and was removed.
* Combine Date and Time Settings (#1465)John Quigley2023-01-147-26/+117
| | | | | | Replace separate SettingSetDate and SettingSetTime with a combined screenlist. Add DotIndicators. Similar to PageIndicator, but for use when separating screens instead of pages of a list. Co-authored-by: Riku Isokoski <riksu9000@gmail.com>
* SetingTimeFormat use CheckboxList, reduce duplicationRiku Isokoski2023-01-122-69/+45
|
* Format header filesFinlay Davidson2023-01-094-0/+4
| | | | In my PR updating clang-format, I forgot to also format the headers.
* Update clang-{format,tidy} to 14Finlay Davidson2023-01-041-0/+1
| | | | | Also add configuration options only available in 13 and 14. Fixes warning about -fstack-usage in clang-tidy check.
* Update clang-tidy configuration and fix some warnings (#1474)Riku Isokoski2022-12-181-2/+2
| | | | | Don't enable coding conventions from unrelated projects. Only enable generic checks.
* Optimize SettingWatchFaceRiku Isokoski2022-12-182-40/+41
|
* Optimize SettingWakeUpRiku Isokoski2022-12-182-67/+42
|
* Optimize SettingTimeFormatRiku Isokoski2022-12-182-11/+11
|
* FixElements60072022-11-191-1/+1
| | | Co-authored-by: NeroBurner <pyro4hell@gmail.com>
* Clang formatElements60072022-11-191-6/+4
|
* Update SettingChimes.hElements60072022-11-191-3/+3
|
* Watch face settings : disable watch faces that are not available (external ↵Jean-François Milants2022-10-112-4/+15
| | | | resources are not installed).
* CheckboxList : fix formatting.Jean-François Milants2022-10-111-22/+24
|
* Checkbox list now receives a function pointer to call when the setting has ↵Jean-François Milants2022-10-111-10/+11
| | | | changed. This allow to remove the dependency between CheckBoxList (UI component) with SettingController.
* Merge branch 'watchface-casio-digital-G7710' of ↵Jean-François Milants2022-09-271-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | github.com:ITCactus/InfiniTime into ITCactus-watchface-casio-digital-G7710 # Conflicts: # src/components/settings/Settings.h # src/displayapp/screens/CheckboxList.cpp # src/displayapp/screens/CheckboxList.h # src/displayapp/screens/Clock.cpp # src/displayapp/screens/Clock.h # src/displayapp/screens/settings/SettingWatchFace.cpp
| * fix for week number and days till the end of the yearITCactus2022-06-301-16/+10
| | | | | | | | + formating (clang)
| * post rebase fixesITCactus2022-06-302-57/+36
| |
| * [new watchface] watchface inspired by G7710, with day of year and week ↵ITCactus2022-06-301-4/+9
| | | | | | | | number info