Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance: Rework layout of progress pie and recording dot #975

Merged
merged 4 commits into from
Feb 3, 2024

Conversation

wutschel
Copy link
Collaborator

Description

This PR removes further magic numbers, slightly changes the layout itself and reduces code duplication by introducing a helper method as suggested in earlier reviews. It needs to be updated once #974 is merged.

Summary for release notes

Maintenance: Rework layout of progress pie and recording dot

@wutschel wutschel marked this pull request as ready for review February 3, 2024 14:24
@wutschel
Copy link
Collaborator Author

wutschel commented Feb 3, 2024

Let me now rebase this one.

@kambala-decapitator
Copy link
Collaborator

Let me now rebase this one.

should I wait with merging #974?

@wutschel
Copy link
Collaborator Author

wutschel commented Feb 3, 2024

should I wait with merging #974?

No, you can move ahead.

This also removes another magic number.
Introduce a define for the time label height. Place the progress pie in the middle of the residual vertical free space below the time label.
@wutschel
Copy link
Collaborator Author

wutschel commented Feb 3, 2024

Ok, there is still something (slightly but visibly) off with the vertical center of the recording icon. But this PR does not change the layout, this is already present in the code on master. Let's move ahead with reviewing.

Copy link
Collaborator

@kambala-decapitator kambala-decapitator left a comment

Choose a reason for hiding this comment

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

Ok, there is still something (slightly but visibly) off with the vertical center of the recording icon

do you want to fix it in this PR or let's merge?

@wutschel
Copy link
Collaborator Author

wutschel commented Feb 3, 2024

I will have it in 1 hour.

This avoids code duplication when creating and adding subviews for the progress pie and the related timer icon.
@wutschel
Copy link
Collaborator Author

wutschel commented Feb 3, 2024

Added (and squashed) a small fix which places the center of the recording icon correctly above the progress pie.

@kambala-decapitator kambala-decapitator merged commit cf1f224 into xbmc:master Feb 3, 2024
@wutschel wutschel deleted the rework_progresspie branch February 3, 2024 17:51
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.

None yet

2 participants