-
Notifications
You must be signed in to change notification settings - Fork 153
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
Customise swipe actions #4858
Customise swipe actions #4858
Conversation
I need suggestions on what icon can we put for No Action. |
Have you implemented it only for queue? Also, there are different pages like local playlists, online playlists, albums, songs tab. I've set the right swipe to play next everywhere and for local playlists and queue left swipe deletes the songs and where ever it's not possible to delete the song it unlikes the song(like albums, online playlists) Would be nice if there were separate options for 1)Right swipe(local playlists and queue) :- 2)Right swipe(everywhere else) :- 3)Left swipe(local playlists and queue) 4)Left swipe(everywhere else) I know it's too much hard work that's why I didn't add these options and went with what most people would use for swipe. |
I think that customized actions in swipeable content must be not specific for queue but also for others swipeable content component. |
As aneesh said, we can't generalise same options to everything. So will have to put seperate options for albums, online playlists etc. Also for albums and online playlists, there are very few actions possible. Actions like add to playlist, listen on, etc will take a lot of refactoring of the pop-up menu. Atleast for now, having this option for queue and local playlist will avoid accidental deletes if user sets left swipe to none |
Yes I agree, for now let's not do refactoring, too dangerous. I would tie the swipe in the queue to the lock, when the lock is open the swipe works. |
Could you please add 'Like' as one of the options? |
will add it. also let me do the same for Album item and Online playlist item, and anywhere else too. will be drafting this PR |
At this point I would say to add it, maybe this merge we will do after the release. I recommend not to "rewrite the wheel", only essential changes no code re-engineering. |
These are the final options i am thinking of: For Queue and Local playlist:
For Online playlists, albums, individual songs:
For Album (when searching ig):
do tell me if I am missing anything. |
I think it's perfect but since you are adding enqueue as an option, for the consistency sake can you add enqueue option also to local playlists options? |
I thought of it, but the problem is same component is being used for queue and for local playlist. so adding that option only for local playlist will have to split into 2 components, and also add 2 new settings for customizing them. |
Or maybe we can use the 2nd component for local playlist also. in that case delete option wont be there for local playlist. Only Queue will have delete action. if that is fine, I can do that |
Use two components, it's better in debug... |
When I asked about adding it in local playlists I included the queue too since both of them are using the same component. If you add enqueue to local playlists the queue will end up having that too. Right now the queue doesn't have the 'enqueue' option in the long tap bottom sheet but I can see enqueue as an option for the queue too. It's not important though so leave it for now. Please go ahead with your plans. |
You mean total 2 components? It won't be possible man. Albums have entirely different actions so it needs a component of its own. If you mean different components for queue and local playlists then I don't think it's worth it. Either add enqueue option to the component which is used by both local playlists and queue so that both of them end up having the enqueue option or just drop the idea and let him continue with his plan. |
enqueue option in queue sounds a bit weird, but ya people can use it to enqueue already played songs from the queue. that sounds fine for me. |
I agree with aneesh, its not worth it to just have 2 separate components with almost same functionality. this will require separate settings option for each, separate enums, separate preference keys. |
If only enqueue is valid for both, ok |
Wanted a suggestion on the setting entry for 2nd category, (i.e everything except queue and local playlist) currently it is named as playlist swipe action, but it is not just for playlist, it for for anywhere a list of songs appear, like in album, search results, artist page, playlist, podcast, etc. so we need a better name |
Also there is some issue with enqueue icon, it is appearing too big. i couldn't debug why it happens. any idea? |
This will do. Just use this And try to add 'all' padding to decrease the icon's size. |
"PlayNext" for Queue at least makes sense I think because it reorders the queue s.t. the song is played next. |
Issue #4849