mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-02 18:26:11 +00:00
fix(ui): popup selection bar stops before the scroll-indicator gutter
Matches every other list (drawList's row width - reserve): the highlight shouldn't paint over the indicator's column, just frame it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
2560ec4cef
commit
99cbe51797
@@ -106,7 +106,10 @@ struct PopupMenu {
|
|||||||
int py = list_y + i * item_h + 1;
|
int py = list_y + i * item_h + 1;
|
||||||
if (idx == _sel) {
|
if (idx == _sel) {
|
||||||
display.setColor(DisplayDriver::LIGHT);
|
display.setColor(DisplayDriver::LIGHT);
|
||||||
display.fillRect(bx + 1, py - 1, bw - 2, item_h);
|
// Stops short of the scroll-indicator gutter, like every other list's
|
||||||
|
// selection bar (e.g. drawList's row width - reserve) — otherwise the
|
||||||
|
// bar paints over the indicator's column instead of framing it.
|
||||||
|
display.fillRect(bx + 1, py - 1, bw - 2 - arrow_w, item_h);
|
||||||
display.setColor(DisplayDriver::DARK);
|
display.setColor(DisplayDriver::DARK);
|
||||||
} else {
|
} else {
|
||||||
display.setColor(DisplayDriver::LIGHT);
|
display.setColor(DisplayDriver::LIGHT);
|
||||||
|
|||||||
Reference in New Issue
Block a user