Skip to content

WIP: Porting Pebble UI Examples to RebbleOS (UI ❤)#114

Closed
tertty wants to merge 40 commits intopebble-dev:masterfrom
tertty:ui_love
Closed

WIP: Porting Pebble UI Examples to RebbleOS (UI ❤)#114
tertty wants to merge 40 commits intopebble-dev:masterfrom
tertty:ui_love

Conversation

@tertty
Copy link
Copy Markdown
Member

@tertty tertty commented Mar 31, 2020

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

image
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 added

Radio Button Window

image
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 added

Progress Bar Window (Using Progress Layer)

Screen-Recording-2020-03-30-at-1 (2)
None yet :(

Dialog Window

Screen-Recording-2020-03-30-at-1 (3)
dialogchoice_window_set_message()

Pin Window

image
None yet :(

The Future

UI elements to be added:

  • List hint message
  • Progress Bar?
  • Message Dialog?

PR will be updated as major improvements are made.

tertty added 30 commits January 21, 2020 15:30
@tertty
Copy link
Copy Markdown
Member Author

tertty commented Mar 4, 2021

PR is super out of date/need to be completely reworked due to advancements in project. Closing out 👀

@tertty tertty closed this Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant