some fixes, more debug infomation
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user