mirror of
https://github.com/obsqrbtz/egui_knob.git
synced 2026-04-08 20:19:17 +03:00
feat: exposed label format
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user