updated example

This commit is contained in:
2025-07-16 02:16:00 +03:00
parent 23b2e3c792
commit bcfcb55db3
5 changed files with 5 additions and 5 deletions

2
Cargo.lock generated
View File

@@ -825,7 +825,7 @@ dependencies = [
[[package]]
name = "egui_knob"
version = "0.3.1"
version = "0.3.2"
dependencies = [
"eframe",
"egui",

View File

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

View File

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

View File

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

BIN
scrot.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 46 KiB