This commit is contained in:
Antonio Scandurra 2022-10-11 18:34:04 +02:00
parent ba6c5441c0
commit f26695ea8c

View file

@ -776,8 +776,8 @@ impl ContactList {
let header_style = theme.header_row.style_for(Default::default(), is_selected); let header_style = theme.header_row.style_for(Default::default(), is_selected);
let text = match section { let text = match section {
Section::ActiveCall => "Call", Section::ActiveCall => "Collaborators",
Section::Requests => "Requests", Section::Requests => "Contact Requests",
Section::Online => "Online", Section::Online => "Online",
Section::Offline => "Offline", Section::Offline => "Offline",
}; };
@ -785,7 +785,7 @@ impl ContactList {
Some( Some(
MouseEventHandler::<LeaveCall>::new(0, cx, |state, _| { MouseEventHandler::<LeaveCall>::new(0, cx, |state, _| {
let style = theme.leave_call.style_for(state, false); let style = theme.leave_call.style_for(state, false);
Label::new("Leave".into(), style.text.clone()) Label::new("Leave Session".into(), style.text.clone())
.contained() .contained()
.with_style(style.container) .with_style(style.container)
.boxed() .boxed()
@ -1096,6 +1096,13 @@ impl View for ContactList {
.on_click(MouseButton::Left, |_, cx| { .on_click(MouseButton::Left, |_, cx| {
cx.dispatch_action(contacts_popover::ToggleContactFinder) cx.dispatch_action(contacts_popover::ToggleContactFinder)
}) })
.with_tooltip::<AddContact, _>(
0,
"Add contact".into(),
None,
theme.tooltip.clone(),
cx,
)
.boxed(), .boxed(),
) )
.constrained() .constrained()