Update to egui 0.13 (#181)

This commit is contained in:
Jay Oster 2021-06-27 11:32:17 -07:00 committed by GitHub
parent c4df23f65d
commit ce549a79b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View file

@ -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"]

View file

@ -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() {