From ce549a79b69ecaaf325552b5a56fdcdaaa530f3b Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Sun, 27 Jun 2021 11:32:17 -0700 Subject: [PATCH] Update to egui 0.13 (#181) --- examples/egui-winit/Cargo.toml | 10 +++------- examples/egui-winit/src/gui.rs | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/egui-winit/Cargo.toml b/examples/egui-winit/Cargo.toml index 5f316eb..a6a1519 100644 --- a/examples/egui-winit/Cargo.toml +++ b/examples/egui-winit/Cargo.toml @@ -10,15 +10,11 @@ optimize = ["log/release_max_level_warn"] default = ["optimize"] [dependencies] -egui = "0.12" -egui_wgpu_backend = "0.9" +egui = "0.13" +egui_wgpu_backend = "0.10" +egui_winit_platform = { version = "0.9", features = ["webbrowser"] } env_logger = "0.8" log = "0.4" pixels = { path = "../.." } winit = "0.25" winit_input_helper = "0.10" - -[dependencies.egui_winit_platform] -git = "https://github.com/hasenbanck/egui_winit_platform.git" -rev = "ab576591949a2c0ac1494af52713a1771ff8326a" -features = ["webbrowser"] diff --git a/examples/egui-winit/src/gui.rs b/examples/egui-winit/src/gui.rs index e66f3b4..7a53637 100644 --- a/examples/egui-winit/src/gui.rs +++ b/examples/egui-winit/src/gui.rs @@ -80,7 +80,7 @@ impl Gui { /// Create the UI using egui. fn ui(&mut self, ctx: &egui::CtxRef) { - egui::TopPanel::top("menubar_container").show(ctx, |ui| { + egui::TopBottomPanel::top("menubar_container").show(ctx, |ui| { egui::menu::bar(ui, |ui| { egui::menu::menu(ui, "File", |ui| { if ui.button("About...").clicked() {