From c4b152fd6aa3f440b9d90c5e8ffd03271716f9ef Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Sat, 16 May 2026 23:28:18 +0200 Subject: [PATCH] fix: clear arrow background in FullscreenMsgView to prevent text overlap Text lines fill the full display width, causing the last chars to bleed into the scroll arrow area. Draw a DARK fillRect behind each arrow before rendering it, so the arrow appears on a clean black background without truncating the text width. Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/ui-new/FullscreenMsgView.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/companion_radio/ui-new/FullscreenMsgView.h b/examples/companion_radio/ui-new/FullscreenMsgView.h index 1fa7bd0f..99b3317c 100644 --- a/examples/companion_radio/ui-new/FullscreenMsgView.h +++ b/examples/companion_radio/ui-new/FullscreenMsgView.h @@ -60,10 +60,16 @@ struct FullscreenMsgView { display.print(lines[scroll + i]); } if (scroll > 0) { + display.setColor(DisplayDriver::DARK); + display.fillRect(display.width() - 6, FS_START_Y, 6, FS_LINE_H); + display.setColor(DisplayDriver::LIGHT); display.setCursor(display.width() - 6, FS_START_Y); display.print("^"); } if (scroll < max_scroll) { + display.setColor(DisplayDriver::DARK); + display.fillRect(display.width() - 6, FS_START_Y + (FS_VISIBLE - 1) * FS_LINE_H, 6, FS_LINE_H); + display.setColor(DisplayDriver::LIGHT); display.setCursor(display.width() - 6, FS_START_Y + (FS_VISIBLE - 1) * FS_LINE_H); display.print("v"); }