wip(theme): use transparent overlays for component colors where possible

This commit is contained in:
Ashley Wulber 2023-02-21 15:23:49 -05:00 committed by Jeremy Soller
parent 2dde95ee42
commit a449a52dee
8 changed files with 49 additions and 47 deletions

View file

@ -97,11 +97,11 @@ impl<'a, Message: 'static> From<SpinButton<'a, Message>> for Element<'a, Message
#[allow(clippy::trivially_copy_pass_by_ref)]
fn container_style(theme: &crate::Theme) -> iced_style::container::Appearance {
let secondary = &theme.cosmic().secondary;
let basic = &theme.cosmic().basic;
let accent = &theme.cosmic().accent;
iced_style::container::Appearance {
text_color: None,
background: Some(Background::Color(secondary.component.base.into())),
background: Some(Background::Color(basic.base.into())),
border_radius: 24.0,
border_width: 0.0,
border_color: accent.base.into(),