0
0
Fork 0

spat: Show signal groups without timing information

This commit is contained in:
Jannik Beyerstedt 2026-06-19 22:03:59 +02:00
commit ff45df8204
4 changed files with 35 additions and 24 deletions

View file

@ -113,13 +113,15 @@ where
.draw(target)?;
// draw timing indicator
text::Text::with_alignment(
&alloc::format!("{}s", sig.min_end_sec),
geometry::Point::new(centerline, 160),
text_style,
text::Alignment::Center,
)
.draw(target)?;
if let Some(min_end_sec) = sig.min_end_sec {
text::Text::with_alignment(
&alloc::format!("{min_end_sec}s"),
geometry::Point::new(centerline, 160),
text_style,
text::Alignment::Center,
)
.draw(target)?;
}
}
Ok(())