Skip to content

Commit

Permalink
Use status colors for contact availability indicators (#3704)
Browse files Browse the repository at this point in the history
This PR updates the availability indicators in the contact list to use
the status colors from the theme.

Release Notes:

- N/A
  • Loading branch information
maxdeviant authored Dec 18, 2023
1 parent 64ceb61 commit 734bbfa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/ui2/src/components/avatar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ impl RenderOnce for Avatar {
div()
.absolute()
.z_index(1)
.bg(if is_free { gpui::green() } else { gpui::red() })
.bg(if is_free {
cx.theme().status().created
} else {
cx.theme().status().deleted
})
.size(indicator_size)
.rounded(indicator_size)
.bottom_0()
Expand Down

0 comments on commit 734bbfa

Please sign in to comment.