Skip to content

Commit

Permalink
Rendering selected topic top panel above all.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmackdev committed Oct 17, 2023
1 parent 14231d7 commit ff49bea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pubsubman/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@ impl App {
.and_then(|messages| messages.get(*idx))
});

egui::TopBottomPanel::top("topic_view_top_panel")
.frame(egui::Frame::side_top_panel(&ctx.style()).inner_margin(8.0))
.show(ctx, |ui| {
ui.vertical_centered(|ui| {
ui.heading(&selected_topic.0);
});
});

egui::SidePanel::right("selected_message")
.frame(egui::Frame::none())
.resizable(true)
Expand Down Expand Up @@ -299,14 +307,6 @@ impl App {
}
});

egui::TopBottomPanel::top("topic_view_top_panel")
.frame(egui::Frame::side_top_panel(&ctx.style()).inner_margin(8.0))
.show(ctx, |ui| {
ui.vertical_centered(|ui| {
ui.heading(&selected_topic.0);
});
});

egui::TopBottomPanel::bottom("topic_view_bottom_panel")
.resizable(true)
.frame(egui::Frame::side_top_panel(&ctx.style()).inner_margin(8.0))
Expand Down

0 comments on commit ff49bea

Please sign in to comment.