WIP: Porting Pebble UI Examples to RebbleOS (UI ❤)#114
Closed
tertty wants to merge 40 commits intopebble-dev:masterfrom
Closed
WIP: Porting Pebble UI Examples to RebbleOS (UI ❤)#114tertty wants to merge 40 commits intopebble-dev:masterfrom
tertty wants to merge 40 commits intopebble-dev:masterfrom
Conversation
Member
Author
|
PR is super out of date/need to be completely reworked due to advancements in project. Closing out 👀 |
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.
The Then
The goal of this PR is to successfully port and (more importantly) adapt some elements from the pebble-examples GitHub repo, ui-patterns.
The Now (as of 5/18)
Currently, no UI elements are finished but some are in a testable state. All early UI elements have tests in the test app (though whether they're written correctly is yet to be determined...). Code is buggy, style is inconsistent, and comments are sparse.
Customization is a huge part of this goal, why must all checkbox windows be the same? Currently supported functions are listed next to the UI element.
Checkbox Window
CheckboxWindow *checkbox_window_create(uint16_t max_items, CheckboxWindowCallbacks checkbox_window_callbacks);void checkbox_window_push(CheckboxWindow *checkmate, bool animated);void checkbox_window_pop(CheckboxWindow *checkmate, bool animated);void checkbox_add_selection(CheckboxWindow *checkmate, char *selection_label);void checkbox_set_selection_colors(CheckboxWindow *checkmate, GColor background, GColor foreground);Callback function addedRadio Button Window
RadiobuttonWindow *radiobutton_window_create(uint16_t max_items, RadiobuttonWindowCallbacks radiobutton_window_callbacks);void radio_button_window_push(RadiobuttonWindow *radio_star, bool animated);void radio_button_window_pop(RadiobuttonWindow *radio_star, bool animated);void radiobutton_add_selection(RadiobuttonWindow *radio_star, char *selection_label);void radiobutton_set_selection_colors(RadiobuttonWindow *radio_star, GColor background, GColor foreground);Callback function addedProgress Bar Window (Using Progress Layer)
None yet :(Dialog Window
dialogchoice_window_set_message()Pin Window
None yet :(The Future
UI elements to be added:
PR will be updated as major improvements are made.