diff --git a/Cargo.lock b/Cargo.lock index 9127894..5967bfb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -825,7 +825,7 @@ dependencies = [ [[package]] name = "egui_knob" -version = "0.3.1" +version = "0.3.2" dependencies = [ "eframe", "egui", diff --git a/Cargo.toml b/Cargo.toml index 3ffddab..717d4d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "egui_knob" -version = "0.3.1" +version = "0.3.2" edition = "2024" description = "A simple knob widget for egui" homepage = "https://github.com/obsqrbtz/egui_knob" diff --git a/README.md b/README.md index 0854eca..59d974a 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ To use the Knob widget in your project, add the following to your `Cargo.toml`: ```toml [dependencies] egui = "0.32" -egui_knob = "0.3.1" +egui_knob = "0.4.1" ``` ## Usage example diff --git a/examples/example_knob.rs b/examples/example_knob.rs index f51d6a1..067c4ad 100644 --- a/examples/example_knob.rs +++ b/examples/example_knob.rs @@ -22,7 +22,7 @@ struct KnobDemo { impl Default for KnobDemo { fn default() -> Self { Self { - values: [f32::NAN; 6], // Initialize with NaN to test NaN handling + values: [f32::NAN; 6], show_bg_arc: true, show_filled: true, use_step: false, @@ -36,7 +36,7 @@ impl Default for KnobDemo { impl eframe::App for KnobDemo { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { egui::CentralPanel::default().show(ctx, |ui| { - ui.heading("🎛 egui-knob Showcase"); + ui.heading("🎛 egui-knob example"); ui.separator(); ui.horizontal(|ui| { diff --git a/scrot.png b/scrot.png index 5dc2eb0..852bf23 100644 Binary files a/scrot.png and b/scrot.png differ