summaryrefslogtreecommitdiffstats
path: root/widget/src/helpers.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-12 18:12:34 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-12 18:12:34 +0200
commit76737351ea9e116291112b7d576d9ed4f6bb5c2a (patch)
treea3b514583ab6f8981fb7656adb9d4d10ce9c466a /widget/src/helpers.rs
parentf9dd5cbb099bbe44a57b6369be54a442363b7a8d (diff)
downloadiced-76737351ea9e116291112b7d576d9ed4f6bb5c2a.tar.gz
iced-76737351ea9e116291112b7d576d9ed4f6bb5c2a.tar.bz2
iced-76737351ea9e116291112b7d576d9ed4f6bb5c2a.zip
Re-export variants of `Length` and `alignment` types
Diffstat (limited to 'widget/src/helpers.rs')
-rw-r--r--widget/src/helpers.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs
index f27b7807..1f282f54 100644
--- a/widget/src/helpers.rs
+++ b/widget/src/helpers.rs
@@ -906,7 +906,7 @@ where
+ 'a,
Theme: text::Catalog + crate::svg::Catalog + 'a,
{
- use crate::core::Font;
+ use crate::core::{Alignment, Font};
use crate::svg;
use once_cell::sync::Lazy;
@@ -921,7 +921,7 @@ where
text("iced").size(text_size).font(Font::MONOSPACE)
]
.spacing(text_size.0 / 3.0)
- .center_y()
+ .align_y(Alignment::Center)
.into()
}