feat: exposed label format

This commit is contained in:
2025-02-04 09:17:23 +03:00
parent b141db8cd4
commit 19b0ff5405
2 changed files with 11 additions and 3 deletions

View File

@@ -115,7 +115,8 @@ impl eframe::App for KnobExample {
egui::Color32::from_rgb(50, 220, 50),
egui::Color32::from_rgb(100, 255, 100),
)
.with_size(50.0),
.with_size(50.0)
.with_label_format(|v| format!("{:.2}%", v)),
);
ui.add(