How to display arc indicator with different colors

Similar issue here. I have done the same Workaround but on the Display the colors doesn’t fits. I use the T-Display S3 Board (ESP32 S3) from Lilygo. Any solutions here ?
In the Editor it works fine.