mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-02 10:16:11 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
5d41812784
commit
c4b152fd6a
@@ -60,10 +60,16 @@ struct FullscreenMsgView {
|
|||||||
display.print(lines[scroll + i]);
|
display.print(lines[scroll + i]);
|
||||||
}
|
}
|
||||||
if (scroll > 0) {
|
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.setCursor(display.width() - 6, FS_START_Y);
|
||||||
display.print("^");
|
display.print("^");
|
||||||
}
|
}
|
||||||
if (scroll < max_scroll) {
|
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.setCursor(display.width() - 6, FS_START_Y + (FS_VISIBLE - 1) * FS_LINE_H);
|
||||||
display.print("v");
|
display.print("v");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user