diff options
| author | pml68 <contact@pml68.dev> | 2025-06-25 01:07:20 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-06-25 01:07:20 +0200 |
| commit | 88f0b96572311a052708aadc54c1eb99be81c921 (patch) | |
| tree | 6f2607ceae0bf49247ef89534a56ade6fb7eb43e /crates/material_theme/src | |
| parent | refactor: simplify `material_theme::Theme`'s `Default` impl (diff) | |
| download | iced-builder-88f0b96572311a052708aadc54c1eb99be81c921.tar.gz | |
feat: update for hot reloading support
Diffstat (limited to 'crates/material_theme/src')
| -rw-r--r-- | crates/material_theme/src/button.rs | 1 | ||||
| -rw-r--r-- | crates/material_theme/src/rule.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/crates/material_theme/src/button.rs b/crates/material_theme/src/button.rs index 3f16bc7..2800ac4 100644 --- a/crates/material_theme/src/button.rs +++ b/crates/material_theme/src/button.rs @@ -32,6 +32,7 @@ fn button( text_color: foreground, border: border::rounded(400), shadow: shadow_from_elevation(elevation(elevation_level), shadow_color), + snap: cfg!(feature = "crisp"), }; match status { diff --git a/crates/material_theme/src/rule.rs b/crates/material_theme/src/rule.rs index 36e4dd4..77cb0ef 100644 --- a/crates/material_theme/src/rule.rs +++ b/crates/material_theme/src/rule.rs @@ -21,6 +21,7 @@ pub fn inset(theme: &Theme) -> Style { fill_mode: FillMode::Padded(8), width: 1, radius: Radius::default(), + snap: cfg!(feature = "crisp"), } } pub fn full_width(theme: &Theme) -> Style { @@ -29,5 +30,6 @@ pub fn full_width(theme: &Theme) -> Style { fill_mode: FillMode::Full, width: 1, radius: Radius::default(), + snap: cfg!(feature = "crisp"), } } |
