chore(format) add formatting for examples & demos, merge test config
This commit is contained in:
@@ -23,7 +23,7 @@ void lv_example_grid_2(void)
|
||||
obj = lv_obj_create(cont);
|
||||
lv_obj_set_size(obj, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
|
||||
lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_START, 0, 1,
|
||||
LV_GRID_ALIGN_START, 0, 1);
|
||||
LV_GRID_ALIGN_START, 0, 1);
|
||||
label = lv_label_create(obj);
|
||||
lv_label_set_text(label, "c0, r0");
|
||||
|
||||
@@ -31,7 +31,7 @@ void lv_example_grid_2(void)
|
||||
obj = lv_obj_create(cont);
|
||||
lv_obj_set_size(obj, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
|
||||
lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_START, 1, 1,
|
||||
LV_GRID_ALIGN_CENTER, 0, 1);
|
||||
LV_GRID_ALIGN_CENTER, 0, 1);
|
||||
label = lv_label_create(obj);
|
||||
lv_label_set_text(label, "c1, r0");
|
||||
|
||||
@@ -39,7 +39,7 @@ void lv_example_grid_2(void)
|
||||
obj = lv_obj_create(cont);
|
||||
lv_obj_set_size(obj, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
|
||||
lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_START, 2, 1,
|
||||
LV_GRID_ALIGN_END, 0, 1);
|
||||
LV_GRID_ALIGN_END, 0, 1);
|
||||
label = lv_label_create(obj);
|
||||
lv_label_set_text(label, "c2, r0");
|
||||
|
||||
@@ -47,7 +47,7 @@ void lv_example_grid_2(void)
|
||||
obj = lv_obj_create(cont);
|
||||
lv_obj_set_size(obj, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
|
||||
lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_STRETCH, 1, 2,
|
||||
LV_GRID_ALIGN_STRETCH, 1, 1);
|
||||
LV_GRID_ALIGN_STRETCH, 1, 1);
|
||||
label = lv_label_create(obj);
|
||||
lv_label_set_text(label, "c1-2, r1");
|
||||
|
||||
@@ -55,7 +55,7 @@ void lv_example_grid_2(void)
|
||||
obj = lv_obj_create(cont);
|
||||
lv_obj_set_size(obj, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
|
||||
lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_STRETCH, 0, 1,
|
||||
LV_GRID_ALIGN_STRETCH, 1, 2);
|
||||
LV_GRID_ALIGN_STRETCH, 1, 2);
|
||||
label = lv_label_create(obj);
|
||||
lv_label_set_text(label, "c0\nr1-2");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user