From 734bbfa66f268220c849455568f467427884eed7 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 18 Dec 2023 16:56:44 -0500 Subject: [PATCH] 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 --- crates/ui2/src/components/avatar.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ui2/src/components/avatar.rs b/crates/ui2/src/components/avatar.rs index 33c8d716251b638eccd2431ef5742fca9d99ca4e..0ab6ce2d85bf39c75f34d8c89849df02752d05ba 100644 --- a/crates/ui2/src/components/avatar.rs +++ b/crates/ui2/src/components/avatar.rs @@ -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()