-
Notifications
You must be signed in to change notification settings - Fork 142
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
marquee text #754
base: redesign
Are you sure you want to change the base?
marquee text #754
Conversation
marquee effect on song title
Merge pull request #1 from Decimate1405/marquee
fixed non marquee text alignment issue
Hey, thanks for the PR. Sorry for not responding sooner, but I'll take a look now. If you could update this PR to behave in a similar way (using up to two lines by default, and then switching to scrolling text) that would be nice. If you don't like the line break and would like to always keep it at a single line, that could be added through a setting! Also, it seems like you removed the track title on the player screen? |
Hey, thank you for the response. I tried using marquee package but it was giving an error during import (some conflict with fading_edge_scrollview package) that's why I implemented it myself. I think adding it as a setting would be really nice as it would accommodate for everyone's needs. Regarding the title being removed from the player screen, looks like I accidentally forgot to remove the comment. |
added a toggle to switch between 1 or 2 lines of song title, defaults to 2. its under Player settings. |
Okay, thanks for the changes. There's still a lot of commented-out code, that should be removed. |
There's no specific benefit to using my implementation. I couldn't fix the errors i was getting while using the marquee package so i got fed up and implemented it myself. I'll give it another go |
Try adding the override from MarcelGarus/marquee#98 (comment) in pubspec.yaml :) |
…that's a temp fix for marquee after flutter 3.2.2
changed it to use the marquee package, still defaults to 2 lines |
…r based on toggle switch and title size
…ine marquee duplicates for short titles
Appreciate the effort! Those changes sound good. Let me know when I should try this out! |
its working, you can try it now :) |
@Decimate1405 I can resolve the conflicts and merge the PRs if you're busy. Just need your OK! |
Hey @Chaphasilor ! Sorry I have been busy with things in personal life that I haven't been able to complete it, I still have to implement the default ellipses functionality and fix the centering a bit. I can complete it in the next 2 weeks and try to solve the merge conflicts as well |
@Decimate1405 no worries! I just wanted to make sure the work you put into this will end up being used 😁 |
Hey @Chaphasilor! It's been longer than I said it would take 😅, but I made the changes mentioned:
Let me know if any more changes are needed, i'll fix it immediately 🫡 |
Hey, I thought I wouldn't hear from you again, so seeing your comment is awesome! I'l have to read through the issue again to make sure everything is handled, but I think it's good enough for merging. Will take a proper look later. One thing that you could change is the wording for the settings, the "default 2" sounds a bit strange. The descriptions for toggles should also always describe the enabled effect, so "Truncate with ellipsis instead of a scrolling marquee" or something along those lines :) If you have time to spare, there's one more thing you could handle, but only if you feel like it: But since that's a little out of scope, you really don't need to do that :) |
Yea sure I can make those changes. For the descriptions would this be alright or should I simplify it further? "marqueeOrTruncateButton": "Use ellipsis for long titles", I'll give the long artist / album names a try |
|
Okay, just from your comments so far I have some feedback:
I hope that is clear enough, if not I'll try to explain it again! |
…y trigger for 3 or more
…eshold switches to marquee
ok so I have implemented that big album name issue but I had a question for the marquee one, so right now i have two toggles: now that I look back at this I'm not even sure why I broke it into two settings. so the question is do we need these two different settings or should I just have marquee on/off toggle where on would make anything more than 1 line into marquee and and off would truncate anything that overflows. I feel like the answer is simple and just use the marquee setting for everything but I wanted to double check ok so looking back at our convo i definitely misunderstood what you were saying and implemented two toggles for no reason 😂 |
I suggested the two line option. Especially on the player screen we often have enough space to statically show the entire title, but if that doesn't fit, we need to truncate or use marquee. I can't take a proper look at the PR atm since my server died today, but hopefully I can get things up and running soon... |
I'm not sure I understand it completely
so this essentially what marquee toggle is supposed to do right? like we give the user the option whether they wanna use marquee or not, and if they choose not to then the overflow is handled by truncating it. so the "on/off" is basically the user toggling between whether they want marquee or not (truncate) if im wrong then yea elaborating a bit more will be helpful |
@Decimate1405 what I meant is that even when the setting is on, the title should still be shown in two lines as long as it doesn't overflow. Only if the setting is enabled and the title is longer than two lines should the title be shown as a one line marquee. As I said, I'm currently not able to take a look at this myself since my server is broken and I don't have any media downloaded for the Finamp debug version. Otherwise I could just tell you if it behaves as expected... |
…d toggle title and description
Ok I understood what you are trying to say. The latest commit should be the last commit unless some more changes are required. Take a look at it whenever your server is back. |
@Decimate1405 just took a look, yes the new setting is all that's needed I think, good job 👍🏻 |
Implemented marquee text in song menu for overflow, instead of two lines