support mobile mode scrollbar
ClosedPublic

Authored by mart on Jan 14 2020, 10:39 AM.

Details

Summary

when on mobile (or just "tabletmode" the scrollbar goes to "not interactive"
in that case it draws like a typical mobile scroll indicator, overlayed to the
view and disappearing

tough, it still shows a couple of pixels line when not in use so the users always
knows where in the view they are

Test Plan

desktop:

mobile:

Diff Detail

Repository
R858 Qt Quick Controls 2: Desktop Style
Branch
phab/mobilescrollbar
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 21186
Build 21204: arc lint + arc unit
mart created this revision.Jan 14 2020, 10:39 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 14 2020, 10:39 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart requested review of this revision.Jan 14 2020, 10:39 AM
mart edited the test plan for this revision. (Show Details)Jan 14 2020, 10:41 AM

Cool! The width change during the slide animation looks a bit odd, though

org.kde.desktop/ScrollBar.qml
50

Math.round

mart updated this revision to Diff 73507.Jan 14 2020, 11:18 AM
  • support also horizontal scrollbars
mart marked an inline comment as done.Jan 14 2020, 11:18 AM

screenshots done with also D26655 in

mart updated this revision to Diff 73542.Jan 14 2020, 3:50 PM
  • smoother transition

Very nice! Overall it works very well. I found a few issues in QML KCMs:

ngraham accepted this revision as: VDG, ngraham.Jan 14 2020, 6:29 PM

Seems like that's a local issue actually.

This revision is now accepted and ready to land.Jan 14 2020, 6:29 PM
mart updated this revision to Diff 73626.Jan 15 2020, 3:35 PM
  • Merge branch 'master' into phab/mobilescrollbar
  • consider the frame paddings for the scrollbar
This revision was automatically updated to reflect the committed changes.