refactor: scr -> screen, act->active, del->delete, remove in obj_clear_flag/state
This commit is contained in:
@@ -9,7 +9,7 @@ void lv_example_qrcode_1(void)
|
||||
lv_color_t bg_color = lv_palette_lighten(LV_PALETTE_LIGHT_BLUE, 5);
|
||||
lv_color_t fg_color = lv_palette_darken(LV_PALETTE_BLUE, 4);
|
||||
|
||||
lv_obj_t * qr = lv_qrcode_create(lv_scr_act());
|
||||
lv_obj_t * qr = lv_qrcode_create(lv_screen_active());
|
||||
lv_qrcode_set_size(qr, 150);
|
||||
lv_qrcode_set_dark_color(qr, fg_color);
|
||||
lv_qrcode_set_light_color(qr, bg_color);
|
||||
|
||||
@@ -5,7 +5,7 @@ import display_driver
|
||||
bg_color = lv.palette_lighten(lv.PALETTE.LIGHT_BLUE, 5)
|
||||
fg_color = lv.palette_darken(lv.PALETTE.BLUE, 4)
|
||||
|
||||
qr = lv.qrcode(lv.scr_act())
|
||||
qr = lv.qrcode(lv.screen_active())
|
||||
qr.set_size(150)
|
||||
qr.set_dark_color(fg_color)
|
||||
qr.set_light_color(bg_color)
|
||||
|
||||
Reference in New Issue
Block a user