Skip to content

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