Skip to content

Commit

Permalink
Fixed Status message window (#1551)
Browse files Browse the repository at this point in the history
Updated status window
  • Loading branch information
tmayoff authored Jan 31, 2023
1 parent 36ea393 commit 97881db
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions crates/fj-viewer/src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,20 @@ impl Gui {
ui.add_space(16.0);
});

egui::Area::new("fj-status-message").show(&self.context, |ui| {
ui.group(|ui| {
ui.add(egui::Label::new(
egui::RichText::new(format!(
"Status:{}",
state.status.status()
egui::Window::new("Status")
.min_width(400.0)
.min_height(200.0)
.collapsible(true)
.resizable(true)
.show(&self.context, |ui| {
egui::ScrollArea::both().show(ui, |ui| {
ui.add(egui::Label::new(
egui::RichText::new(state.status.status())
.monospace()
.color(egui::Color32::WHITE),
))
.monospace()
.color(egui::Color32::BLACK)
.background_color(egui::Color32::WHITE),
))
})
});
});
});

let mut new_model_path = None;

Expand Down

0 comments on commit 97881db

Please sign in to comment.