Update main_tile.cpp
This commit is contained in:
@@ -57,7 +57,7 @@ void main_tile_setup( void ) {
|
||||
lv_style_copy( &datestyle, style);
|
||||
lv_style_set_text_font( &datestyle, LV_STATE_DEFAULT, &Ubuntu_16px);
|
||||
|
||||
clock_cont = lv_obj_create( main_cont, NULL );
|
||||
clock_cont = mainbar_obj_create( main_cont );
|
||||
lv_obj_set_size( clock_cont, LV_HOR_RES , LV_VER_RES / 2 );
|
||||
lv_obj_add_style( clock_cont, LV_OBJ_PART_MAIN, style );
|
||||
lv_obj_align( clock_cont, main_cont, LV_ALIGN_CENTER, 0, 0 );
|
||||
@@ -88,7 +88,7 @@ void main_tile_setup( void ) {
|
||||
lv_obj_align( datelabel, timelabel, LV_ALIGN_OUT_BOTTOM_MID, 0, 0 );
|
||||
|
||||
for ( int widget = 0 ; widget < MAX_WIDGET_NUM ; widget++ ) {
|
||||
widget_entry[ widget ].widget = lv_obj_create( main_cont, NULL );
|
||||
widget_entry[ widget ].widget = mainbar_obj_create( main_cont );
|
||||
widget_entry[ widget ].active = false;
|
||||
lv_obj_reset_style_list( widget_entry[ widget ].widget, LV_OBJ_PART_MAIN );
|
||||
lv_obj_add_style( widget_entry[ widget ].widget, LV_OBJ_PART_MAIN, style );
|
||||
|
||||
Reference in New Issue
Block a user