summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Metronome.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-01-05Implement a return app stackRiku Isokoski1-2/+1
Each opened app (screen) is pushed on a stack, which is then popped from when returning instead of hard coded "previous apps". Return swipe and refresh directions are automatically determined from the app transition.
2022-09-17Disable value_strRiku Isokoski1-3/+4
value_str is a way to add text on a button without a separate label. This saves having an extra label object, but uses more memory and is removed in LVGL8
2022-08-16Centralize most color definitions (#1258)Riku Isokoski1-1/+2
2022-05-08Fix dropdown graphical issues.Riku Isokoski1-2/+0
The scrollbar would go out of bounds if DROPDOWN_PART_LIST had uneven padding. Also enable clip_corner feature to stop the selected item from overflowing.
2022-04-25Tweak gamma on ST7789 and match UI colorsRiku Isokoski1-1/+1
This change will increase the color accuracy of the PineTime and make UI development with the simulator easier.
2021-12-30Add missing breakRiku Isokoski1-0/+1
2021-12-30Improve gesture consistency across the firmwareRiku Isokoski1-0/+14
2021-11-15Update includes to to be relative to src directoryReinhold Gschweicher1-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.
2021-09-16Fix unsigned/signed comparison warning in Metronome.cppReinhold Gschweicher1-1/+1
`xTaskGetTickCount()` returns a `TickType_t`, which is defined as an `uint32_t`. This is compared to the `bpm` variable, which is a `int16_t` in the range of 40 to 220 as defined in the constructor. ```cpp lv_arc_set_range(bpmArc, 40, 220); ``` Just assume that `bpm` is greater than 0, as this would result in a divison by zero or negative values, which would unintentionally underflow to a very large number.
2021-08-28Merge branch 'develop' into refresh_reworkRiku Isokoski1-3/+0
2021-08-18Merge branch 'develop' into new_touch_handlerRiku Isokoski1-75/+44
2021-08-15Merge branch 'develop' into refresh_reworkRiku Isokoski1-2/+2
2021-08-14Merge branch 'call-improvements' of https://github.com/Riksu9000/InfiniTime ↵Jean-François Milants1-2/+2
into Riksu9000-call-improvements # Conflicts: # src/displayapp/screens/Metronome.cpp
2021-08-14Merge branch 'develop' into refresh_reworkRiku Isokoski1-75/+44
2021-08-14Improve metronomeRiku Isokoski1-75/+44
2021-08-01ImprovementsRiku Isokoski1-2/+2
2021-07-19Refresh reworkRiku Isokoski1-2/+4
2021-07-16Fix most issuesRiku Isokoski1-1/+1
2021-07-15New touch handler, with issuesRiku Isokoski1-3/+0
2021-06-12Fix build issues since Metronome app has been merged.Jean-François Milants1-3/+3
2021-06-12add basic metronome app (#409)Bryton Hall1-0/+169
* add basic metronome app * add bpb, tap to bpm, update widgets * use event pressed for bpm tap * move case statement break to the right place * narrow bpm selection range, override touch events * fix arc knob style * re-enable sleeping in destructor