refactor(btn, img): rename btn to button and img to image

This commit is contained in:
Gabor Kiss-Vamosi
2023-09-14 20:12:31 +02:00
parent e91786ce49
commit 09c12d0f9c
366 changed files with 3271 additions and 3222 deletions

View File

@@ -4,7 +4,7 @@
/**
* Style a button from scratch
*/
void lv_example_btn_2(void)
void lv_example_button_2(void)
{
/*Init the style for the default state*/
static lv_style_t style;
@@ -51,7 +51,7 @@ void lv_example_btn_2(void)
lv_style_set_transition(&style_pr, &trans);
lv_obj_t * btn1 = lv_btn_create(lv_scr_act());
lv_obj_t * btn1 = lv_button_create(lv_scr_act());
lv_obj_remove_style_all(btn1); /*Remove the style coming from the theme*/
lv_obj_add_style(btn1, &style, 0);
lv_obj_add_style(btn1, &style_pr, LV_STATE_PRESSED);