BambuLabs 3d Printer, set the icon color to the ams tray # color (state color)

I’m new to using the code portion, but I’m wondering if there is a way to set the icon color of a title entity to the color of the state