Commit 458576b2 authored by Krešimir Čohar's avatar Krešimir Čohar

[sddm-theme] Enlarge user avatar in focus

Summary: This patch makes the user avatar that is selected (in focus) larger than the other unselected/deselected avatars surrounding it (provided there is more than one user).

Test Plan: {F6651290}

Reviewers: #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: davidedmundson, abetts, filipf, plasma-devel

Tags: #plasma

Maniphest Tasks: T10325

Differential Revision:
parent 0ba8212f
......@@ -70,8 +70,13 @@ Item {
bottomMargin: units.largeSpacing
horizontalCenter: parent.horizontalCenter
width: faceSize
height: faceSize
Behavior on width {
PropertyAnimation {
duration: units.longDuration * 2;
width: isCurrent ? faceSize : faceSize - units.largeSpacing
height: width
//Image takes priority, taking a full path to a file, if that doesn't exist we show an icon
Image {
......@@ -108,7 +113,7 @@ Item {
sourceItem: imageSource
// software rendering is just a fallback so we can accept not having a rounded avatar here
hideSource: wrapper.GraphicsInfo.api !== GraphicsInfo.Software
live: false
live: true // otherwise the user in focus will show a blurred avatar
property var colorBorder: PlasmaCore.ColorScope.textColor
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment