Compare commits

...

6 commits
1.0.11 ... main

Author SHA1 Message Date
foamyguy
508a0f5b87
Merge pull request #66 from FoamyGuy/order_app_icons
Some checks failed
Validate Build / validate-build (push) Has been cancelled
sort app icons by title. Remove unused iterator var
2025-08-22 11:46:37 -05:00
foamyguy
c24e40fd3f sort app icons by title. Remove unused iterator var 2025-08-22 11:42:23 -05:00
foamyguy
d96ee58a58
Merge pull request #64 from FoamyGuy/launcher_layout
Some checks failed
Validate Build / validate-build (push) Has been cancelled
Launcher layout improvements
2025-08-21 11:18:04 -05:00
foamyguy
a2253d6d5c
Merge pull request #63 from RetiredWizard/fruitjamaddminesw
Add PyPaint to included apps
2025-08-21 11:16:30 -05:00
foamyguy
13f6751504 more narrow arrow buttons. more room for app icon grid. move help text to single row at bottom. remove leftover hardcoded apps list. 2025-08-21 11:07:29 -05:00
RetiredWizard
bbbe417f6f Add PyPaint to included apps 2025-08-21 10:52:21 -04:00
4 changed files with 8 additions and 42 deletions

View file

@ -19,6 +19,7 @@ LEARN_PROJECT_PATHS = [
("Metro/Metro_RP2350_Minesweeper/", "Metro_RP2350_Minesweeper"),
("Fruit_Jam/Larsio_Paint_Music/", "Larsio_Paint_Music"),
("Fruit_Jam/Fruit_Jam_IRC_Client/", "Fruit_Jam_IRC_Client"),
("Fruit_Jam/Fruit_Jam_PyPaint/", "Fruit_Jam_PyPaint"),
]
def create_font_specific_zip(font_path: Path, src_dir: Path, learn_projects_dir: Path, output_dir: Path):

View file

@ -146,45 +146,13 @@ if "use_mouse" in launcher_config and launcher_config["use_mouse"]:
mouse_buf = array.array("b", [0] * 8)
WIDTH = int(280 / 360 * display.width // scale)
WIDTH = int(298 / 360 * display.width // scale)
HEIGHT = int(182 / 200 * display.height // scale)
config = {
"menu_title": "Launcher Menu",
"width": 3,
"height": 2,
"apps": [
{
"title": "🐍Snake🐍",
"icon": "icon_snake.bmp",
"file": "code_snake_game.py"
},
{
"title": "Nyan😺Flap",
"icon": "icon_flappynyan.bmp",
"file": "code_flappy_nyan.py"
},
{
"title": "Memory🧠",
"icon": "icon_memory.bmp",
"file": "code_memory.py"
},
{
"title": "Matrix",
"icon": "/apps/matrix/icon.bmp",
"file": "/apps/matrix/code.py"
},
{
"title": "Breakout",
"icon": "icon_breakout.bmp",
"file": "code_breakout.py"
},
{
"title": "Paint🖌",
"icon": "icon_paint.bmp",
}
]
}
cell_width = WIDTH // config["width"]
@ -207,7 +175,6 @@ scaled_group.append(menu_title_txt)
app_titles = []
apps = []
app_path = pathlib.Path("/apps")
i = 0
pages = [{}]
@ -248,7 +215,7 @@ for path in app_path.iterdir():
"dir": path
})
i += 1
apps = sorted(apps, key=lambda app: app["title"].lower())
print("launcher config", launcher_config)
if "favorites" in launcher_config:
@ -371,11 +338,11 @@ if "arrow" in launcher_config["palette"]:
left_tg = AnchoredTileGrid(bitmap=left_bmp, pixel_shader=left_palette)
left_tg.anchor_point = (0, 0.5)
left_tg.anchored_position = (4, (display.height // 2 // scale) - 2)
left_tg.anchored_position = (0, (display.height // 2 // scale) - 2)
right_tg = AnchoredTileGrid(bitmap=right_bmp, pixel_shader=right_palette)
right_tg.anchor_point = (1.0, 0.5)
right_tg.anchored_position = ((display.width // scale) - 4, (display.height // 2 // scale) - 2)
right_tg.anchored_position = ((display.width // scale), (display.height // 2 // scale) - 2)
original_arrow_btn_color = left_palette[2]
scaled_group.append(left_tg)
@ -389,13 +356,11 @@ if mouse:
scaled_group.append(mouse_tg)
help_txt = Label(terminalio.FONT, text="[Arrow]: Move\n[E]: Edit\n[Enter]: Run\n[1-9]: Page",
help_txt = Label(terminalio.FONT, text="[Arrow]: Move [E]: Edit [Enter]: Run [1-9]: Page",
color=int(launcher_config["palette"].get("fg", "0xffffff"), 16))
# help_txt = TextBox(terminalio.FONT, width=88, height=30, align=TextBox.ALIGN_RIGHT, background_color=int(launcher_config["palette"].get("accent", "0x008800"), 16), text="[E]: Edit\n[Enter]: Run")
help_txt.anchor_point = (0, 0)
help_txt.anchored_position = (2, 2)
# help_txt.anchored_position = (display.width - 89, 1)
help_txt.anchor_point = (0.0, 1.0)
help_txt.anchored_position = (2, display.height-2)
print(help_txt.bounding_box)
main_group.append(help_txt)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 918 B

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 918 B

After

Width:  |  Height:  |  Size: 918 B