chore: use with_alpha() where applicable
This commit is contained in:
parent
7748e59ae6
commit
ec7a531539
6 changed files with 57 additions and 91 deletions
|
|
@ -219,8 +219,6 @@ where
|
|||
#[allow(clippy::trivially_copy_pass_by_ref)]
|
||||
fn container_style(theme: &crate::Theme) -> iced_widget::container::Style {
|
||||
let cosmic_theme = &theme.cosmic();
|
||||
let mut neutral_10 = cosmic_theme.palette.neutral_10;
|
||||
neutral_10.alpha = 0.1;
|
||||
let accent = &cosmic_theme.accent;
|
||||
let corners = &cosmic_theme.corner_radii;
|
||||
let border = if theme.theme_type.is_high_contrast() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue