Skip to content

player.xml: Rename fullscreen buttons & separate enter/exit#12612

Merged
Stypox merged 2 commits intoTeamNewPipe:refactorfrom
Profpatsch:rename-fullscreen-buttons
Sep 7, 2025
Merged

player.xml: Rename fullscreen buttons & separate enter/exit#12612
Stypox merged 2 commits intoTeamNewPipe:refactorfrom
Profpatsch:rename-fullscreen-buttons

Conversation

@Profpatsch
Copy link
Copy Markdown
Contributor

@Profpatsch Profpatsch commented Sep 7, 2025

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

Their names must have come from a very old version of the app, they both toggle the fullscreen mode and rotate the screen depending on circumstances.

So fullscreenButton -> fullscreenToggleButtonSecondaryMenu because it is only visible in the secondary video menu on some configurations and screenRotationButton -> fullscreenToggleButton because it is the main fullscreen button next to the video progress bar.

Due diligence

Their names must have come from a very old version of the app, they
both toggle the fullscreen mode and rotate the screen depending on
circumstances.

So
`fullscreenButton` -> `fullscreenToggleButtonSecondaryMenu` because it
is only visible in the secondary video menu on some configurations.
and
`screenRotationButton` -> `fullscreenToggleButton` because it is the main
fullscreen button next to the video progress bar.
@github-actions github-actions Bot added the size/small PRs with less than 50 changed lines label Sep 7, 2025
Most usages of `toggleFullscreen` are clear about whether they want to
enter or exit fullscreen, so let’s split the setup into two functions
for easier debugging.

The two remaining uses of `toggleFullscreen` *should* really toggle,
but I’m not 100% sure.

Also rename `onScreenRotationButtonClicked` to
`onFullscreenToggleButtonClicked`, since we renamed the button id
earlier.
@Profpatsch Profpatsch changed the title player.xml: Rename fullscreen buttons player.xml: Rename fullscreen buttons & separate enter/exit Sep 7, 2025
@github-actions github-actions Bot added size/medium PRs with less than 250 changed lines and removed size/small PRs with less than 50 changed lines labels Sep 7, 2025
@AudricV AudricV added player Issues related to any player (main, popup and background) code quality Improvements to the codebase to improve the code quality labels Sep 7, 2025
@Stypox Stypox merged commit 759342f into TeamNewPipe:refactor Sep 7, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code quality Improvements to the codebase to improve the code quality player Issues related to any player (main, popup and background) size/medium PRs with less than 250 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants