diff options
author | Viljami Ilola <+@hix.fi> | 2024-04-08 18:48:00 +0300 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-04-08 18:48:00 +0300 |
commit | a30b2e7a43efda6088683fa84c0572c61337e642 (patch) | |
tree | 262e7a7e2363aaa885742193b1d01ce79981fca4 | |
parent | da33fc2f82a2919f9af7c7d1c8510c37435c5181 (diff) |
main menu colors
-rw-r--r-- | src/sliceitoff/screens/mainmenu.py | 10 |
1 files 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) ) |