From 37e98a7009f8bd3a333cb3ba386689a73ebee423 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 1 Mar 2022 15:17:08 -0500 Subject: [PATCH] collapsing headers --- src/egui_app.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/egui_app.rs b/src/egui_app.rs index 77cd399..8c7b971 100644 --- a/src/egui_app.rs +++ b/src/egui_app.rs @@ -173,11 +173,13 @@ impl epi::App for MathApp { .open(&mut self.help_open) .resizable(false) .show(ctx, |ui| { - ui.heading("Supported Expressions"); - ui.label(HELP1_TEXT); + ui.collapsing("Supported Expressions", |ui| { + ui.label(HELP1_TEXT); + }); - ui.heading("Buttons"); - ui.label(HELP2_TEXT); + ui.collapsing("Buttons", |ui| { + ui.label(HELP2_TEXT); + }); }); let mut parse_error: String = String::new(); // Stores errors found when interpreting input functions