fix(applet): applet popups should have a 1px border

This commit is contained in:
Ashley Wulber 2023-10-18 18:03:30 -04:00
parent 7cc791a3f5
commit 91b505a681
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -166,13 +166,17 @@ impl Context {
}; };
Container::<Message, Renderer>::new(Container::<Message, Renderer>::new(content).style( Container::<Message, Renderer>::new(Container::<Message, Renderer>::new(content).style(
theme::Container::custom(|theme| Appearance { theme::Container::custom(|theme| {
text_color: Some(theme.cosmic().background.on.into()), let cosmic = theme.cosmic();
background: Some(Color::from(theme.cosmic().background.base).into()),
Appearance {
text_color: Some(cosmic.background.on.into()),
background: Some(Color::from(cosmic.background.base).into()),
border_radius: 12.0.into(), border_radius: 12.0.into(),
border_width: 0.0, border_width: 1.0,
border_color: Color::TRANSPARENT, border_color: cosmic.background.divider.into(),
icon_color: Some(theme.cosmic().background.on.into()), icon_color: Some(cosmic.background.on.into()),
}
}), }),
)) ))
.width(Length::Shrink) .width(Length::Shrink)