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

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>
This commit is contained in:
SpriteandClaude Sonnet 5.5 committed 2026-11-24 22:32:50 +00:00
1 parent 3070db4fb4
commit 23317b949a
22 files changed
+901 -51

No files matched your search

+20 -5
View File
@@ -135,14 +135,19 @@ body { margin: 0; min-height: 100vh; color: #fff; -webkit-tap-highlight-color: t
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem;
padding: .35rem .15rem; border-radius: calc(var(--radius) + 4px); cursor: pointer; }
.tile:active { background: rgb(255 255 255 / .12); }
.icon { width: 3.25rem; height: 3.25rem; object-fit: contain; pointer-events: none;
/* --s is the icon size setting as a factor (1 = the original size); the model sets it on
the home grid, the drawer list and the sheet's preview, and picks the row height and
column count to match (app/view.mbt, grid/scale.mbt). */
.icon { width: calc(3.25rem * var(--s, 1)); height: calc(3.25rem * var(--s, 1)); object-fit: contain; pointer-events: none;
filter: drop-shadow(0 2px 4px rgb(0 0 0 / .3)); }
.icon.missing { border-radius: 999px; background: rgb(255 255 255 / .18); object-position: -999px 0; }
.name { max-width: 100%; font-size: .75rem; line-height: 1.2; text-align: center;
.name { max-width: 100%; font-size: calc(.75rem * var(--s, 1)); line-height: 1.2; text-align: center;
text-shadow: var(--shadow-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slots .tile { gap: .25rem; padding: .2rem .1rem; }
.slots .icon { width: 2.5rem; height: 2.5rem; }
.slots .name { font-size: .68rem; }
.slots .tile, .icon-preview .tile { gap: calc(.25rem * var(--s, 1)); padding: calc(.2rem * var(--s, 1)) .1rem; }
.slots .icon, .icon-preview .icon { width: calc(2.5rem * var(--s, 1)); height: calc(2.5rem * var(--s, 1)); }
.slots .name, .icon-preview .name { font-size: calc(.68rem * var(--s, 1)); }
.drawer .apps { gap: calc(1.25rem * var(--s, 1)) .5rem; }
.drawer .tile { gap: calc(.4rem * var(--s, 1)); }
/* A widget takes whole rows. On a phone the native widget view covers the slot;
the label only shows while the slot is not live (or in a desktop browser). */
@@ -263,6 +268,16 @@ button { cursor: pointer; }
background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sheet-item:hover, .sheet-item:active { background: var(--accent); }
.sheet .empty { text-shadow: none; color: var(--muted-foreground); }
/* ---- icon size sheet */
.icon-preview { list-style: none; margin: 0 0 1rem; padding: .75rem .5rem; display: flex; justify-content: space-around;
align-items: flex-start; min-height: 6rem; overflow: hidden; border-radius: var(--radius);
background: rgb(10 10 14 / .84); color: #fff; }
.icon-preview .tile { flex: 1 1 0; min-width: 0; cursor: default; }
.icon-size-row { display: flex; align-items: center; gap: .75rem; margin: 0 .5rem 1rem; }
.icon-size-slider { flex: 1; min-width: 0; height: 2rem; accent-color: var(--primary); touch-action: pan-y; }
.icon-size-value { min-width: 3.25rem; text-align: center; background: var(--secondary); }
.icon-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 .25rem 1rem; }
.icon-error { margin: 0 .25rem 1rem; }
.widget-list { list-style: none; margin: 0; padding: 0; display: grid; }
.widget-list li { display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: var(--radius);
cursor: pointer; }