From 57478c452a07efc0025cca28e3a6f2d21cade2a9 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 30 Mar 2026 08:45:18 -0600 Subject: [PATCH] feat: move version to top row of splash screen (DongLoRa left, vX.Y.Z right) --- src/display/render.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/display/render.rs b/src/display/render.rs index 98b218ea..d733930f 100644 --- a/src/display/render.rs +++ b/src/display/render.rs @@ -150,20 +150,18 @@ pub fn dashboard( rssi_sparkline(target, rssi_history, tx_history, rssi_count); } None => { - // Row 1: "DongLoRa" in bold + // Row 1: "DongLoRa" bold left, version small right let title_style = MonoTextStyle::new(&FONT_9X15_BOLD, BinaryColor::On); - Text::with_alignment( - "DongLoRa", - Point::new(W / 2, 15), - title_style, - Alignment::Center, - ) - .draw(target) - .ok(); - // Row 2: "Board Name v0.1.0" + Text::new("DongLoRa", Point::new(4, 15), title_style) + .draw(target) + .ok(); buf.clear(); - let _ = write!(buf, "{} v{}", board.name, board.version); - Text::with_alignment(&buf, Point::new(W / 2, 28), style, Alignment::Center) + let _ = write!(buf, "v{}", board.version); + 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) .ok(); // Row 3: MAC address