Giter Club home page Giter Club logo

Comments (5)

esenliyim avatar esenliyim commented on July 26, 2024 2

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.

from sp-tray.

esenliyim avatar esenliyim commented on July 26, 2024 1

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β„’.

from sp-tray.

esenliyim avatar esenliyim commented on July 26, 2024 1

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.

from sp-tray.

esenliyim avatar esenliyim commented on July 26, 2024

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.

from sp-tray.

yusuftaufiq avatar yusuftaufiq commented on July 26, 2024

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

from sp-tray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.