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

Make PlayPauseButton size configurable #1040

Open
ChopinDavid opened this issue Jan 3, 2025 · 2 comments · May be fixed by #1041
Open

Make PlayPauseButton size configurable #1040

ChopinDavid opened this issue Jan 3, 2025 · 2 comments · May be fixed by #1041
Assignees
Labels
enhancement New feature or request

Comments

@ChopinDavid
Copy link

Is your feature request related to a problem? Please describe.
We are using the play pause button alongside CurrentPosition, ProgressBar, etc. at the bottom edge of the video player. The PlayPauseButton has a forced size of 60.0. The button looks way too large in this context.

Describe the solution you'd like
Give PlayPauseButton constructor an optional argument that specifies the button's size.

Describe alternatives you've considered
N/a

Additional context
N/a

@ChopinDavid ChopinDavid added the enhancement New feature or request label Jan 3, 2025
@julianfalcionelli
Copy link

@ChopinDavid, is there a way to customize the Play/Pause button in the center? I can only customize the one placed in the bottom actions.

@ChopinDavid
Copy link
Author

ChopinDavid commented Feb 5, 2025

@julianfalcionelli Sorry, just now seeing your comment. I don't really maintain this project, just made this and a couple of other PRs.

That being said, it does seem that the PlayPauseButton that appears in the center of the player is hardcoded into the YoutubePlayer widget, that is, you cannot customize this button. It may make sense to make a change/PR to add an optional and configurable Widget that can be passed into YoutubePlayer in place of the hard coded PlayPauseButton?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants