support mobile mode scrollbar
ClosedPublic

Authored by mart on Tue, Jan 14, 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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mart created this revision.Tue, Jan 14, 10:39 AM
Restricted Application added a project: Plasma. · View Herald TranscriptTue, Jan 14, 10:39 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart requested review of this revision.Tue, Jan 14, 10:39 AM
mart edited the test plan for this revision. (Show Details)Tue, Jan 14, 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.Tue, Jan 14, 11:18 AM
  • support also horizontal scrollbars
mart marked an inline comment as done.Tue, Jan 14, 11:18 AM

screenshots done with also D26655 in

mart updated this revision to Diff 73542.Tue, Jan 14, 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.Tue, Jan 14, 6:29 PM

Seems like that's a local issue actually.

This revision is now accepted and ready to land.Tue, Jan 14, 6:29 PM
mart updated this revision to Diff 73626.Wed, Jan 15, 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.