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

Auto hide scrollbar #7606

Open
aurexav opened this issue Feb 11, 2025 · 4 comments
Open

Auto hide scrollbar #7606

aurexav opened this issue Feb 11, 2025 · 4 comments
Labels
a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) enhancement New feature or request need triaging Issue that the owner of the area still need to triage

Comments

@aurexav
Copy link

aurexav commented Feb 11, 2025

Feature Description

The scrollbar should be able to hide automatically if user doesn't focus on the widget.

Many other GUI library provide this feature.

Something like VisibleWhenNeeded.

@aurexav aurexav added enhancement New feature or request need triaging Issue that the owner of the area still need to triage labels Feb 11, 2025
@ogoffart
Copy link
Member

We have scroll bar policy
https://docs.slint.dev/latest/docs/slint/reference/std-widgets/views/scrollview/#vertical-scrollbar-policy
(available for the ScrollView and the ListView)

Do you need something different?

@ogoffart ogoffart added the needs info Further information from the reporter is requested label Feb 11, 2025
@aurexav
Copy link
Author

aurexav commented Feb 12, 2025

Image

What's the behavior of "as-needed"?

I don't want to see the scrollbar unless I move my mouse to the sidebar(list view widget).

@ogoffart ogoffart added a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) and removed needs info Further information from the reporter is requested labels Feb 12, 2025
@ogoffart
Copy link
Member

Our widgets should behave the same as the native widgets in the platform. If the Mac scrollbar are not visible when not having the focus. Then our Cupertino style should be fixed to do the same.

@aurexav
Copy link
Author

aurexav commented Feb 12, 2025

Our widgets should behave the same as the native widgets in the platform. If the Mac scrollbar are not visible when not having the focus. Then our Cupertino style should be fixed to do the same.

Hmmm, I don't know what's the default behavior for macOS platform.

But I have to say, I tried every apps on my Mac. I can hardly find one can't hide the scroll bar automatically.

Only the slint app will always showing the scroll bar even I didn't interact with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) enhancement New feature or request need triaging Issue that the owner of the area still need to triage
Projects
None yet
Development

No branches or pull requests

2 participants