Can't edit item text color in ItemList

Godot Version

4.6

Question

I mess with the style of ItemList. I want to change the background color and the text color of the item when it is disabled (like a separator in PopupMenu)

I didn’t find a way through themes but I found ItemList.set_item_custom_bg_color(). However it seems there is no equivalent for text color.

It would be nice to me to have more control on the style of the items, for exemple through Theme resource directly

Did it miss something ? Thanks by advance.

Set the foreground color to the color you want for the text. For example to set the second item in the list, to blanched almond :

list.set_item_custom_fg_color(1,Color.BLANCHED_ALMOND)

Ow, it worked. I tried this setting but it didn’t work the first time, I guess I missed something.
Also, why set_item_custom_fg_color and not set_item_custom_text_color ?