1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Rename egui::containers::menu::Bar to egui::MenuBar (#7327)

The old name is still there, just deprecated.
This commit is contained in:
Emil Ernerfeldt
2025-07-10 10:33:48 +02:00
committed by GitHub
parent 8d2f39fc08
commit 9478a6223b
5 changed files with 29 additions and 11 deletions

View File

@@ -237,7 +237,7 @@ impl DemoWindows {
fn mobile_top_bar(&mut self, ctx: &Context) {
egui::TopBottomPanel::top("menu_bar").show(ctx, |ui| {
menu::Bar::new()
menu::MenuBar::new()
.config(menu::MenuConfig::new().style(StyleModifier::default()))
.ui(ui, |ui| {
let font_size = 16.5;
@@ -290,7 +290,7 @@ impl DemoWindows {
});
egui::TopBottomPanel::top("menu_bar").show(ctx, |ui| {
menu::Bar::new().ui(ui, |ui| {
menu::MenuBar::new().ui(ui, |ui| {
file_menu_button(ui);
});
});