Add safe-zone padding to generated PWA icons #150
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Installed macOS PWA dock icons look cramped because
lapis.pngis full-bleed and the generator scaled it to fill the entire canvas.Problem
generate-pwa-icons.mjsusedfit: containon a square source, producing edge-to-edge PNGs with no inset. macOS then applies its squircle/background with little visible padding compared to other apps.Goal
Center the logo with recommended safe-zone padding in generated install icons.
Scope
packages/web/scripts/generate-pwa-icons.mjsto composite the logo at 82% scale foranyicons and 80% for maskable outputs.vite.config.ts.Acceptance Criteria
apple-touch-icon.pngandpwa-*.pngfiles inset the logo (~9% per side forany).Validation Commands
pnpm --filter @lapis-notes/web generate-iconspnpm --filter @lapis-notes/web check:allmake spec-lintImplementation Summary
PWA icon generator now composites lapis.png at 82% for any/apple-touch icons and 80% for dedicated maskable PNGs; manifest uses separate maskable entries. Regenerated public icons.