Screen transitions and display background

Hi,

I’d like to let you know that I implemented a screen transition feature.

So far screens couldn’t be positioned but with this feature, you can change screen with animation. More info here.
Example:


  lv_obj_t * scr1 = lv_scr_act();
  lv_obj_t *btn = lv_btn_create(scr1, NULL);
  lv_obj_t *label = lv_label_create(btn, NULL);
  lv_label_set_text(label, "Screen 1");
  lv_obj_set_style_local_bg_color(scr1, LV_OBJ_PART_MAIN, 0, LV_COLOR_YELLOW);

  lv_obj_t * scr2 = lv_obj_create(NULL, NULL);
  btn = lv_btn_create(scr2, NULL);
  label = lv_label_create(btn, NULL);
  lv_label_set_text(label, "Screen 2");

  lv_scr_load_anim(scr2, LV_SCR_LOAD_ANIM_NONE, 1000, 500, false);

scr


And other new feature is the display background which makes possible to use a common background color or image. It is visible if the screen is transparent (bg_opa style property is not LV_OPA_COVER)

Read more here.


These features are in the dev branch lvgl and will be part of v7.2.0.

:100:It looks very good

1 Like