aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/StopWatch.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fixed issues found by the test-format CI jobcodingjourney2025-11-041-3/+2
|
* render accurate time at pausecodingjourney2025-11-041-0/+1
|
* improved naming of lap-related fields and methodscodingjourney2025-11-041-5/+5
|
* lap storage as CircularBuffer, minor fixescodingjourney2025-11-041-1/+1
|
* minor fixes:codingjourney2025-11-041-10/+12
| | | | | | | | | * more consistent function names * lapCapacity as constexpr * LastLap returns std::optional * simplified handling of TickType_t values * removed unused methods * minor fix in lap rendering
* StopWatch: add persistenceJan Hustak2025-11-041-83/+95
| | | | | # Conflicts: # src/displayapp/screens/StopWatch.h
* Refactor doNotGoToSleep to a wakelock countermark90642024-09-211-4/+3
|
* Simple Weather Service - code cleaning and improvementsJean-François Milants2023-12-231-2/+0
| | | | | | | Add missing icons (heavy clouds, thunderstorm, snow). Remove unneeded comparison operator (!=), improve conversion of Timestamp and MessageType, order includes. Fix typo in documentation. Remove not related change in StopWatch.
* SimpleWeather service : new weather implementationJean-François Milants2023-12-231-0/+2
| | | | | | | | | | This new implementation of the weather feature provides a new BLE API and a new weather service. The API uses a single characteristic that allows companion apps to write the weather conditions (current and forecast for the next 5 days). The SimpleWeather service exposes those data as std::optional fields. This new implementation replaces the previous WeahterService. The API is documented in docs/SimpleWeatherService.md.
* StopWatch: Add an extra space to the string without the hourMingjie Shen2023-12-011-1/+1
| | | | so that it's just as long as with the hour.
* Fix potential buffer overflows when calling sprintfMingjie Shen2023-12-011-3/+3
| | | | | | | | | | 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.
* stopwatch: Add hours tracking (#1692)fossison2023-04-161-4/+24
| | | | | | | | Stopwatch application : add hours tracking --------- Co-authored-by: fossison <fossison@mailbox.org> Co-authored-by: Jean-François Milants <jf@codingfield.com>
* screens: Remove unused DisplayApp parametersRiku Isokoski2023-02-251-1/+1
|
* screens: Remove explicit Screen constructorsRiku Isokoski2023-02-251-1/+1
| | | | | This constructor didn't do anything since DisplayApp reference was removed from the Screen base class.
* stopwatch: Update UIRiku Isokoski2023-02-011-49/+82
| | | | | | The time used to be yellow while paused. Changing it to white made the paused state less distinct. Blinking the time while paused makes the state distinct again.
* Centralize most color definitions (#1258)Riku Isokoski2022-08-161-6/+7
|
* Simplified stopwatch lap bufferRiku Isokoski2022-08-021-41/+21
| | | | Overriding the earlier laps doesn't seem like a good idea.
* Theme cleanup (#1256)Riku Isokoski2022-07-311-4/+0
| | | Remove unnecessary comments, styles, colors, overrides. Fix arc colors
* Apply clang-format to all C++ filesFinlay Davidson2022-06-051-2/+6
|
* 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-8/+8
| | | | | This change will increase the color accuracy of the PineTime and make UI development with the simulator easier.
* Use centisecondsRiku Isokoski2022-04-251-4/+5
|
* Stopwatch fixesRiku Isokoski2022-04-251-34/+19
|
* Replace lv_label_set_text where possibleRiku Isokoski2022-04-181-14/+14
|
* StopWatch: cleanup unused includes and use relative to src includesReinhold Gschweicher2022-01-261-6/+3
|
* 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 refresh_reworkRiku Isokoski2021-08-281-2/+2
|\
| * New touch handler, with issuesRiku Isokoski2021-07-151-2/+2
| |
* | Set remaining default periods to LV_DISP_DEF_REFR_PERIODRiku Isokoski2021-07-191-1/+1
| |
* | Refresh reworkRiku Isokoski2021-07-191-6/+6
|/
* Improve stopwatch (#432)Riku Isokoski2021-07-041-108/+79
| | | | | | | * Improve stopwatch more * Make sure sleep gets reenabled * Cleanup and clang-format
* Keep button visible, but disabledRiku Isokoski2021-05-261-3/+9
|
* improve ui and optimize codeRiku Isokoski2021-05-261-18/+17
|
* Fix a possible double free in StopWatch::Refresh.Martin Ashby2021-05-031-1/+2
| | | | | | | | | | The lv_obj_del is called on btnStopLap when transitioning to the initial state, however the variable isn't then set to null. A subsequent call to Refresh would attempt to delete the already freed object. This could be triggered by stopping the stop watch, then pressing the physical button on the watch. Fixes https://github.com/JF002/InfiniTime/issues/315
* Reformatted all the files according to clang-format styleAvamander2021-04-241-7/+17
|
* Fix formatting issue on the lap counter in Stopwatch (display lap counter on ↵Jean-François Milants2021-04-201-2/+2
| | | | 2 characters).
* Fix formatting issue on the lap counter in Stopwatch.Jean-François Milants2021-04-191-2/+2
|
* Stopwatch: improve variable namingPeetz0r2021-04-171-5/+5
| | | | msec => hundredths
* Stopwatch: improve number formattingPeetz0r2021-04-171-4/+4
|
* Big UI and navigation RewriteJoaquim2021-04-041-11/+17
| | | | | | | | | | | 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...
* Reworked based on PR comments.panky-codes2021-03-201-21/+21
|
* Removed unused variables. Tested.panky-codes2021-03-151-5/+5
|
* Increased the size of the button and realigned the layout a bit. Tested.panky-codes2021-03-131-5/+7
|
* Added some comments for clarity. Ready for review. Tested.panky-codes2021-03-131-1/+13
|
* Stopwatch completed. Ready for PRpanky-codes2021-03-131-13/+3
|
* Adding laps completed.panky-codes2021-03-131-4/+8
|
* Laps introduced. Tested. Need to change the icon.panky-codes2021-03-121-5/+33
|
* Added a button for stop lap. Logic works. Need to implement symbol and ↵panky-codes2021-03-121-7/+47
| | | | buffer for lap
* Added play/pause button.panky-codes2021-03-111-7/+51
|
* Changed the clock source. Stopwatch works. Need to add butttons.panky-codes2021-03-111-8/+25
|