diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/button.rs | 3 | ||||
| -rw-r--r-- | src/rule.rs | 5 |
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, } } |
