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,11 +128,20 @@ 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| {
.child_space(Stretch(1.0)) Label::new(cx, "When I grow up, I want to be a spectrum analyzer!");
.width(Percentage(100.0))
.background_color(DARK_GRAY) Label::new(
.height(Pixels(SPECTRUM_ANALYZER_HEIGHT as f32)); 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))
.width(Percentage(100.0))
.background_color(DARK_GRAY)
.height(Pixels(SPECTRUM_ANALYZER_HEIGHT as f32));
Label::new(cx, "Frequency") Label::new(cx, "Frequency")
.font_size(18.0) .font_size(18.0)