Closed yusuftaufiq closed 2 years ago
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.
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™.
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.
I have tested it. It works well and exceeds what I expected. Thanks!
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.
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.
What I'm imagining is something like a marquee feature on an HTML tag like on the following page.
Thanks!