-
Notifications
You must be signed in to change notification settings - Fork 224
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
Layout Change: Queue View Widget #485
base: main
Are you sure you want to change the base?
Conversation
…it passes the song so it can be displayed in the corner
…ent album, retains added queue.
I'll have a look at this tonight! Very excited! |
- Added pointer to clear icon
@SO9010 Hey Sam, just curious if you've had the time to look over the visual changes so far? |
Hey @jacksongoode, sadly I don't have access to my computer! Your changes look great to me. That bug where the separator is off by 1px is very annoying! I will take a look when can and try to maybe hack a fix for it. But it still looks a ton better than with just a small separator bar. Also, I'm thinking of implementing some sort of hover function to the close button to make it dimmer when not needed as it seems a bit intrusive and bulky right now. I think the Ul is looking really good! I'm happy to take any suggestions. :) |
Okay so an update. I have been working on this today and have come up with a solution for the off by one pixel issue and that was to fix the height. Additionally I added the ability to add dividers between the left and right sides! I also aligned the bottom player with the left controller section! However, I am a bit stuck on how I get the position of the song in the queue to get removed after the button has been hit! Any suggestions @jacksongoode ?? |
Okay so could you possibly check this out for me :P thank you |
@jacksongoode This should be good now. Could you please check it for me? I found the issue. It came from the fact I was deleting the first song from the queue when it was being played, but it needs this to know where the playback origin is, so I added a display vector for this. |
Checking it out now! Thanks! |
Ugh unfortunately I cant login since my config was delete and Spotify has revoked the user/pass method. So I'll need to make a PR to address that. |
Ok I'm halfway done with that auth PR, just enough to get a good token. So I see two issues here:
|
Hello, thank you so much for checking it out! These issues should be relatively easy to sort out! :) I'll let you know when I've sorted that out. Sometimes these bugs slip as I've been looking at the same thing for a while :) |
I think this PR may need to be rebased but I could be wrong - I recently merged a fix to the builds and the oauth implementation. |
Ok, so I've had another look at this; in my opinion, it is almost done; there is an issue where when removing the song that is currently playing, it removes it if someone clicks on the song that is about to play then it registers as the song that was queued: // TODO: this falsely removes the song if you click on a song from the playlist that is also in the queue, not sure how to solve this? So @jacksongoode is there any way you can think that will help this? |
Oh I think the solution here is the context. Queued items should have some position or label that makes it clear that on clicking on items that are present in the queue should remove those queued items? It seems like a design bug if clicking anywhere else has any interaction with the queue's poping off the stack. |
Yes I agree but annoyingly there will probably need to be some big refractoring needed as currently the way that the origin of a currently playing song is done through this function:
I added the top bit, which forces it to assume that if the items are in the added queue when that song ID is playing, it must be from the queue. However, this is where the issue comes in. I think I could possibly change this but this is quite core logic so id like to avoid completely changing this function. I've been looking at the idea of having a variable which says whether it is playing from the queue, much like I have done with the actual queue code. But I'm struggling with the implementation. Is there maybe a way to get a function to parse through a value in things like this section:
As then for example we could have a player command GetIfPlayingUserItem, then from there, this would all be streamlined and could even be placed in the Appdata section to be more easily accessible. |
I think this needs to be on a branch? It seem like there's some weird conflict I'm getting by this being on your master branch? Generally every PR should be on a branch with its name. |
So, before I think this is possible, I think we need to find a way to give the playback origin without just having it detected after it's been played. |
This is addressing #476 on creating a new layout and this is a draft PR so that @jacksongoode is able to collaborate with me.
Features:
- Clear queue
- Remove from queue
Questions:
Current look of this PR:
2024-06-30.13-13-11.mp4