New new SDDM theme
ClosedPublic

Authored by davidedmundson on Aug 11 2016, 1:43 AM.

Details

Summary

Implements the new SDDM theme.
There's a lot of hardcoded values, but the mockup asks for it.
It also doesn't match the mockup exactly because all grid unit sizes are just wrong and partly because in many cases I opted for just using the
Plasma default.

Code is written with the intention to easily port the lock screen
All SDDM related code is now shifted into Main with Login.qml acting as
an abstraction layer.

Test Plan

Ran it, against the awesome mock data.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson retitled this revision from to New new SDDM theme.
davidedmundson updated this object.
davidedmundson edited the test plan for this revision. (Show Details)
davidedmundson added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptAug 11 2016, 1:43 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
apol added a subscriber: apol.Aug 11 2016, 1:45 AM

Shouldn't we be keeping the old theme for nostalgia and such? It's a theme after all.

In D2399#44873, @apol wrote:

Shouldn't we be keeping the old theme for nostalgia and such? It's a theme after all.

Maybe, but this patch is against the SDDM theme that was nearly in 5.7, the old theme was already deleted.
It can be restored, but it's a bit irrelevant wrt to this patch.

Screenshot as requested.

Note the coloured icons for actions will be changing when Andreas pushes some change.

Also I have some unresolved comments here: https://phabricator.kde.org/M58/178/

mart added a subscriber: mart.Aug 11 2016, 7:06 PM
In D2399#44873, @apol wrote:

Shouldn't we be keeping the old theme for nostalgia and such? It's a theme after all.

but also working QML code, that means, it must be maintained. if there are volunteers, awesome, if it stays there bitrotting, hmm, not so much

mart added a comment.Aug 11 2016, 7:07 PM

Screenshot as requested.

Note the coloured icons for actions will be changing when Andreas pushes some change.

Also I have some unresolved comments here: https://phabricator.kde.org/M58/178/

what about white circles?

mart added inline comments.Aug 11 2016, 7:15 PM
sddm-theme/KeyboardButton.qml
13 ↗(On Diff #5818)

is this domain valid for sddm as well?

sddm-theme/UserDelegate.qml
85 ↗(On Diff #5818)

this version you have is probably is significantly faster (and in this case i'll shut up :p)

but wouldn't look cleaner to have something along the lines:

layer.enabled: true

layer.effect: OpacityMask {
    maskSource: Rectangle {
        anchors.centerIn: parent
        width: imageWrapper.width
        height: width
        radius: width/2
    }
}
davidedmundson added inline comments.Aug 12 2016, 1:05 AM
sddm-theme/KeyboardButton.qml
13 ↗(On Diff #5818)

It was...though that broke when this folder was moved. Good spot.

sddm-theme/UserDelegate.qml
85 ↗(On Diff #5818)

It's a bit more complex with the white frame that has to be transparent on the inside.

So that then needs to be drawn somehow. I guess making an SVG of a circle would work.

bshah added a subscriber: bshah.Aug 12 2016, 5:22 AM
bshah added inline comments.
sddm-theme/KeyboardButton.qml
13 ↗(On Diff #5818)

I wonder if it ever worked to translate those in SDDM? Given KDeclarative takes care of loading translation domain IIRC.

mart added inline comments.Aug 13 2016, 11:16 AM
sddm-theme/UserDelegate.qml
85 ↗(On Diff #5818)

Using layers opacity mask, the white circle wouldn't be drawn, it's only used to cut a circle out of the user avatar. For the border, could be another rectangle rounded to a circle, which only the border is drawn?

sddm-theme/KeyboardButton.qml
13 ↗(On Diff #5818)

It used to work.
We don't have the i18n domain set because we're being loaded by SDDM, however the i18nd explicitly sets the domain to use.

This has been fixed by 0ece53786e1a7ee37f4ce5e01172673b43a1407c in plasma-workspace master.

No changes to this patch are needed.

mart accepted this revision.Aug 16 2016, 8:06 AM
mart added a reviewer: mart.

to me is ok (if is good design-wise for vdg) my only comment is wether is possible to make the faces avoiding the custom shader, but is not super important

This revision is now accepted and ready to land.Aug 16 2016, 8:06 AM
This revision was automatically updated to reflect the committed changes.