Increase border width used to indicate speaking (#4077)

This PR increases the width of the border that we use to indicate when a
call participant is speaking.

This should make it more apparent in the UI when someone is speaking.

Release Notes:

- Increased the width of the ring used to indicate when someone is
speaking in a call.
This commit is contained in:
Marshall Bowers
2024-01-16 17:09:28 -05:00
committed by GitHub
parent c8a6b0d8aa
commit 4e8ad363f1
4 changed files with 75 additions and 26 deletions
+11 -4
View File
@@ -99,20 +99,27 @@ impl RenderOnce for Avatar {
self = self.shape(AvatarShape::Circle);
}
let size = self.size.unwrap_or_else(|| cx.rem_size());
let border_width = if self.border_color.is_some() {
px(2.)
} else {
px(0.)
};
let image_size = self.size.unwrap_or_else(|| cx.rem_size());
let container_size = image_size + border_width * 2.;
div()
.size(size + px(2.))
.size(container_size)
.map(|mut div| {
div.style().corner_radii = self.image.style().corner_radii.clone();
div
})
.when_some(self.border_color, |this, color| {
this.border().border_color(color)
this.border_width(border_width).border_color(color)
})
.child(
self.image
.size(size)
.size(image_size)
.bg(cx.theme().colors().ghost_element_background),
)
.children(