aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2026-01-01 02:56:59 +0100
committerPolesznyák Márk <contact@pml68.dev>2026-01-01 02:56:59 +0100
commit702d23525a0ce1fb611936202b4d43c107fa921d (patch)
treec4377ab2c1c6a6f37299cf67ab4abb7b7f2c85a5 /src
parentchore: point iced deps to 0.15.0-dev (diff)
downloadiced_material-702d23525a0ce1fb611936202b4d43c107fa921d.tar.gz
feat!: remove feature flags that should be set on iced by the user
Diffstat (limited to '')
-rw-r--r--src/button.rs3
-rw-r--r--src/rule.rs5
2 files changed, 5 insertions, 3 deletions
diff --git a/src/button.rs b/src/button.rs
index 3b2d871..c4009c5 100644
--- a/src/button.rs
+++ b/src/button.rs
@@ -1,4 +1,5 @@
use iced_widget::button::{Catalog, Status, Style, StyleFn};
+use iced_widget::core::renderer::CRISP;
use iced_widget::core::{Background, Border, Color, border};
use crate::Theme;
@@ -32,7 +33,7 @@ pub fn styled(
text_color: foreground,
border: border::rounded(400),
shadow: shadow_from_elevation(elevation(elevation_level), shadow_color),
- snap: cfg!(feature = "crisp"),
+ snap: CRISP,
};
match status {
diff --git a/src/rule.rs b/src/rule.rs
index d1ccdaa..5894f58 100644
--- a/src/rule.rs
+++ b/src/rule.rs
@@ -1,4 +1,5 @@
use iced_widget::core::border::Radius;
+use iced_widget::core::renderer::CRISP;
use iced_widget::rule::{Catalog, FillMode, Style, StyleFn};
use super::Theme;
@@ -20,7 +21,7 @@ pub fn inset(theme: &Theme) -> Style {
color: theme.colors().outline.variant,
fill_mode: FillMode::Padded(8),
radius: Radius::default(),
- snap: cfg!(feature = "crisp"),
+ snap: CRISP,
}
}
pub fn full_width(theme: &Theme) -> Style {
@@ -28,6 +29,6 @@ pub fn full_width(theme: &Theme) -> Style {
color: theme.colors().outline.variant,
fill_mode: FillMode::Full,
radius: Radius::default(),
- snap: cfg!(feature = "crisp"),
+ snap: CRISP,
}
}