refactor: use theme corner_radii

This commit is contained in:
Ashley Wulber 2023-12-13 13:41:39 -05:00 committed by Ashley Wulber
parent feb8075d2c
commit 3de4b99e66
6 changed files with 99 additions and 86 deletions

View file

@ -93,11 +93,12 @@ fn popover_menu() -> cosmic::Element<'static, Message> {
.height(Length::Shrink)
.apply(cosmic::widget::container)
.style(cosmic::theme::Container::custom(|theme| {
let cosmic = theme.cosmic();
container::Appearance {
icon_color: Some(theme.cosmic().background.on.into()),
text_color: Some(theme.cosmic().background.on.into()),
background: Some(iced::Color::from(theme.cosmic().background.base).into()),
border_radius: (12.0).into(),
border_radius: cosmic.corner_radii.radius_m.into(),
border_width: 0.0,
border_color: iced::Color::TRANSPARENT,
}