Skip to content

PineTimeStyle step gauge bugfix#468

Merged
JF002 merged 1 commit intoInfiniTimeOrg:developfrom
kieranc:pinetimestyle-gaugefix
Jul 11, 2021
Merged

PineTimeStyle step gauge bugfix#468
JF002 merged 1 commit intoInfiniTimeOrg:developfrom
kieranc:pinetimestyle-gaugefix

Conversation

@kieranc
Copy link
Copy Markdown
Contributor

@kieranc kieranc commented Jul 6, 2021

The step gauge seems to have issues if the range is over 100, so this change sets the gauge range to 100 and calculates the step count as a percentage of the step goal to show progress.

Edit for a bit more context. Previously I was scaling the step gauge by adjusting the range, so a step goal of 13000 would make the range of the gauge 0-130, which resulted in only 9 divisions appearing. I'm not sure why this happened, but this fix changes the approach by setting the gauge range to 0-100 always, then calculating the needle position/progress as a percentage of the step goal.

@kieranc kieranc changed the title Change step gauge range to 100 and calculate progress as percantage Change step gauge range to 100 and calculate progress as percentage Jul 6, 2021
@kieranc kieranc changed the title Change step gauge range to 100 and calculate progress as percentage PineTimeStyle step gauge bugfix Jul 6, 2021
@JF002 JF002 added this to the Version 1.3 milestone Jul 9, 2021
@JF002
Copy link
Copy Markdown
Collaborator

JF002 commented Jul 11, 2021

Thanks!

@JF002 JF002 merged commit 6a91b83 into InfiniTimeOrg:develop Jul 11, 2021
@kieranc kieranc deleted the pinetimestyle-gaugefix branch July 12, 2021 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants