I want show the text only in table widget ,and hide the table,what should I need to to?

envirment: MCU STM32H7 series\lvgl V9x
I created a table widget,and set cell with text,now I need to set the table fully transparent,text no transparent,what shoud I do?
this is what i done form now
code:
lv_obj_set_style_opa(home_page_table_ups_table_body.this_ptr, LV_OPA_10, LV_PART_MAIN|LV_STATE_DEFAULT);
lv_obj_set_style_opa(home_page_table_ups_table_body.this_ptr, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
this not work ,both table and text is transparent

Hi @DRK,

Thank you for you message.

You need to set LV_OPA_TRANSP on both LV_PART_MAIN (table background) and LV_PART_ITEMS (cell backgrounds), while keeping text_color and text_opa at full opacity on LV_PART_ITEMS

static lv_style_t style_main, style_items;

lv_style_init(&style_main);
lv_style_set_bg_opa(&style_main, LV_OPA_TRANSP); 
lv_style_set_border_opa(&style_main, LV_OPA_TRANSP);

lv_style_init(&style_items);
lv_style_set_bg_opa(&style_items, LV_OPA_TRANSP);  
lv_style_set_border_opa(&style_items, LV_OPA_TRANSP);
lv_style_set_text_color(&style_items, lv_color_black()); 
lv_style_set_text_opa(&style_items, LV_OPA_COVER);

lv_obj_t *table = lv_table_create(lv_screen_active());
lv_table_set_row_count(table, 3);
lv_table_set_column_count(table, 2);
lv_table_set_cell_value(table, 0, 0, "Metric");
lv_table_set_cell_value(table, 0, 1, "Value");
lv_table_set_cell_value(table, 1, 0, "Latency");
lv_table_set_cell_value(table, 1, 1, "14 ms");

lv_obj_add_style(table, &style_main, LV_PART_MAIN);
lv_obj_add_style(table, &style_items, LV_PART_ITEMS);