Move contacts panel styles into contacts popover

This commit is contained in:
Antonio Scandurra 2022-10-06 14:07:21 +02:00
parent 40163da679
commit c43956d70a
6 changed files with 198 additions and 225 deletions

View file

@ -82,7 +82,7 @@ impl IncomingCallNotification {
}
fn render_caller(&self, cx: &mut RenderContext<Self>) -> ElementBox {
let theme = &cx.global::<Settings>().theme.contacts_panel;
let theme = &cx.global::<Settings>().theme.contacts_popover;
Flex::row()
.with_children(
self.call
@ -108,7 +108,7 @@ impl IncomingCallNotification {
Flex::row()
.with_child(
MouseEventHandler::<Accept>::new(0, cx, |_, cx| {
let theme = &cx.global::<Settings>().theme.contacts_panel;
let theme = &cx.global::<Settings>().theme.contacts_popover;
Label::new("Accept".to_string(), theme.contact_username.text.clone()).boxed()
})
.on_click(MouseButton::Left, |_, cx| {
@ -118,7 +118,7 @@ impl IncomingCallNotification {
)
.with_child(
MouseEventHandler::<Decline>::new(0, cx, |_, cx| {
let theme = &cx.global::<Settings>().theme.contacts_panel;
let theme = &cx.global::<Settings>().theme.contacts_popover;
Label::new("Decline".to_string(), theme.contact_username.text.clone()).boxed()
})
.on_click(MouseButton::Left, |_, cx| {