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

Query ScrollView scrollbar width or automatic padding #7707

Open
petiaccja opened this issue Feb 22, 2025 · 0 comments
Open

Query ScrollView scrollbar width or automatic padding #7707

petiaccja opened this issue Feb 22, 2025 · 0 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

@petiaccja
Copy link

Feature Description

I have a feature request for ScrollViews to pad the content such that the scrollbar does not obscure it.

At the moment, I see 3 different styles of scrollbars:

Scrollbar next to the content (Material Dark):

Image

Scrollbar above the content (Cupertino Dark):

Image

Semi-transparent scrollbar (Fluent Dark):

Image

While Material Dark nicely pads the content so that the scrollbar does not obscure it, the other two themes have a scrollbar that fully or partially obscures content in the scrollbar's place. I've tried manually padding the content, however, the width of the scrollbar varies by theme so hardcoding a padding is not an option.

Would it be possible to include padding in the design of the ScrollView themes, or to allow for querying the width of the theme's scrollbar? Is this perhaps already available and I just don't know about it?

Thanks!

Product Impact

No response

@petiaccja petiaccja added enhancement New feature or request need triaging Issue that the owner of the area still need to triage labels Feb 22, 2025
@ogoffart ogoffart added the a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) label Feb 25, 2025
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