diff options
| author | 2024-05-08 19:16:20 +0900 | |
|---|---|---|
| committer | 2024-05-08 19:16:20 +0900 | |
| commit | ff26fb7df43bd241253af85e0621e2cc030e9cec (patch) | |
| tree | 2b3272bb178f8757169511966589fe6a106733f4 /examples/loupe/src | |
| parent | 0ebe0629cef37aee5c48b9409fc36618a3a3e60d (diff) | |
| parent | 477887b3870aa5fbdab96c3a06f3b930462d7842 (diff) | |
| download | iced-ff26fb7df43bd241253af85e0621e2cc030e9cec.tar.gz iced-ff26fb7df43bd241253af85e0621e2cc030e9cec.tar.bz2 iced-ff26fb7df43bd241253af85e0621e2cc030e9cec.zip | |
Merge branch 'iced-rs-master' into viewer_content_fit
Diffstat (limited to '')
| -rw-r--r-- | examples/loupe/src/main.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/loupe/src/main.rs b/examples/loupe/src/main.rs index 6a5ff123..c4d3b449 100644 --- a/examples/loupe/src/main.rs +++ b/examples/loupe/src/main.rs @@ -1,5 +1,5 @@ -use iced::widget::{button, column, container, text}; -use iced::{Alignment, Element, Length}; +use iced::widget::{button, center, column, text}; +use iced::{Alignment, Element}; use loupe::loupe; @@ -31,7 +31,7 @@ impl Loupe { } fn view(&self) -> Element<Message> { - container(loupe( + center(loupe( 3.0, column