runplus: add ability to focus an individual stat
This allows users to focus on a particular stat - I found when I was running that I couldn't glance at my pace very easily, whereas with this I can leave the pace zoomed/focused as I run.
@halemmerich @thyttan I think you're the main contributors to runplus, what do you think?
I think this can be a good idea (although personally have not felt the need).
I noticed:
- If I zoom in on the "TIME" stat directly after starting the app, and without pressing HW button to "START", the zoomed in time will already have started counting. On the overview this is not the case, there it shows "00:00".
- Some titles, e.g. "CADENCE", don't fit on screen when zoomed in.
Thanks for checking it out - I've improved the drawing to match how its done in the layout code - we only update the zoomed version now when the stat changes (768437219e7d664f5).
This stops the time counting up, but it does mean the initial time shown may differ if the user zooms when paused, since we'll get the value of the time rather than trying to remember what it was when the user paused. To deal with this we now only show a stat if we're active (5eb8f56), which feels like the least hacky approach.
Also I've dropped the title size for long titles such as "cadence" (9b252e9)
Tested this out, works well - I'll merge it later on but give me a shout if you spot anything :)