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

fix: Increase subtitle font size in fullscreen #5200

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

saymanrifat
Copy link
Contributor

@saymanrifat saymanrifat commented Nov 19, 2023

#5095 fix: Increase subtitle font size in fullscreen

Comment on lines 292 to 296
val fullscreenCaptionsTextSize: Float
get() = PreferenceHelper.getString(
PreferenceKeys.CAPTIONS_SIZE,
"27"
).toFloat()
Copy link
Member

@Bnyro Bnyro Nov 19, 2023

Choose a reason for hiding this comment

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

You didn't add a preference for that yet, so the user can't change it. And I think we should just make the font size 1.5 times bigger in landscape than usually instead of adding a new preference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.

@Bnyro
Copy link
Member

Bnyro commented Nov 19, 2023

I think we should just make the font size 1.5 times bigger in landscape than usually instead of adding a new preference.

@@ -695,11 +695,19 @@ open class CustomExoPlayerView(
if (PlayerHelper.swipeGestureEnabled && this::brightnessHelper.isInitialized) {
Copy link
Member

Choose a reason for hiding this comment

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

Due to this line this will only be executed when swipe gestures are enabled.
Please move this condition around the brightnessHelper.restoreSavedBrightness() calls below to fix this.

Otherwise lgtm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Like this?
Screenshot 2023-11-19 at 3 17 02 PM

Copy link
Member

Choose a reason for hiding this comment

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

Yes, exactly. Please do the same in the else block where brightnessHelper.resetToSystemBrightness() is called, then we're good to merge this 👍

if (isFullscreen) {
if (PlayerHelper.swipeGestureEnabled && this::brightnessHelper.isInitialized) {
brightnessHelper.restoreSavedBrightness()
Copy link
Member

Choose a reason for hiding this comment

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

nit: indentation missing

@Bnyro Bnyro force-pushed the saymanrifat-5095-subtitle-optz branch from 5155965 to 05e9bf2 Compare November 19, 2023 09:58
Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

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

Thank you!

@Bnyro Bnyro merged commit d3d0cc9 into libre-tube:master Nov 19, 2023
3 checks passed
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