Variable: AdwAvatar
constAdwAvatar:"AdwAvatar"
Defined in: generated/jsx.ts:13622
A widget displaying an image, with a generated fallback.
![]()
AdwAvatar is a widget that shows a round avatar.
AdwAvatar generates an avatar with the initials of the
Avatar.text on top of a colored background.
The color is picked based on the hash of the Avatar.text.
If Avatar.show-initials is set to FALSE,
Avatar.icon-name or avatar-default-symbolic is shown instead of
the initials.
Use Avatar.custom-image to set a custom image.
CSS nodes
AdwAvatar has a single CSS node with name avatar.
Accessibility
AdwAvatar uses the GTK_ACCESSIBLE_ROLE_IMG role.