refactor: scr -> screen, act->active, del->delete, remove in obj_clear_flag/state

This commit is contained in:
Gabor Kiss-Vamosi
2023-10-12 20:37:27 +02:00
parent 0ff2d1c2e4
commit 9ec5417dd3
468 changed files with 1330 additions and 1288 deletions

View File

@@ -13,7 +13,7 @@ class NewTheme(lv.theme_t):
self.style_button.set_border_width(3)
# This theme is based on active theme
th_act = lv.theme_get_from_obj(lv.scr_act())
th_act = lv.theme_get_from_obj(lv.screen_active())
# This theme will be applied only after base theme is applied
self.set_parent(th_act)
@@ -25,7 +25,7 @@ class ExampleStyle_14:
# Extending the current theme
#
button = lv.button(lv.scr_act())
button = lv.button(lv.screen_active())
button.align(lv.ALIGN.TOP_MID, 0, 20)
label = lv.label(button)
@@ -33,7 +33,7 @@ class ExampleStyle_14:
self.new_theme_init_and_set()
button = lv.button(lv.scr_act())
button = lv.button(lv.screen_active())
button.align(lv.ALIGN.BOTTOM_MID, 0, -20)
label = lv.label(button)