Created attachment 164699 [details] Screenshot SUMMARY When trying to change the profile picture to the letter or basic avatar, the button to open the background colour selector works, but actually changing the avatar does not. STEPS TO REPRODUCE 1. Open System Settings 2. Go to the Users tab 3. Click Change Avatar 4. Click on the letter or the basic avatar 5. Choose a colour OBSERVED RESULT Nothing works except the back button EXPECTED RESULT The avatar should be applied with the selected background colour SOFTWARE/OS VERSIONS Operating System: Fedora Linux 40 KDE Plasma Version: 5.91.0 KDE Frameworks Version: 5.247.0 Qt Version: 6.6.1 Kernel Version: 6.7.0-0.rc8.61.fc40.x86_64 (64-bit) Graphics Platform: Wayland
Can reproduce.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3762
Git commit 48c036aab17b74da69cef2144cacf78e8d00d6d1 by Nate Graham. Committed on 11/01/2024 at 23:35. Pushed by ngraham into branch 'master'. kcm/users: fix letter-style avatars We can't run grabToImage() on an item in a component. Luckily we don't have to; just grab the image of the delegate itself which has the same visual contents. FIXED-IN: 6.0 M +2 -2 kcms/users/src/ui/PicturesSheet.qml https://invent.kde.org/plasma/plasma-workspace/-/commit/48c036aab17b74da69cef2144cacf78e8d00d6d1
Git commit 57e6a81af420ba870044d498bd5bd1e42ac0aa28 by Nate Graham. Committed on 12/01/2024 at 03:24. Pushed by ngraham into branch 'Plasma/6.0'. kcm/users: fix letter-style avatars We can't run grabToImage() on an item in a component. Luckily we don't have to; just grab the image of the delegate itself which has the same visual contents. FIXED-IN: 6.0 (cherry picked from commit 48c036aab17b74da69cef2144cacf78e8d00d6d1) M +2 -2 kcms/users/src/ui/PicturesSheet.qml https://invent.kde.org/plasma/plasma-workspace/-/commit/57e6a81af420ba870044d498bd5bd1e42ac0aa28
Thank you very much, setting the avatar now works. But what does not work is the preview, if you have selected an avatar it should appear in the preview, instead the placeholder letter always appears. [Screenshot 1] When you click on apply, the avatar is displayed in the preview, although it is displayed in a very square circle, but is also not updated correctly in the user list. [Screenshot 2] Only when you reopen the user settings is everything updated, the square circle remains. [Screenshot 3]
Created attachment 164923 [details] Screenshot 1
Created attachment 164924 [details] Screenshot 2
Created attachment 164925 [details] Screenshot 3
I can reproduce that issue, but it's separate from what was fixed here. Can you please submit a new bug report for it, and link it to this one via the "See Also" field? Thanks!~
Git commit 7eddcd479e24329d45bdd3812ce321884422f470 by Harald Sitter. Committed on 23/02/2024 at 10:29. Pushed by sitter into branch 'master'. kcm/users: fix rectangle grabbing the earlier attempt at fixing this unfortunately only broke things differently because grabbing the entire component means we end up with spacing around the colored rectangle (the square artifacts described in https://bugs.kde.org/show_bug.cgi?id=479929). instead alias the rectangles to the outside and restore the grabToImage call to operate on the colorRectangles rather than the entire button M +4 -2 kcms/users/src/ui/PicturesSheet.qml https://invent.kde.org/plasma/plasma-workspace/-/commit/7eddcd479e24329d45bdd3812ce321884422f470
Git commit a4ed0086dcb711c43d9ea7a1cb186af56948f22d by Harald Sitter. Committed on 23/02/2024 at 13:02. Pushed by sitter into branch 'Plasma/6.0'. kcm/users: fix rectangle grabbing the earlier attempt at fixing this unfortunately only broke things differently because grabbing the entire component means we end up with spacing around the colored rectangle (the square artifacts described in https://bugs.kde.org/show_bug.cgi?id=479929). instead alias the rectangles to the outside and restore the grabToImage call to operate on the colorRectangles rather than the entire button (cherry picked from commit 7eddcd479e24329d45bdd3812ce321884422f470) M +4 -2 kcms/users/src/ui/PicturesSheet.qml https://invent.kde.org/plasma/plasma-workspace/-/commit/a4ed0086dcb711c43d9ea7a1cb186af56948f22d