Skip to content
Snippets Groups Projects
Verified Commit 5e5c7a4f authored by rahix's avatar rahix
Browse files

fix(menu.py): Fix color-mismatch of selector background


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent e02671f1
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,12 @@ def draw_menu(disp, applist, idx, offset):
bg=COLOR1 if i % 2 == 0 else COLOR2,
)
disp.print(">", posy=20, fg=color.COMMYELLOW, bg=COLOR2 if idx % 2 == 0 else COLOR1)
disp.print(
">",
posy=20,
fg=color.COMMYELLOW,
bg=COLOR1 if (idx + len(applist)) % 2 == 0 else COLOR2,
)
disp.update()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment