some fixes, more debug infomation

This commit is contained in:
sharandac
2020-08-17 18:54:10 +02:00
parent d8ae6ce506
commit f83400396b
14 changed files with 52 additions and 30 deletions

View File

@@ -41,6 +41,9 @@
typedef struct {
lv_obj_t *app;
lv_obj_t *label;
lv_obj_t *icon_cont;
lv_obj_t *icon;
lv_obj_t *icon_indicator;
lv_coord_t x;
lv_coord_t y;
bool active;

View File

@@ -119,7 +119,7 @@ uint32_t mainbar_add_tile( uint16_t x, uint16_t y ) {
lv_obj_set_pos( tile[ tile_entrys - 1 ].tile, tile_pos_table[ tile_entrys - 1 ].x * LV_HOR_RES , tile_pos_table[ tile_entrys - 1 ].y * LV_VER_RES );
lv_tileview_add_element( mainbar, tile[ tile_entrys - 1 ].tile );
lv_tileview_set_valid_positions( mainbar, tile_pos_table, tile_entrys );
log_d("add tile: x=%d, y=%d", tile_pos_table[ tile_entrys - 1 ].x, tile_pos_table[ tile_entrys - 1 ].y );
log_i("add tile: x=%d, y=%d", tile_pos_table[ tile_entrys - 1 ].x, tile_pos_table[ tile_entrys - 1 ].y );
return( tile_entrys - 1 );
}

View File

@@ -54,7 +54,7 @@ void setup_tile_setup( void ) {
lv_obj_set_hidden( setup_entry[ setup ].setup, true );
log_d("icon screen/x/y: %d/%d/%d", setup / ( MAX_SETUP_ICON_HORZ * MAX_SETUP_ICON_VERT ), setup_entry[ setup ].x, setup_entry[ setup ].y );
log_i("icon screen/x/y: %d/%d/%d", setup / ( MAX_SETUP_ICON_HORZ * MAX_SETUP_ICON_VERT ), setup_entry[ setup ].x, setup_entry[ setup ].y );
}
}

View File

@@ -332,7 +332,6 @@ void statusbar_refresh( void ) {
}
lv_obj_reset_style_list( statusicon[ i ].icon, LV_OBJ_PART_MAIN );
lv_obj_add_style( statusicon[ i ].icon, LV_OBJ_PART_MAIN, statusicon[i].style );
// lv_obj_set_style( statusicon[ i ].icon, statusicon[i].style );
}
}
}