diff options
| author | pml68 <contact@pml68.dev> | 2025-07-22 18:23:24 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-07-22 18:23:24 +0200 |
| commit | ef7985c177c5ec6fe4d26559eca14c9f0b8bc69d (patch) | |
| tree | ab49e7f2727e15de30a3b48e3ae6e25485b43f43 /src/lib.rs | |
| parent | chore: necessary updates for iced-rs/iced@e0d9078 (diff) | |
| download | iced_dialog-ef7985c177c5ec6fe4d26559eca14c9f0b8bc69d.tar.gz | |
style: organize imports
Diffstat (limited to '')
| -rw-r--r-- | src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) |
