refactor: scr -> screen, act->active, del->delete, remove in obj_clear_flag/state
This commit is contained in:
@@ -28,7 +28,7 @@ void lv_example_style_11(void)
|
||||
lv_style_set_text_color(&style_warning, lv_palette_darken(LV_PALETTE_YELLOW, 4));
|
||||
|
||||
/*Create an object with the base style only*/
|
||||
lv_obj_t * obj_base = lv_obj_create(lv_scr_act());
|
||||
lv_obj_t * obj_base = lv_obj_create(lv_screen_active());
|
||||
lv_obj_add_style(obj_base, &style_base, 0);
|
||||
lv_obj_align(obj_base, LV_ALIGN_LEFT_MID, 20, 0);
|
||||
|
||||
@@ -37,7 +37,7 @@ void lv_example_style_11(void)
|
||||
lv_obj_center(label);
|
||||
|
||||
/*Create another object with the base style and earnings style too*/
|
||||
lv_obj_t * obj_warning = lv_obj_create(lv_scr_act());
|
||||
lv_obj_t * obj_warning = lv_obj_create(lv_screen_active());
|
||||
lv_obj_add_style(obj_warning, &style_base, 0);
|
||||
lv_obj_add_style(obj_warning, &style_warning, 0);
|
||||
lv_obj_align(obj_warning, LV_ALIGN_RIGHT_MID, -20, 0);
|
||||
|
||||
Reference in New Issue
Block a user