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:
parent
64ceb61aa3
commit
734bbfa66f
1 changed files with 5 additions and 1 deletions
|
@ -47,7 +47,11 @@ impl RenderOnce for Avatar {
|
||||||
div()
|
div()
|
||||||
.absolute()
|
.absolute()
|
||||||
.z_index(1)
|
.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)
|
.size(indicator_size)
|
||||||
.rounded(indicator_size)
|
.rounded(indicator_size)
|
||||||
.bottom_0()
|
.bottom_0()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue