show selected file

This commit is contained in:
2025-11-17 16:13:33 -07:00
parent ccf4499f89
commit 55347be232
3 changed files with 16 additions and 6 deletions

View File

@@ -144,5 +144,11 @@ pub fn draw_text_center<'a, S>(
where
S: TextRenderer<Color = <Display as DrawTarget>::Color>,
{
Text::with_alignment(text, Point::zero(), style, Alignment::Center).draw(display)
Text::with_alignment(
text,
display.bounding_box().center(),
style,
Alignment::Center,
)
.draw(display)
}