summaryrefslogtreecommitdiffstats
path: root/examples/qr_code/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qr_code/src/main.rs')
-rw-r--r--examples/qr_code/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/qr_code/src/main.rs b/examples/qr_code/src/main.rs
index 14db776e..f1b654e0 100644
--- a/examples/qr_code/src/main.rs
+++ b/examples/qr_code/src/main.rs
@@ -1,5 +1,5 @@
use iced::widget::{center, column, pick_list, qr_code, row, text, text_input};
-use iced::{Element, Theme};
+use iced::{Center, Element, Theme};
pub fn main() -> iced::Result {
iced::application(
@@ -58,7 +58,7 @@ impl QRGenerator {
pick_list(Theme::ALL, Some(&self.theme), Message::ThemeChanged,)
]
.spacing(10)
- .center_y();
+ .align_y(Center);
let content = column![title, input, choose_theme]
.push_maybe(
@@ -68,7 +68,7 @@ impl QRGenerator {
)
.width(700)
.spacing(20)
- .center_x();
+ .align_x(Center);
center(content).padding(20).into()
}