From 175dddddfcd3e1252f372e13ce8b4d3e0af62d08 Mon Sep 17 00:00:00 2001 From: Benign X <1341398182@qq.com> Date: Wed, 20 Dec 2023 20:09:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=86(Update):=20Upgrade=20eframe=20and?= =?UTF-8?q?=20related=20dependencies=20to=20version=200.24.0,=20adjust=20v?= =?UTF-8?q?iewport=20settings=20in=20main.rs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Benign X <1341398182@qq.com> --- Cargo.toml | 12 ++++++------ src/main.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f866e4e..e24f109 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,9 +10,9 @@ authors = ["W-Mai", "Benign X"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -egui_plot = "0.23.0" -egui_extras = "0.23.0" -egui_code_editor = "0.1.8" +egui_plot = "0.24.0" +egui_extras = "0.24.0" +egui_code_editor = "0.1.9" log = "0.4.19" @@ -22,7 +22,7 @@ dyn-clone = "1.0.16" # native: [target.'cfg(all(not(target_arch = "wasm32"), platform = "macos"))'.dependencies] -eframe = { version = "0.23.0", default-features = false, features = [ +eframe = { version = "0.24.0", default-features = false, features = [ "__screenshot", "default_fonts", "wgpu", @@ -30,7 +30,7 @@ eframe = { version = "0.23.0", default-features = false, features = [ env_logger = "0.10" [target.'cfg(all(not(target_arch = "wasm32"), not(platform = "macos")))'.dependencies] -eframe = { version = "0.23.0", default-features = false, features = [ +eframe = { version = "0.24.0", default-features = false, features = [ "__screenshot", "default_fonts", "glow", @@ -39,7 +39,7 @@ env_logger = "0.10" # web: [target.'cfg(target_arch = "wasm32")'.dependencies] -eframe = { version = "0.23.0", default-features = false, features = [ +eframe = { version = "0.24.0", default-features = false, features = [ "__screenshot", "default_fonts", "glow", diff --git a/src/main.rs b/src/main.rs index a42f20f..99fdb82 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ use vegravis::MainApp; fn main() -> Result<(), eframe::Error> { env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`). let options = eframe::NativeOptions { - initial_window_size: Some(eframe::egui::vec2(1440.0, 960.0)), + viewport: eframe::egui::ViewportBuilder::default().with_inner_size([1440.0, 960.0]), ..Default::default() }; eframe::run_native(