ooflet / Mi-Create

Unofficial watchface creator for Xiaomi wearables ~2021 and above
https://ooflet.github.io/docs
GNU General Public License v3.0
48 stars 4 forks source link

Decimal point in digital numbers #9

Closed vonfritz closed 3 months ago

vonfritz commented 6 months ago

In some cases (Distance travelled) you have the possibility to display the decimals. To do this you need to add on 11 digital numbers of which the eleventh is the point and set the digits to 20. Currently only possible by manually editing the XML file. It would be nice if this feature could be implemented

Chriz76 commented 6 months ago

@vonfritz thank you. How did you find this solution? Is there some kind of spec document and maybe more options?

vonfritz commented 6 months ago

@vonfritz thank you. How did you find this solution? Is there some kind of spec document and maybe more options?

I've read it in some place that I can't remember now. No documentation. If you put 30 or 40 digits it should display the smaller unit, you have to try.

vonfritz commented 3 months ago

Hi @ooflet Have you tested your solution? does not work for me sorry.

ooflet commented 3 months ago

Could you provide a .fprj file with a working example of decimal numbers to compare?

vonfritz commented 3 months ago

I attach a simple "Hack" patch to be able to use your application to do decimals and a complete working compiled example for the S3. example.tar.gz diff.patch.gz

ooflet commented 3 months ago

Ah I see, I misunderstood it sorry. I've applied your patch for now, will work on a better solution 🙂