Skip to content

gtk4: add scroller widget #291

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

gtk4: add scroller widget #291

wants to merge 4 commits into from

Conversation

kotontrion
Copy link
Collaborator

This PR introduces Astal.Scroller, a new GTK widget that implements automatic scrolling. Which is useful for example titles and artists in an mpris widget.

  • Scrolling Behavior: Supports ALTERNATE (back-and-forth) and SLIDE (continuous loop) scrolling.
  • speed: Defines scrolling speed (pixels per second).
  • direction_change_delay: Delay when changing direction (if ALTERNATE mode is enabled).
  • orientation: Determines horizontal or vertical scrolling.
  • propagate_child_size: Determines whether the scroller should adjust based on its child's size.

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

Successfully merging this pull request may close these issues.

1 participant