-
Notifications
You must be signed in to change notification settings - Fork 75
scrollbar for desktop builds in feature lists #4145
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
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 19935992820Details
💛 - Coveralls |
75c3747 to
eb72e98
Compare
Withalion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, it would make more sense to move the scrollbar directly into MMListView and/or MMScrollView as we want the scrollbar for all lists in the app as mentioned in #4127 . Right now it would be just for feature list.
031f38d to
d90b2c1
Compare
Added property to make the scroll bar disappear where is not needed
Withalion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have mixed feelings about these changes. 2 things I don't like:
- when we are defining delegates we should not care if the
Viewhas scroll bar or not.FlickableshavecontentWidthproperty, but we don't utilize it. I'm not sure if it should be calculated automatically or by us. - we show the scroll bars even though they are not necessary. We should never show them on mobile, show them when necessary on desktop and they should not hide.
app/qml/components/MMListView.qml
Outdated
| readonly property bool isMobile: (Qt.platform.os === "android" || Qt.platform.os === "ios") | ||
| property int scrollSpace: !isMobile ? 10 : 0 | ||
| property bool showScrollBar: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isMobilecould be just internal propertyscrollSpaceI would rename it to something more meaningful likescrollBarWidthand it should be read only, and maybe we should use__style.margin10showScrollBarI would change it to alias referingverticalScrollBar.policyand get rid ofvisibleproperty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should I make isMobile an internal property?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With QtObject component as we do in other places
Made it visible in every situation
Withalion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some stuff doesn't look the best, but it would probably require a bigger refactor, which is out of scope of this PR
Case: Missing scrollbar for the desktop version for all the ListView components.
What has be been done:
Added slim scrollbar on the right side of the lists.
Scroll bar only activates for desktops; ex(macos, window, linux) and not any mobile builds
Scrollbar always visibile, but highlights on active more and passive on inactive.
Tested for mutiple page which uses ListView and the work of scrollbar
Screen.Recording.2025-10-23.at.12.18.39.PM.mov