diff options
| author | pml68 <contact@pml68.dev> | 2025-04-22 14:33:36 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-04-22 14:33:36 +0200 |
| commit | c3c05cef555de305729e53cef8b8e660e31eaf27 (patch) | |
| tree | a8f590846fe9b122361a12607e49e1be91d5bc72 /crates/material_theme/src/checkbox.rs | |
| parent | feat: use `pane_grid::Controls` for PaneGrid titlebar controls (diff) | |
| download | iced-builder-c3c05cef555de305729e53cef8b8e660e31eaf27.tar.gz | |
refactor: apply some clippy suggestions
Diffstat (limited to '')
| -rw-r--r-- | crates/material_theme/src/checkbox.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/material_theme/src/checkbox.rs b/crates/material_theme/src/checkbox.rs index ac1f974..ff038b0 100644 --- a/crates/material_theme/src/checkbox.rs +++ b/crates/material_theme/src/checkbox.rs @@ -18,7 +18,7 @@ impl Catalog for Theme { pub fn styled( background_color: Color, - background_hover: Option<Color>, + background_unchecked: Option<Color>, icon_color: Color, border_color: Color, text_color: Option<Color>, @@ -28,7 +28,7 @@ pub fn styled( background: Background::Color(if is_checked { background_color } else { - background_hover.unwrap_or(Color::TRANSPARENT) + background_unchecked.unwrap_or(Color::TRANSPARENT) }), icon_color, border: if is_checked { @@ -37,7 +37,7 @@ pub fn styled( Border { color: border_color, width: 2.0, - radius: border::radius(2), + radius: 2.into(), } }, text_color, |
