Add an icon size setting (#3)
Launcher / test (push) Successful in 1m59s
Launcher / apk (push) Successful in 38s

This commit was merged in pull request #3.
This commit is contained in:
nandi committed 2026-11-24 22:43:04 +00:00
1 parent 3070db4fb4
commit 472a48f4bd
22 files changed
+901 -51

No files matched your search

+8 -2
View File
@@ -1,11 +1,17 @@
# ultra launcher
An Android home screen, written in [MoonBit](https://www.moonbitlang.com). Home starts blank: long-press it to add apps (the drawer opens in a pick mode) or widgets, and long-press anything on it to drag it somewhere else; let go without moving to get its menu, or, for a widget, handles on its edges that resize it to the grid. Swipe down (or tap the search pill) for the drawer with every app and a search (Enter opens the first match); long-press an app there for its menu (add to home, app info, uninstall; system apps have no uninstall), and swipe up to close it. The **Windows** button in the panel at the top opens Recents. The layout is saved on the device, and the app updates itself from the latest release here.
An Android home screen, written in [MoonBit](https://www.moonbitlang.com). Home starts blank: long-press it to add apps (the drawer opens in a pick mode) or widgets, and long-press anything on it to drag it somewhere else; let go without moving to get its menu, or, for a widget, handles on its edges that resize it to the grid. **Icon size** in the same menu sets how big icons are (70%–160% in steps of 5, with Small / Medium / Large presets and a live preview; Medium, 100%, is the original size). It applies to the home screen and the app drawer together, scales icon, label and row height, and changes the column count so nothing overlaps or clips. Swipe down (or tap the search pill) for the drawer with every app and a search (Enter opens the first match); long-press an app there for its menu (add to home, app info, uninstall; system apps have no uninstall), and swipe up to close it. The **Windows** button in the panel at the top opens Recents. The layout is saved on the device, and the app updates itself from the latest release here.
| home | drawer | app menu | resize handles |
|---|---|---|---|
| ![home](docs/screenshots/01-home-with-apps.png) | ![drawer](docs/screenshots/03-drawer.png) | ![menu](docs/screenshots/04-drawer-app-menu.png) | ![resize](docs/screenshots/05-resize-handles.png) |
Icon size, before (100%) and at 130% / 70%, the drawer at 130%, and the error shown for a corrupt saved value:
| before | 130% | 70% | drawer 130% | corrupt value |
|---|---|---|---|---|
| ![before](docs/screenshots/06-icon-size-before.png) | ![large](docs/screenshots/07-icon-size-large.png) | ![small](docs/screenshots/08-icon-size-small.png) | ![drawer](docs/screenshots/09-icon-size-drawer-large.png) | ![corrupt](docs/screenshots/10-icon-size-corrupt.png) |
(Screenshots are of the browser demo at phone size.)
## Install
@@ -40,7 +46,7 @@ MoonBit owns the logic and the UI; Java is only what Android itself requires.
| package | what | tested by |
|---|---|---|
| `grid/` | the home grid: packing (dense, with pinned cells), cell/box math, pin, resize steps, widget columns | `moon test` |
| `grid/` | the home grid: packing (dense, with pinned cells), cell/box math, pin, resize steps, widget columns, and the icon size setting (range, parsing, row height, column counts) | `moon test` |
| `gesture/` | pointer state machine: tap, long press (500 ms, 10 px slop), drag, release, swipe | `moon test` |
| `updater/` | release/`version.json` parsing, `build-N` tags, the install/skip decision, 6 h throttle | `moon test` |
| `jsonx/` | small `Json` accessors | `moon test` |