Use status colors for contact availability indicators (#3704)

This PR updates the availability indicators in the contact list to use
the status colors from the theme.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-12-18 16:56:44 -05:00 committed by GitHub
parent 64ceb61aa3
commit 734bbfa66f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()