Skip to content

Conversation

@tituscmd
Copy link
Contributor

@tituscmd tituscmd commented Jan 18, 2025

Hey everybody!

This PR is made to center the "Start"/"Pause" text on the button in the timer app. The previous implementation created the text object and aligned it to the button object, this implementation creates the text object with a pointer to the button object and thus makes it centered at all times!

Here's a screenshot of InfiniEmu running it:
Screenshot_2025-01-18_15-29-43

@github-actions
Copy link

github-actions bot commented Jan 18, 2025

Build size and comparison to main:

Section Size Difference
text 375812B -16B
data 948B 0B
bss 22536B 0B

Run in InfiniEmu

@tituscmd tituscmd changed the title Center timer button correctly Center text on timer button Jan 18, 2025
@mark9064 mark9064 added enhancement Enhancement to an existing app/feature maintenance Background work labels Jan 23, 2025
Copy link
Member

@mark9064 mark9064 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely a nicer way to do it

@mark9064 mark9064 added this to the 1.16.0 milestone Feb 14, 2025
@minacode
Copy link
Contributor

@tituscmd, I think this is ready to merge once you delete the one commented-out line @mark9064 pointed out.

@mark9064, would be fine from my side if you decided to do it yourself. I will approve it either way.

@tituscmd
Copy link
Contributor Author

@tituscmd, I think this is ready to merge once you delete the one commented-out line @mark9064 pointed out.

@mark9064, would be fine from my side if you decided to do it yourself. I will approve it either way.

I'll be home in about 15 minutes and then I'll do that for sure! 🙂

@tituscmd
Copy link
Contributor Author

tituscmd commented May 14, 2025

@tituscmd, I think this is ready to merge once you delete the one commented-out line @mark9064 pointed out.
@mark9064, would be fine from my side if you decided to do it yourself. I will approve it either way.

I'll be home in about 15 minutes and then I'll do that for sure! 🙂

I guess that 15 minutes was quite the underestimate 😅
Should be all done now!

@minacode minacode merged commit bb8923b into InfiniTimeOrg:main May 16, 2025
7 checks passed
JustScott pushed a commit to JustScott/InfiniTime that referenced this pull request Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement to an existing app/feature maintenance Background work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants