[Screen Locker KCM] Put Wallpaper in a separate tab
ClosedPublic

Authored by broulik on Sep 12 2016, 3:50 PM.

Details

Summary

This cleans up the UI by moving the wallpaper configuration to a separate tab and also gives it more room.

It uses a documentMode TabWidget (no frame) as it has a lighter color and I couldn't find an equivalent in QPalette to make QQuickWidet blend in there.

Also take into account QtQuick Layouts hardcoded default spacing of 5px to make ComboBoxes aligned.

Test Plan

Just shuffled widgets around, still works. Wallpaper config expands to full dialog height now :)
While at it added a colon to the "lock screen on resume" label

Doc about hardcoded spacing: https://doc.qt.io/qt-5/qml-qtquick-layouts-rowlayout.html#spacing-prop


Diff Detail

Repository
R133 KScreenLocker
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik updated this revision to Diff 6666.Sep 12 2016, 3:50 PM
broulik retitled this revision from to [Screen Locker KCM] Put Wallpaper in a separate tab.
broulik updated this object.
broulik edited the test plan for this revision. (Show Details)
broulik added reviewers: Plasma, Plasma: Design.
broulik set the repository for this revision to R133 KScreenLocker.
Restricted Application added a project: Plasma. · View Herald TranscriptSep 12 2016, 3:50 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik updated this revision to Diff 6667.Sep 12 2016, 3:50 PM

Default to first tab

mart added a subscriber: mart.Sep 12 2016, 4:01 PM

as far i know the guidelines for new kcms are no tabs?

In D2753#51234, @mart wrote:

as far i know the guidelines for new kcms are no tabs?

Indeed the idea was to use a longer, scrolling page instead of tabs, combined with expanding sections for advanced settings.

What made you choose tabs, Kai?

Because that's an idea Martin and I had a while ago iirc. And also I don't see how we could make this one scrolling page, since it's a QML thing with a ScrollView embedded in a widget environment.

Because that's an idea Martin and I had a while ago iirc. And also I don't see how we could make this one scrolling page, since it's a QML thing with a ScrollView embedded in a widget environment.

Then I'd recommend using the tabs for now, and then with the next iteration reimplement the whole KCM in QML(and not having the wallpaper selection in its own scroll view, but putting it all on one big page that scrolls.

+1, thanks for looking into it

mart added a comment.Sep 13 2016, 11:31 AM

Because that's an idea Martin and I had a while ago iirc. And also I don't see how we could make this one scrolling page, since it's a QML thing with a ScrollView embedded in a widget environment.

Then I'd recommend using the tabs for now, and then with the next iteration reimplement the whole KCM in QML(and not having the wallpaper selection in its own scroll view, but putting it all on one big page that scrolls.

i'm not sure how it could work however, would look relly weird.

i think iwould already prefer opening a separate dialog upon a "chose wallpaper" action

mart accepted this revision.Sep 13 2016, 11:31 AM
mart added a reviewer: mart.
This revision is now accepted and ready to land.Sep 13 2016, 11:31 AM
This revision was automatically updated to reflect the committed changes.