feat: move version to top row of splash screen (DongLoRa left, vX.Y.Z right)

This commit is contained in:
swaits committed 2026-03-30 08:45:18 -06:00
1 parent 2633daf437
commit 57478c452a
1 file changed
+10 -12
+10 -12
View File
@@ -150,20 +150,18 @@ pub fn dashboard(
rssi_sparkline(target, rssi_history, tx_history, rssi_count); rssi_sparkline(target, rssi_history, tx_history, rssi_count);
} }
None => { None => {
// Row 1: "DongLoRa" in bold // Row 1: "DongLoRa" bold left, version small right
let title_style = MonoTextStyle::new(&FONT_9X15_BOLD, BinaryColor::On); let title_style = MonoTextStyle::new(&FONT_9X15_BOLD, BinaryColor::On);
Text::with_alignment( Text::new("DongLoRa", Point::new(4, 15), title_style)
"DongLoRa", .draw(target)
Point::new(W / 2, 15), .ok();
title_style,
Alignment::Center,
)
.draw(target)
.ok();
// Row 2: "Board Name v0.1.0"
buf.clear(); buf.clear();
let _ = write!(buf, "{} v{}", board.name, board.version); let _ = write!(buf, "v{}", board.version);
Text::with_alignment(&buf, Point::new(W / 2, 28), style, Alignment::Center) Text::with_alignment(&buf, Point::new(W - 2, 15), style, Alignment::Right)
.draw(target)
.ok();
// Row 2: board name
Text::with_alignment(board.name, Point::new(W / 2, 28), style, Alignment::Center)
.draw(target) .draw(target)
.ok(); .ok();
// Row 3: MAC address // Row 3: MAC address