aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-07-22 18:23:24 +0200
committerpml68 <contact@pml68.dev>2025-07-22 18:23:24 +0200
commitef7985c177c5ec6fe4d26559eca14c9f0b8bc69d (patch)
treeab49e7f2727e15de30a3b48e3ae6e25485b43f43 /src/lib.rs
parentchore: necessary updates for iced-rs/iced@e0d9078 (diff)
downloadiced_dialog-ef7985c177c5ec6fe4d26559eca14c9f0b8bc69d.tar.gz
style: organize imports
Diffstat (limited to '')
-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)