FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Implement support for User Avatars by D3vil0p3r · Pull Request #44 · Keyitdev/sddm-astronaut-theme · GitHub

Implement support for User Avatars - #44

Open
D3vil0p3r wants to merge 2 commits into
Keyitdev:masterfrom
D3vil0p3r:patch-1
Open

Implement support for User Avatars#44
D3vil0p3r wants to merge 2 commits into
Keyitdev:masterfrom
D3vil0p3r:patch-1

Conversation

D3vil0p3r commented Jun 7, 2025
edited
Loading

Copy link
Copy Markdown

Hello @Keyitdev , I implemented the support for user avatar.

By the current code, if the system has more than one user, I think the avatar of the last logged user will be shown.

The avatar should be stored in ~/.face.icon.

Furthermore, I tried to implement the avatar image as a circle. I can only set the border object as a circle but the avatar image itself remains as a square, and currently I don't know how to fix it. In Qt5 it could be fixed by using QtGraphicalEffects that has been dropped in Qt6, so another solution must be found.

Inside the config of each theme, the following variables should be set:

#################### User Picture ####################

UserPictureEnabled="true"
UserBorderColor="#b4befe"
UserBorderWidth=5
UserColor="#cdd6f4"
Scale=1

Here some examples of the output:

If you have an idea on how to implement also a circled avatar image, would be wonderful.

Let me know also if the case of multiple users is good as is.

Once these topics above are faced, I will implement the changes on each theme with the parameters defined above. If you would like to specify specific HEX color code to each of them, please let me know.

Close #40

Keyitdev marked this pull request as ready for review July 9, 2025 20:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] - Show/Hide Avatar user image

1 participant


Back | FazBrowse Home | New Git URL