We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 773232b commit 81b7e7fCopy full SHA for 81b7e7f
crates/egui/src/widgets/spinner.rs
@@ -43,7 +43,7 @@ impl Spinner {
43
.color
44
.unwrap_or_else(|| ui.visuals().strong_text_color());
45
let radius = (rect.height() / 2.0) - 2.0;
46
- let n_points = 20;
+ let n_points = (radius.round() as u32).clamp(8, 128);
47
let time = ui.input(|i| i.time);
48
let start_angle = time * std::f64::consts::TAU;
49
let end_angle = start_angle + 240f64.to_radians() * time.sin();
0 commit comments