In my dashboard 2 I use a ui-gauge widget, of the battery-level type, to display the percentage of battery charge of a SmartPhone that is used to monitor some information.
The widget works well, but I would like to be able to change the color of the percentage which is currently white or black depending on the aforementioned percentage.
The percentage of charge is almost always between 70 and 80% (when it drops below 70%, the socket on which the power supply is connected is turned on via MQTT and then turned off when it reaches 80%).
I have not been able to find any parameter (including a dynamic one) to be able to do this. The white is difficult to read.
Is it possible? If so, what information should I use?
Just as an example, this is what appears to me:
Because the percentage is almost always between 70-80%, the text color is always white.
In some circumstances (when I don't receive data from SmartPhone) I change the segments color in red and I see a black text color that is much more readable.
Thanks.