From a30b2e7a43efda6088683fa84c0572c61337e642 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Mon, 8 Apr 2024 18:48:00 +0300 Subject: main menu colors --- src/sliceitoff/screens/mainmenu.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sliceitoff/screens/mainmenu.py b/src/sliceitoff/screens/mainmenu.py index 2eacefe..8e1f876 100644 --- a/src/sliceitoff/screens/mainmenu.py +++ b/src/sliceitoff/screens/mainmenu.py @@ -4,9 +4,9 @@ from text import TextPage def mainmenu_screen(selection): """ Screen where current selection is flashing """ - active = randrange(0xe0,0xf0) - inactive = 0xe8 - return TextPage( + active = randrange(0xe9,0xf0) + inactive = 0xe7 + text = ( f" Slice it off!!\n" f"\n\n" f"{chr(active if selection == 0 else inactive)}" @@ -16,7 +16,9 @@ def mainmenu_screen(selection): f"{chr(active if selection == 2 else inactive)}" f"Instructions\n\n" f"{chr(active if selection == 3 else inactive)}" - f"Quit, Why?", + f"Quit, Why?") + return TextPage( + text, font = '8x8', size = (16_000, 16_000), pos = (24_000, 32_000) ) -- cgit v1.2.3