use no border for the CentralPanel

This commit is contained in:
Simon Gardling 2022-04-22 00:42:17 -04:00
parent 9c6e18dc7f
commit fb0b076f62

View File

@ -531,7 +531,9 @@ impl epi::App for MathApp {
// Central panel which contains the central plot (or an error created when // Central panel which contains the central plot (or an error created when
// parsing) // parsing)
CentralPanel::default().show(ctx, |ui| { CentralPanel::default()
.frame(egui::Frame::none())
.show(ctx, |ui| {
// Display an error if it exists // Display an error if it exists
let errors_formatted: String = self let errors_formatted: String = self
.functions .functions
@ -541,7 +543,9 @@ impl epi::App for MathApp {
.filter(|(_, error)| error.is_some()) .filter(|(_, error)| error.is_some())
.map(|(i, error)| { .map(|(i, error)| {
// use unwrap_unchecked as None Errors are already filtered out // use unwrap_unchecked as None Errors are already filtered out
unsafe { format!("(Function #{}) {}\n", i, error.as_ref().unwrap_unchecked()) } unsafe {
format!("(Function #{}) {}\n", i, error.as_ref().unwrap_unchecked())
}
}) })
.collect::<String>(); .collect::<String>();
@ -585,7 +589,9 @@ impl epi::App for MathApp {
.functions .functions
.iter() .iter()
.enumerate() .enumerate()
.map(|(i, function)| function.display(plot_ui, &self.settings, COLORS[i])) .map(|(i, function)| {
function.display(plot_ui, &self.settings, COLORS[i])
})
.collect(); .collect();
}); });
}); });