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
+6 -2
View File
@@ -486,8 +486,12 @@ impl CollabTitlebarItem {
.child(
Avatar::new(user.avatar_uri.clone())
.grayscale(!is_present)
.when(is_speaking, |avatar| {
avatar.border_color(cx.theme().status().info_border)
.border_color(if is_speaking {
cx.theme().status().info_border
} else {
// We draw the border in a transparent color rather to avoid
// the layout shift that would come with adding/removing the border.
gpui::transparent_black()
})
.when(is_muted, |avatar| {
avatar.indicator(