From 45820b2426074f16d8b5504fad0a2e11b93f9e76 Mon Sep 17 00:00:00 2001 From: chrismcna Date: Mon, 10 Aug 2020 13:09:48 +0100 Subject: [PATCH] Update main_tile.cpp --- src/gui/mainbar/main_tile/main_tile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/mainbar/main_tile/main_tile.cpp b/src/gui/mainbar/main_tile/main_tile.cpp index c10da33..415ba98 100644 --- a/src/gui/mainbar/main_tile/main_tile.cpp +++ b/src/gui/mainbar/main_tile/main_tile.cpp @@ -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 );