Misc · Time: Lap turns Reset, laps and tickers tested
The stopwatch's second button reads Lap while running and Reset once paused, on one focus handle, and Reset hands focus to Start, so no press leaves focus stranded. Lap rows carry selectors; tests hold their order and times, count the tickers' wakes, and a WorldClock without places fails.
This commit is contained in:
1 parent
45ae161c18
commit
b586300f0e
4 files changed
+127
-42
No files matched your search
@@ -64,7 +64,7 @@ fn clocks(cx: &App) -> impl IntoElement + use<> {
|
||||
fn stopwatch(cx: &App) -> impl IntoElement + use<> {
|
||||
section(
|
||||
"Stopwatch",
|
||||
"Time that runs while started and holds while paused, in tenths; Lap marks the time so far, Reset clears it once paused.",
|
||||
"Time that runs while started and holds while paused, in tenths. Lap marks the time so far; once paused, it reads Reset and clears it.",
|
||||
cx,
|
||||
)
|
||||
.child(probe("stopwatch-start", div().w(px(320.0)).child(Stopwatch::new("stopwatch"))))
|
||||
|
||||
Reference in new issue
Block a user