Use the same avatar size in lock, login and logout screens

Summary:
Currently the avatar in the logout screen is noticeably smaller than the avatar in the lock and logout screens.

This patch roughly bases the size value on what is produced in the lock and logout, and then applies it to the logout screen.

Test Plan:
Before (logout screen):
{F7680624}

After (logout screen):
{F7680632}

Before (lock screen):
{F7680634}

After (lock screen):
{F7680635}

Reviewers: #plasma, #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: davidedmundson, ngraham, plasma-devel

Tags: #plasma

Maniphest Tasks: T11093

Differential Revision: https://phabricator.kde.org/D25024
wilder-5.18
Filip Fila 6 years ago
parent f32d038966
commit f56e800c96
  1. 2
      lookandfeel/contents/components/UserDelegate.qml
  2. 2
      lookandfeel/contents/logout/Logout.qml

@ -41,7 +41,7 @@ Item {
property int fontSize: config.fontSize
signal clicked()
property real faceSize: Math.min(width, height - usernameDelegate.height - units.smallSpacing)
property real faceSize: units.gridUnit * 7
opacity: isCurrent ? 1.0 : 0.5

@ -117,7 +117,7 @@ PlasmaCore.ColorScope {
onClicked: root.cancelRequested()
}
UserDelegate {
width: units.iconSizes.enormous
width: units.gridUnit * 7
height: width
nameFontSize: theme.defaultFont.pointSize + 2
anchors {

Loading…
Cancel
Save