use no border for the CentralPanel
This commit is contained in:
parent
9c6e18dc7f
commit
fb0b076f62
@ -531,7 +531,9 @@ impl epi::App for MathApp {
|
||||
|
||||
// Central panel which contains the central plot (or an error created when
|
||||
// parsing)
|
||||
CentralPanel::default().show(ctx, |ui| {
|
||||
CentralPanel::default()
|
||||
.frame(egui::Frame::none())
|
||||
.show(ctx, |ui| {
|
||||
// Display an error if it exists
|
||||
let errors_formatted: String = self
|
||||
.functions
|
||||
@ -541,7 +543,9 @@ impl epi::App for MathApp {
|
||||
.filter(|(_, error)| error.is_some())
|
||||
.map(|(i, error)| {
|
||||
// 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>();
|
||||
|
||||
@ -585,7 +589,9 @@ impl epi::App for MathApp {
|
||||
.functions
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(i, function)| function.display(plot_ui, &self.settings, COLORS[i]))
|
||||
.map(|(i, function)| {
|
||||
function.display(plot_ui, &self.settings, COLORS[i])
|
||||
})
|
||||
.collect();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user