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 all volume icons indicate level #4885

Merged
merged 1 commit into from May 24, 2024
Merged

Make all volume icons indicate level #4885

merged 1 commit into from May 24, 2024

Conversation

low-batt
Copy link
Contributor

This commit will:

  • Add a volumeIcon method to PlayerWindowController that returns the appropriate icon based on volume level
  • Add an updateVolume method to MainWindowController that sets the icon on the mute button
  • Change MiniPlayerController.updateVolume to set the icon on the mute button as well as the volume button

The mini window selects the image to use for the volume button from multiple images based on the volume level. This commit extends that functionality to the mute button in the main window and the mute button in the mini window. This makes the behavior of volume icons consistent.


Description:

This commit will:
- Add a volumeIcon method to PlayerWindowController that returns the
  appropriate icon based on volume level
- Add an updateVolume method to MainWindowController that sets the icon
  on the mute button
- Change MiniPlayerController.updateVolume to set the icon on the mute
  button as well as the volume button

The mini window selects the image to use for the volume button from
multiple images based on the volume level. This commit extends that
functionality to the mute button in the main window and the mute button
in the mini window. This makes the behavior of volume icons consistent.
@low-batt low-batt self-assigned this Apr 19, 2024
Copy link
Member

@uiryuu uiryuu left a comment

Choose a reason for hiding this comment

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

Tested and LGTM!

@uiryuu uiryuu merged commit 18d4205 into develop May 24, 2024
1 check passed
@uiryuu uiryuu deleted the volume-icon branch May 24, 2024 05:58
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