Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for switching screens #57

Merged
merged 1 commit into from
Jan 31, 2023
Merged

Conversation

Fabi019
Copy link
Contributor

@Fabi019 Fabi019 commented Jan 31, 2023

This PR adds support for changing the current screen via the load_scr function based on the lv_disp_load_scr from lvgl.

Example usage:

// Default screen
let mut def_screen = ui.scr_act()?;
// Extra screen
let mut screen = Obj::default();
// ... Add style and widgets to each screen

// Load the extra screen
ui.load_scr(&mut screen);

// Change back to def_screen
ui.load_scr(&mut def_screen);

@rafaelcaricio rafaelcaricio merged commit c1db4e3 into lvgl:master Jan 31, 2023
@rafaelcaricio
Copy link
Collaborator

Thank you! 😃 Merged, but please be aware that I am not actively maintaining this project anymore.

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.

2 participants