Skip to content

Allow OSD progress bar to scale for large text sizes #4187

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

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

svobs
Copy link
Contributor

@svobs svobs commented Jan 22, 2023


Description:

Was about to file a bug for this, but found that someone already filed this as an enhancement request.

Not sure why the progress bar was given this fixed width constraint; its width is already implicitly specified by virtue of being inside an NSStackView, and if the intent was to allow widths only up to 150 points, it's not the most reliable way to do it. Probably it was an artifact of some earlier development which was forgotten about.

@low-batt low-batt linked an issue Feb 21, 2023 that may be closed by this pull request
Copy link
Contributor

@low-batt low-batt left a comment

Choose a reason for hiding this comment

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

Reproduced the problem with the OSD progress bar being short when when a larger text size is configured. This also means the progress bar is too long if a smaller text size is configured.

I then pulled this PR, built IINA and tested. All looks good to me.

@uiryuu uiryuu merged commit ac6b964 into iina:develop Mar 24, 2023
@uiryuu
Copy link
Member

uiryuu commented Mar 24, 2023

It was probably intentional, but I think there's no reason to keep that fixed 150 point size.

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.

Have OSD progress bar width grow with text size changes
3 participants