Add an icon size setting #3

Merged
nandi merged 1 commits from geordi/icon-size into main 2026-11-24 22:43:04 +00:00
Owner

Long-press the home screen → Icon size: a 70–160% slider (step 5) with Small (80) / Medium (100, today's size) / Large (130) presets and a live preview.

Scope: one setting for all icon grids (home screen and app drawer share the icon component/CSS; there is no dock). Icon, label font and row height scale together; the home and drawer column counts are recomputed (base*100/pct, min 3, never narrower than the icon), so nothing overlaps or clips at any size/width. Gaps between home rows/columns stay 8px (shared with the drag/resize math); horizontal spacing follows the column width, drawer row gap scales.

Persistence: localStorage['launcher.iconSize'] (same store as the layout), applied live, no restart. Default 100 = unchanged layout (snapshot differs only by --s:1).

Corrupt values: a stored/slider value that is not a whole number in range on the step is logged (console.error), shown as a notice and an alert in the Icon size sheet, left unchanged in storage until the user picks a size; the layout stays at 100%.

Tests: grid/scale unit tests (range, parse, scale, columns, no-overlap sweep over widths x sizes), app sim tests (menu, slider, presets, restore, corrupt, drag at 130%), browser e2e (geometry no overlap/clip, persistence, corrupt value). moon test js + wasm-gc, tests/e2e.cjs, tests/android-sim.cjs pass locally. Screenshots in docs/screenshots/06-10.

🤖 Generated with Claude Code

Long-press the home screen → **Icon size**: a 70–160% slider (step 5) with Small (80) / Medium (100, today's size) / Large (130) presets and a live preview. **Scope:** one setting for all icon grids (home screen and app drawer share the icon component/CSS; there is no dock). Icon, label font and row height scale together; the home and drawer column counts are recomputed (`base*100/pct`, min 3, never narrower than the icon), so nothing overlaps or clips at any size/width. Gaps between home rows/columns stay 8px (shared with the drag/resize math); horizontal spacing follows the column width, drawer row gap scales. **Persistence:** `localStorage['launcher.iconSize']` (same store as the layout), applied live, no restart. Default 100 = unchanged layout (snapshot differs only by `--s:1`). **Corrupt values:** a stored/slider value that is not a whole number in range on the step is logged (`console.error`), shown as a notice and an alert in the Icon size sheet, left unchanged in storage until the user picks a size; the layout stays at 100%. **Tests:** grid/scale unit tests (range, parse, scale, columns, no-overlap sweep over widths x sizes), app sim tests (menu, slider, presets, restore, corrupt, drag at 130%), browser e2e (geometry no overlap/clip, persistence, corrupt value). `moon test` js + wasm-gc, `tests/e2e.cjs`, `tests/android-sim.cjs` pass locally. Screenshots in docs/screenshots/06-10. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
nandi added 1 commit 2026-11-24 22:33:45 +00:00
Add an icon size setting for the home grid and the app drawer
Launcher / test (pull_request) Successful in 1m29s
Launcher / apk (pull_request) Skipped
23317b949a
Slider (70-160%, step 5) with Small/Medium/Large presets and a live preview in the
home menu. Icon, label and row height scale together; the home and drawer column
counts reflow; the size is saved in localStorage; a corrupt saved value is logged
and shown, not silently replaced. 100% is the original layout.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
nandi merged commit 472a48f4bd into main 2026-11-24 22:43:04 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: experiments/launcher#3