tilesfx icon indicating copy to clipboard operation
tilesfx copied to clipboard

"Pulsing" value for CIRCULAR_PROGRESS

Open denkovi1 opened this issue 5 years ago • 1 comments

Thank you for the great library first of all! I have noted something for CIRCULAR_PROGRESS tile. Sometimes the value is "pulsing" - become bigger and smaller when actually the value is not changing. I suppose it is "pulsing" if it becomes more longer than certain length. For example: with this value (21.70mv) it is shown OK: default With value of 433.30mv (one more digit) it starts "pulsing" slightly: default With value of 1111.00mv (two more digit) the "pulsing" is significant: default The more value digits, the more sensitive "pulsing". Is this feature or bug ?

denkovi1 avatar Jan 09 '19 08:01 denkovi1

Yep I also saw that effect and here is the explanation. I change the font size depending on the length of the value text. This is to make sure that the text fits inside of the ring. The problem is that if the value is around the width that the fontsize will change it might start to "pulse" because it is switching the fontsize between different values. A solution to this might be the use of discrete fontsize steps but this is not implemented yet...well and contributions are welcome ;)

HanSolo avatar Jan 09 '19 08:01 HanSolo