Add a pinball game

This commit is contained in:
James Babcock committed 2026-07-26 21:03:52 -07:00
1 parent 434419c8e4
commit 4c946631e0
5 files changed
+1089 -1

No files matched your search

+1 -1
View File
@@ -180,7 +180,7 @@ class LauncherGridLayer implements Layer {
const blockTop = rowY(row) + Math.max(2, (rowH - ICON_SIZE - font.lineHeight - LABEL_GAP) / 2);
if (blockTop >= gridBottom) break; // fully below the grid
const centerX = (index % COLS) * colW + colW / 2;
const icon = renderIcon(entry.kind === "app" ? entry.icon : "folder", ICON_SIZE);
const icon = renderIcon(entry.kind === "app" ? entry.icon : "folder-filled", ICON_SIZE);
if (icon) {
// Clip the icon at the grid bottom so a peeking row shows only its top.
const clipHeight = Math.min(icon.height, Math.floor(gridBottom - blockTop));
+2
View File
@@ -13,7 +13,9 @@ const STORAGE_KEY = "launcher.folders";
/** The out-of-the-box grouping, applied only while the setting is unset. */
const DEFAULT_ASSIGNMENTS: Record<string, string> = {
blocks: "Games",
freecell: "Games",
minesweeper: "Games",
pinball: "Games",
};
export const FOLDER_NAME_MAX_LENGTH = 24;