From 5ee32ae555fee730cf3560f7a834688cc2e544a5 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 16 Dec 2024 21:17:38 +0100 Subject: [PATCH 1/2] bump egui to `0.30.0` --- Cargo.toml | 62 +++++++++++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1861728..c563b05 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,31 +1,31 @@ -[package] -name = "egui-notify" -version = "0.17.0" -edition = "2021" -license = "MIT" -repository = "https://github.com/ItsEthra/egui-notify" -description = "Simple notifications library for egui" -authors = ["ItsEthra"] -readme = "README.md" - -[lib] -path = "src/lib.rs" - -[dependencies] -egui = { version = "0.29", default-features = false } - -[dev-dependencies] -eframe = { version = "0.29", default-features = false, features = [ - "default_fonts", - "glow", -] } -egui-phosphor = { git = "https://github.com/ItsEthra/egui-phosphor", branch = "main" } - -[lints.rust] -unsafe_code = "forbid" - -[lints.clippy] -all = { level = "deny", priority = 0 } -unwrap_used = { level = "deny", priority = 1 } -expect_used = { level = "deny", priority = 1 } -enum_glob_use = { level = "deny", priority = 2 } +[package] +name = "egui-notify" +version = "0.17.0" +edition = "2021" +license = "MIT" +repository = "https://github.com/ItsEthra/egui-notify" +description = "Simple notifications library for egui" +authors = ["ItsEthra"] +readme = "README.md" + +[lib] +path = "src/lib.rs" + +[dependencies] +egui = { version = "0.30", default-features = false } + +[dev-dependencies] +eframe = { version = "0.30", default-features = false, features = [ + "default_fonts", + "glow", +] } +egui-phosphor = { git = "https://github.com/ItsEthra/egui-phosphor", branch = "main" } + +[lints.rust] +unsafe_code = "forbid" + +[lints.clippy] +all = { level = "deny", priority = 0 } +unwrap_used = { level = "deny", priority = 1 } +expect_used = { level = "deny", priority = 1 } +enum_glob_use = { level = "deny", priority = 2 } From 77a072ff7f13066e1545d74b88c0804524c06f2a Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 18 Dec 2024 19:38:57 +0100 Subject: [PATCH 2/2] fix tests --- Cargo.toml | 4 +++- examples/all.rs | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c563b05..96878fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,8 +18,10 @@ egui = { version = "0.30", default-features = false } eframe = { version = "0.30", default-features = false, features = [ "default_fonts", "glow", + "x11", + "wayland", ] } -egui-phosphor = { git = "https://github.com/ItsEthra/egui-phosphor", branch = "main" } +egui-phosphor = "0.8" [lints.rust] unsafe_code = "forbid" diff --git a/examples/all.rs b/examples/all.rs index 42d94d6..b9f1fcb 100644 --- a/examples/all.rs +++ b/examples/all.rs @@ -163,9 +163,9 @@ fn main() -> eframe::Result<()> { let mut font_def = FontDefinitions::default(); egui_phosphor::add_to_fonts(&mut font_def, egui_phosphor::Variant::Regular); - for data in font_def.font_data.values_mut() { - data.tweak.scale = 1.25; - } + // for data in font_def.font_data.values_mut() { + // data.tweak.scale = 1.25; + // } cc.egui_ctx.set_fonts(font_def); Ok(Box::new(ExampleApp {