Add menu wrap around#145
Merged
Merged
Conversation
Menu's now wrap around in both directions
jwise
reviewed
Feb 27, 2021
| } | ||
|
|
||
| static MenuIndex get_next_index(MenuLayer *menu_layer, bool up) | ||
| static MenuIndex get_next_index(MenuLayer *menu_layer, ClickRecognizerRef ref, bool up) |
Contributor
There was a problem hiding this comment.
Architectural nit: I would probably make this a bool do_wrap that gets passed through to this layer (similar to the bool up), rather than passing the ClickRecognizerRef through.
tertty
pushed a commit
to tertty/RebbleOS
that referenced
this pull request
Mar 4, 2021
* Add menu wrap around Menu's now wrap around in both directions * Don't infinite scroll if button is being held
tertty
pushed a commit
to tertty/RebbleOS
that referenced
this pull request
Mar 4, 2021
Add menu wrap around (pebble-dev#145) * Add menu wrap around Menu's now wrap around in both directions * Don't infinite scroll if button is being held Set alignment to MenuRowAlignCenter on submenu return (pebble-dev#138) * Set alignment to MenuRowAlignCenter on submenu return * Handle setting non-animated content offsets Get RebbleOS compiling on Python 3.9 & Arch (pebble-dev#137) * Get RebbleOS compiling on Python 3.9 & Arch * stm32_crc: add backwards compatibility, sigh add switch for python backwards compatibility Add dvb2 (pebble-dev#140) * asterix_vla_dvb2 Initial build config. A lot is probably wrong but it's a start :) * Update UART pin * asterix_vla_dvb2: fix up pinmappings and flash ID number * Add SPI locking mechanism for boards that share SPI interface. Switch vla_dvb2 to ls013b7dh05. * Swap button GPIO pins Correct GPIO pins * Fix asterix build * Remove nrf52_ls013b7dh03 as it's not needed * Add dvb2 to CI * Fix dvb2 make Don't edit make files at 1AM Co-authored-by: Joshua Wise <joshua@joshuawise.com> Notifications - Add "Clear All" option (pebble-dev#148) * Add Clear All to notification app * Use consistent UI styling on notification app Stage changes for the macro PR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Menu's now wrap around in both directions!
Makes navigating long menu's easier!
Helps when one of your buttons is broken!