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

Add volume slider #529

Closed
wants to merge 7 commits into from

Conversation

Diegovsky
Copy link
Collaborator

Hopefully we can fully close #77 now

@Diegovsky
Copy link
Collaborator Author

image

This is different from the design I showed off at #77 earlier today. Mainly, the volume slider is fixed size and embedded right into the control widget. Thoughts?

@OKPersson
Copy link

OKPersson commented Jun 11, 2022

I would try and move it a bit to the left so that the music icon and the volume slider are on each side of the playback controls with.
But now when I looked at the app when it's playing music I realize that there's more info than in your screenshot, The playback timer is around where the slider should be imho.
Although I have no idea where the time remaining should be placed instead.

@Diegovsky
Copy link
Collaborator Author

Diegovsky commented Jun 11, 2022

@OKPersson I agree with you. I sampled some designs from other media players, such as Amberol and Spotify and they both have two "rows" of controls so everything fits together.

Also, I wouldn't mind restructuring the player controls/player widget to use that 2-rows design.

@Diegovsky
Copy link
Collaborator Author

Cool, I think that it would be best located roughly the same as the default Spotify app. However I don't know how that would work with smaller layouts such as the mobile view.

Answering here for the sake of relevance: Yes, I would love that too. I'm a bit cautious of changing the layout, though, so let's wait for other contributors to weigh in :)

@Diegovsky
Copy link
Collaborator Author

Diegovsky commented Jun 12, 2022

image

Ok, so this is my second iteration of the design. Since the lower bar is quite a bit bigger, I had to also scale the album image to fit better, though I think it's too big. Also, I want to put a speaker icon before and after the slider for better looks.

I asked a friend for feedback and they suggested enlarging the player controls to fill the whole bottom (unrelated to this, but did that in a separate branch if you're interested) and replacing the timestamp with the slider. Thoughts?

@Zaedus
Copy link
Contributor

Zaedus commented Jun 14, 2022

I have an idea for the design. Personally, I don't think that the volume should be visible all the time. Take for instance Celluloid, the GTK mpv frontend, which uses a popout volume slider.
2022-06-14T14:02:06,300999579-05:00

If it needs to be shown, maybe we go for a slider which is right oriented like in the original Spotify client?
image

Maybe we could do some kind of revealer which shows the Spotify-like volume slider when you hover over the volume icon? All just ideas, but tell me what you think!

@Diegovsky
Copy link
Collaborator Author

I would prefer to mix both ideas and use a spotify-like scheme for desktop and a popover slider for the mobile view. The revealer does sound good, but I will need some guidance on how to use GtkPopover properly because I'm always messing it up lol

@jannuary
Copy link
Contributor

Doesn't GTK have a class specifically for that?

@Diegovsky
Copy link
Collaborator Author

Thank you, it seems to be exactly what I was looking for. Also, which layout do you prefer?

@xou816
Copy link
Owner

xou816 commented Feb 18, 2023

Hi! have you been able to look at the GtkVolumeButton? ping me if you need a review otherwise I'll hold off from it for now!

@Diegovsky
Copy link
Collaborator Author

Will look into it. Good to know something like it exists :)

ping me if you need a review otherwise I'll hold off from it for now!

Sure

@Amzd
Copy link

Amzd commented May 10, 2023

Any chance we can add a volume slider in the settings if we can't cut the knot on where it should be located on the player?

@Diegovsky
Copy link
Collaborator Author

Any chance we can add a volume slider in the settings if we can't cut the knot on where it should be located on the player?

Actually, would you mind to take it over from me? I don't have the time to work on it but I can review. In the end, the design is not what matters most, but the functionality.

@Diegovsky
Copy link
Collaborator Author

Re-started work on this. Rebase was successful, however I need to migrate from those pesky .ui xml files to the more elegant blueprint files :)

@Diegovsky
Copy link
Collaborator Author

By the way, GtkVolumeButton is deprecated. Not sure why.

@Diegovsky
Copy link
Collaborator Author

image
What do you think?

I'm still unsure if this slider goes here or somewhere else, lol

@Diegovsky
Copy link
Collaborator Author

This also depends on #684 to fix ci errors

@UnlimitedCookies
Copy link

In my opinion there shouldn't be a popup like in celluloid, because the volume control is very essential to a music player and should be accessible quickly. The best place to put it would be in my opinion to the right side of the player control area, like the proprietary spotify client currently does. This would probably suffice moving the time indicators.
image

@Diegovsky
Copy link
Collaborator Author

I aggree, but I think it wouldn't look as good in a mobile view, though.

@Diegovsky Diegovsky closed this Jul 14, 2024
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.

App volume control
7 participants