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

Feature Request: Add Marquee when Text Overflow #35

Closed
yusuftaufiq opened this issue Oct 27, 2022 · 5 comments
Closed

Feature Request: Add Marquee when Text Overflow #35

yusuftaufiq opened this issue Oct 27, 2022 · 5 comments

Comments

@yusuftaufiq
Copy link

yusuftaufiq commented Oct 27, 2022

First, I want to appreciate this Gnome extension that has been created. If possible, I'd like to request a feature to scroll horizontally automatically when the artist name, song title, or album is truncated.
Screenshot from 2022-10-27 22-13-59

What I'm imagining is something like a marquee feature on an HTML tag like on the following page.

Thanks!

@esenliyim
Copy link
Owner

I considered that a long time ago, but back then Gtk offered no built-in way of doing it and I thought messing with timeouts to manually animate text was too much work for a simple project like this.

Maybe Gtk4 has better ways of doing it now though, I'll check it out.

@esenliyim
Copy link
Owner

I've looked into it and apparently there's still no built-in way to do it in Gtk, and I still gotta manually animate the scrolling text.

So that's what I'll be doing because I kinda want this feature now. I shall have it ready Soon™.

@esenliyim
Copy link
Owner

The feature is now in the dev branch, you could check it out if you like. It's got configurable length and speed (in the form of frame duration, between 100ms and 20s), and you can change the "separator" thing that goes between the head and the tail of the label as it loops around. Not sure what to call it.

I'd also appreciate any feedback.

@yusuftaufiq
Copy link
Author

I have tested it. It works well and exceeds what I expected. Thanks!

@esenliyim
Copy link
Owner

esenliyim commented Nov 2, 2022

So the last version that I pushed to the dev branch works kinda like what you first asked. That is it starts to "scroll horizontally automatically when the artist name, song title, or album is truncated" IF you have the marquee mode enabled and the text length exceeds the max marquee length that's been set (default 50). Otherwise it's just a static text.

E.g. "Blur | Song 2" will remain a static text cause it's short, but "Rush | 2112: Overture / The Temples Of Syrinx / Discovery / Presentation / Oracle / Soliloquy / Grand Finale - Medley" will automatically start scrolling.

And with that I'm closing this issue.

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

No branches or pull requests

2 participants