aboutsummaryrefslogtreecommitdiff
path: root/src/rule.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.rs')
-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,
}
}