From f56e800c963439f635554e930aada8b3a5b20868 Mon Sep 17 00:00:00 2001 From: Filip Fila Date: Mon, 28 Oct 2019 23:17:28 +0100 Subject: [PATCH] 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 --- lookandfeel/contents/components/UserDelegate.qml | 2 +- lookandfeel/contents/logout/Logout.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lookandfeel/contents/components/UserDelegate.qml b/lookandfeel/contents/components/UserDelegate.qml index 1602a3614..8882e39ae 100644 --- a/lookandfeel/contents/components/UserDelegate.qml +++ b/lookandfeel/contents/components/UserDelegate.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 diff --git a/lookandfeel/contents/logout/Logout.qml b/lookandfeel/contents/logout/Logout.qml index a63ee909e..357137f1c 100644 --- a/lookandfeel/contents/logout/Logout.qml +++ b/lookandfeel/contents/logout/Logout.qml @@ -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 {