Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bertiqwerty committed Aug 28, 2023
1 parent 7000dd9 commit bbb8c55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,13 @@ impl<'a> eframe::App for BalanceApp<'a> {
egui::ScrollArea::new([true, true]).show(ui, |ui| {
heading(ui, "Balance");
ui.separator();
let make_text = |txt|egui::RichText::new(txt).code().strong();
let make_text = |txt| egui::RichText::new(txt).code().strong();
if let Some(status_msg) = &self.status_msg {
ui.label(make_text(status_msg.as_str()));
} else if self.charts.persisted.is_empty() {
ui.label(make_text("Add simulated or historical charts to compute balances"));
ui.label(make_text(
"Add simulated or historical charts to compute balances",
));
} else {
ui.label(make_text("Balance computation ready"));
}
Expand Down

0 comments on commit bbb8c55

Please sign in to comment.