Skip to content

FEAT(client,avatars): Add avatar icons to user view#6856

Open
GeneralUser01 wants to merge 6 commits intomumble-voip:masterfrom
GeneralUser01:avatar-icons
Open

FEAT(client,avatars): Add avatar icons to user view#6856
GeneralUser01 wants to merge 6 commits intomumble-voip:masterfrom
GeneralUser01:avatar-icons

Conversation

@GeneralUser01
Copy link
Contributor

@GeneralUser01 GeneralUser01 commented Jun 25, 2025

The UI was here changed to use the avatar (if the user has one) as user icon in the user view instead of only showing it in a tooltip when a user is hovered and in the overlay.

This enables one to easier distinguish users as well as getting more use of each user's avatar in a way that would be expected. Below is an example showing the differences.

Without avatar:
image
image

With avatar:
image
image

The "What's this?" message on users was also extended to include the custom avatar talk indicator as shown here:
image

Checks

@davidebeatrici davidebeatrici self-requested a review June 26, 2025 07:07
Copy link
Member

@Krzmbrzl Krzmbrzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardcoded alignmntsaddings also seem like they could cause trouble for users with different screen resolutions.

@Krzmbrzl
Copy link
Member

Could you perhaps add a screenshot to the PR description? That makes it easier to figure out what exactly the end result is :)

The UI was here changed to use the avatar as user icon in the user view instead of only showing it in a tooltip when a user is hovered, in a comment on them and in the overlay.

This enables one to easier distinguish users as well as getting more use of each user's avatar in a way that would be expected.
Somehow the user view was only updated when setting an avatar and not when removing it. Since `update()` on the widget doesn't work here with `UserDelegate` this change instead refreshes it by adjusting the foreground color back and fourth once. This is done unnoticeably quickly and only adjusts the color by the smallest amount. Furthermore, this would only require a couple repaints unlike a resize which would also require reflows (recalculating the layout).
Because at least the colors of the custom avatar talk indicator should come from the theme, this change makes SVG icons for it in the theme, with there being one for each talk status just as for the default avatar talk indicator except for when passive. The new icons have a transparent background and are overlaid the user-provided image when the user's talk status is not passive.
@Hartmnt Hartmnt added client feature-request This issue or PR deals with a new feature labels Aug 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client feature-request This issue or PR deals with a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments