Upgrade Vizia for the cosmic-text changes

This brings some breaking changes, and vertical positioning of text may
have changed slightly.
This commit is contained in:
Robbert van der Helm
2023-01-12 18:49:55 +01:00
parent e5a26ac199
commit bb521fcb82
14 changed files with 266 additions and 131 deletions

View File

@@ -51,7 +51,9 @@ pub(crate) fn create(
VStack::new(cx, |cx| {
Label::new(cx, "Crisp")
.font(assets::NOTO_SANS_THIN)
.font_family(vec![FamilyOwned::Name(String::from(
assets::NOTO_SANS_THIN,
))])
.font_size(30.0)
.height(Pixels(50.0))
.child_top(Stretch(1.0))