aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ccf7da0..6f105de 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,9 +1,8 @@
#![doc = include_str!("../README.md")]
pub mod dialog;
pub use dialog::Dialog;
-use iced_core as core;
-use iced_core::alignment::Horizontal;
use iced_widget::Button;
+use iced_widget::core;
use iced_widget::{container, text};
/// Creates a new [`Dialog`] with the given base and dialog content.
@@ -37,7 +36,7 @@ where
text(content)
.size(14)
.line_height(text::LineHeight::Absolute(core::Pixels(20.0)))
- .align_x(Horizontal::Center),
+ .align_x(core::Alignment::Center),
)
.on_press(message)
.height(32)