Skip to content

Transparent avatars should be rendered with a transparent bg, not a white or black one. #8425

@ara4n

Description

@ara4n

There are folks like nepugia & kythyria who have avatars with transparent backgrounds. Currently in Riot we force a white background for avatars so in practice they ended up rendered on white. However, in practice, we should probably render them as transparent on whatever bg is suitable for the theme being used (i.e. either light or dark), to avoid breaking the theming.

If this results in a black-on-transparent avatar against a black bg being invisible, then the user shouldn't have uploaded a black-on-transparent avatar in the first place; they should have uploaded black-on-white instead.

In other words: if you upload a transparent avatar, you'd need to make sure it looks good on both light & dark bgs. Woe betide you if the app implementer chose a colourful bg colour (e.g. purple or yellow) which then makes nepugia or kythria disappear into the wallpaper (and even then, they should be including a border around such avatars anyway).

See also #6305

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AvatarP1S-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions