Polish styling of contacts popover

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-10-11 16:52:20 +02:00
parent 4504b36c8f
commit eb711cde53
4 changed files with 13 additions and 18 deletions

View file

@ -1087,14 +1087,11 @@ impl View for ContactList {
)
.with_child(
MouseEventHandler::<AddContact>::new(0, cx, |_, _| {
Svg::new("icons/user_plus_16.svg")
.with_color(theme.contact_list.add_contact_button.color)
.constrained()
.with_height(16.)
.contained()
.with_style(theme.contact_list.add_contact_button.container)
.aligned()
.boxed()
render_icon_button(
&theme.contact_list.add_contact_button,
"icons/user_plus_16.svg",
)
.boxed()
})
.with_cursor_style(CursorStyle::PointingHand)
.on_click(MouseButton::Left, |_, cx| {