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).
- Group Reviewers
- Maniphest Tasks
- T10325: 5.16 Login screen improvements
- R120:458576b2b5db: [sddm-theme] Enlarge user avatar in focus
Perfect functionality! Now we need some more bling. :) I'd like for the size to animate as well.
A sane way to do this might be with a ScaleAnimator (https://doc.qt.io/qt-5/qml-qtquick-scaleanimator.html), and then do a tiny bit of refactoring to adjust the scale rather than changing faceSize.
But it looks very smooth already. It's choppy in sddm-greeter but on the actual login screen it looks pretty good (more to the point - it looks very much the same as the transition from the user list screen to the prompt screen).
I also think that if we're going to opt for an animation effect, I'd like to do it in another patch :D
Heh, I'm sure some old SDDM (maybe even LightDM) theme did that. There was a whole Carousel system.
If you do animate, generally I've found that animating width won't do what you want, it'll cause the text to re-lay out and that looks weird.
Using Item.scale with a correct transform origin looks smooth, but obviously you lose some resolution in the text.
This seems to be how they did it
source: visible ? "user-identity" : undefined visible: (face.status == Image.Error || face.status == Image.Null)
Which isn't all that different from how this diff does it.
It still looks fairly animated to me :D