From b12a0ebdbee262a624a091859a001a8aefeea8e8 Mon Sep 17 00:00:00 2001 From: rbmj Date: Tue, 11 Feb 2025 21:36:26 -0500 Subject: [PATCH] Bump egui versions --- nih_plug_egui/Cargo.toml | 4 ++-- nih_plug_egui/src/editor.rs | 1 + nih_plug_egui/src/widgets/param_slider.rs | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/nih_plug_egui/Cargo.toml b/nih_plug_egui/Cargo.toml index 0518f4b8..a3c28648 100644 --- a/nih_plug_egui/Cargo.toml +++ b/nih_plug_egui/Cargo.toml @@ -18,9 +18,9 @@ rayon = ["egui-baseview/rayon"] [dependencies] nih_plug = { path = "..", default-features = false } raw-window-handle = "0.5" -baseview = { git = "https://github.com/RustAudio/baseview.git", rev = "45465c5f46abed6c6ce370fffde5edc8e4cd5aa3" } +baseview = { git = "https://github.com/RustAudio/baseview.git", rev = "9a0b42c09d712777b2edb4c5e0cb6baf21e988f0", features = ['opengl'] } crossbeam = "0.8" -egui-baseview = { git = "https://github.com/BillyDM/egui-baseview.git", rev = "87a6cbead6cf89ca27c2f0448e480e901cc2754d", default-features = false } +egui-baseview = { git = "https://github.com/BillyDM/egui-baseview.git", reg = "ec70c3fe6b2f070dcacbc22924431edbe24bd1c0", default-features = false, features = ['opengl'] } parking_lot = "0.12" # To make the state persistable serde = { version = "1.0", features = ["derive"] } diff --git a/nih_plug_egui/src/editor.rs b/nih_plug_egui/src/editor.rs index edea9eb6..d5339379 100644 --- a/nih_plug_egui/src/editor.rs +++ b/nih_plug_egui/src/editor.rs @@ -101,6 +101,7 @@ where ..Default::default() }), }, + Default::default(), state, move |egui_ctx, _queue, state| build(egui_ctx, &mut state.write()), move |egui_ctx, queue, state| { diff --git a/nih_plug_egui/src/widgets/param_slider.rs b/nih_plug_egui/src/widgets/param_slider.rs index c9f5701b..40b6f725 100644 --- a/nih_plug_egui/src/widgets/param_slider.rs +++ b/nih_plug_egui/src/widgets/param_slider.rs @@ -236,6 +236,7 @@ impl<'a, P: Param> ParamSlider<'a, P> { response.rect, 0.0, Stroke::new(1.0, ui.visuals().widgets.active.bg_fill), + egui::StrokeKind::Middle, ); } } @@ -291,9 +292,10 @@ impl<'a, P: Param> ParamSlider<'a, P> { let stroke = visuals.bg_stroke; ui.painter().rect( response.rect.expand(visuals.expansion), - visuals.rounding, + visuals.rounding(), fill, stroke, + egui::StrokeKind::Middle, ); }