From b34fc6b4a9d4fce6202625e6e45cbdf3f7961f52 Mon Sep 17 00:00:00 2001 From: Matthew Edell <64813455+xhudaman@users.noreply.github.com> Date: Tue, 9 May 2023 10:40:42 -0400 Subject: [PATCH] Fixed bug where icons show on slider menu (#528) * Fixed bug by hiding icon for buttons when rendering Slider Menu * Fixed formatting * Fixed build --- src/training/ui/menu.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/training/ui/menu.rs b/src/training/ui/menu.rs index 294e1afe4..ec1a43edd 100644 --- a/src/training/ui/menu.rs +++ b/src/training/ui/menu.rs @@ -337,6 +337,12 @@ unsafe fn render_slider_page(app: &App, root_pane: &mut Pane) { min_value_text.set_visible(true); max_value_text.set_visible(true); + + // Hide the Icon pane for MinButton and MaxButton + [min_button, max_button].iter().for_each(|button| { + let icon = button.find_pane_by_name_recursive("Icon").unwrap(); + icon.set_visible(false); + }); } pub unsafe fn draw(root_pane: &mut Pane) {