From 72dbce92eb7ee80319598719e966bb0b1e59b95a Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 11 Nov 2022 17:58:41 +0100 Subject: [PATCH] Add scaffolding for the X-Y pad --- plugins/diopser/src/editor.rs | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/plugins/diopser/src/editor.rs b/plugins/diopser/src/editor.rs index 3eb9df69..0c6fcc20 100644 --- a/plugins/diopser/src/editor.rs +++ b/plugins/diopser/src/editor.rs @@ -128,11 +128,20 @@ fn spectrum_analyzer(cx: &mut Context) { .child_space(Stretch(1.0)); VStack::new(cx, |cx| { - Label::new(cx, "When I grow up, I want to be a spectrum analyzer!") - .child_space(Stretch(1.0)) - .width(Percentage(100.0)) - .background_color(DARK_GRAY) - .height(Pixels(SPECTRUM_ANALYZER_HEIGHT as f32)); + 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)) + .width(Percentage(100.0)) + .background_color(DARK_GRAY) + .height(Pixels(SPECTRUM_ANALYZER_HEIGHT as f32)); Label::new(cx, "Frequency") .font_size(18.0)