From: Huck Boles Date: Sun, 9 Jul 2023 18:35:31 +0000 (-0500) Subject: fixed: value now below slider for better balance in random section X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=5b136dd4e368950ac85d66aafa4af7b5b1b2ae65;p=cellseq.git fixed: value now below slider for better balance in random section --- diff --git a/src/display.rs b/src/display.rs index b391147..44b010a 100644 --- a/src/display.rs +++ b/src/display.rs @@ -225,11 +225,15 @@ fn randomize_section<'a>(r: f32) -> Element<'a, Message> { button("randomize map") .on_press(Message::RandomizeMap) .style(theme::Button::Primary), - slider(0.0..=100.0, r * 100.0, |x| { - Message::RandChanged(x / 100.0) - }) - .width(Length::Fixed(300.0)), - text(format!("{r}")), + column![ + slider(0.0..=100.0, r * 100.0, |x| { + Message::RandChanged(x / 100.0) + }) + .width(Length::Fixed(300.0)), + text(format!("{r}")), + ] + .spacing(10) + .align_items(Alignment::Center), button("randomize mask") .on_press(Message::RandomizeMask) .style(theme::Button::Primary),