Good day!
Im still working with GUIGuider1.1 and used the following approach to set the screen's background
Ive created a new style, set its background, and added the style to the screen defined by GUIGuider.
Attached the code as in the screen definition file created by GUIGuider.
void setup_scr_scr_info(lv_ui *ui){
//Write codes scr_info
ui->scr_info = lv_obj_create(NULL, NULL);
//GvB added to set screen background to dark green : begin.....
static lv_style_t style_scr_info;
lv_style_set_bg_color(&style_scr_info, LV_STATE_DEFAULT, lv_color_hex(0x008800));
lv_obj_add_style(ui->scr_info, LV_OBJ_PART_MAIN, &style_scr_info);
//GvB added to set screen background end.....
//Write codes scr_info_btn_Settings
ui->scr_info_btn_Settings = lv_btn_create(ui->scr_info, NULL);
//Write style LV_BTN_PART_MAIN for scr_info_btn_Settings
static lv_style_t style_scr_info_btn_Settings_main;
lv_style_init(&style_scr_info_btn_Settings_main);
A TechExplorer working with Embedded Software and Electronics in Agriculture and Alternative Energy