1
0
Fork 0

Add scaffolding for the X-Y pad

This commit is contained in:
Robbert van der Helm 2022-11-11 17:58:41 +01:00
parent 6e103baf4d
commit 72dbce92eb

View file

@ -128,7 +128,16 @@ fn spectrum_analyzer(cx: &mut Context) {
.child_space(Stretch(1.0)); .child_space(Stretch(1.0));
VStack::new(cx, |cx| { VStack::new(cx, |cx| {
Label::new(cx, "When I grow up, I want to be a spectrum analyzer!") ZStack::new(cx, |cx| {
Label::new(cx, "When I grow up, I want to be a spectrum analyzer!");
Label::new(
cx,
"When I close my eyes sometimes I\npretend to be an X-Y pad.",
)
.font_size(25.0)
.rotate(17.0f32);
})
.child_space(Stretch(1.0)) .child_space(Stretch(1.0))
.width(Percentage(100.0)) .width(Percentage(100.0))
.background_color(DARK_GRAY) .background_color(DARK_GRAY)