fix(context menu): use radius from theme

This commit is contained in:
Vukašin Vojinović 2024-10-23 00:16:30 +02:00
parent 2871309f04
commit aa0a026855
2 changed files with 5 additions and 11 deletions

View file

@ -295,14 +295,14 @@ pub fn context_menu<'a>(
text_color: Some(component.on.into()),
background: Some(Background::Color(component.base.into())),
border: Border {
radius: 8.0.into(),
radius: cosmic.radius_s().into(),
width: 1.0,
color: component.divider.into(),
},
..Default::default()
}
})
.width(Length::Fixed(260.0))
.width(Length::Fixed(280.0))
.into()
}
@ -645,7 +645,7 @@ pub fn location_context_menu<'a>(ancestor_index: usize) -> Element<'a, tab::Mess
text_color: Some(component.on.into()),
background: Some(Background::Color(component.base.into())),
border: Border {
radius: 8.0.into(),
radius: cosmic.radius_s().into(),
width: 1.0,
color: component.divider.into(),
},