aboutsummaryrefslogtreecommitdiff
path: root/src/rule.rs
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/rule.rs
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/rule.rs5
1 files changed, 3 insertions, 2 deletions
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,
}
}