Avatar
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 property@Avatar:text on top of a colored background.
The color is picked based on the hash of the property@Avatar:text.
If property@Avatar:show-initials is set to FALSE
, property@Avatar:icon-name or avatar-default-symbolic
is shown instead of the initials.
Use property@Avatar:custom-image to set a custom image.
CSS nodes
AdwAvatar
has a single CSS node with name avatar
.
Constructors
Properties
Functions
Renders @self into a class@Gdk.Texture at @scale_factor.
Gets the custom image paintable.
Gets the name of an icon to use as a fallback.
Gets whether initials are used instead of an icon on the fallback avatar.
Sets the custom image paintable.
Sets the name of an icon to use as a fallback.
Sets whether to use initials instead of an icon on the fallback avatar.