Skip to content

feat: --size WxH — the widget footprint becomes a flag#2

Open
liuzl wants to merge 1 commit into
pocket-stack:mainfrom
liuzl:feat/size-flag
Open

feat: --size WxH — the widget footprint becomes a flag#2
liuzl wants to merge 1 commit into
pocket-stack:mainfrom
liuzl:feat/size-flag

Conversation

@liuzl

@liuzl liuzl commented Jul 22, 2026

Copy link
Copy Markdown

Problem

The window is fixed at 450×600 (resizable: false, hardcoded const). A smaller desk companion — half the screen real estate, same character — currently means editing source and rebuilding.

Change

--size WxH (default unchanged: 450×600, airi's stage geometry). The camera fov is vertical, so any size shows the same framing scaled; changing the aspect ratio crops horizontally. Headless modes honor the flag too, so parity screenshots at other sizes come free. README's widget bullet documents it.

pocket-character --size 300x400              # smaller companion
pocket-character --size 300x400 --max-fps 30 # low-power corner widget

Verify

target/release/pocket-character --headless-shot s.png --size 300x400
# → PNG is 300×400; framing identical to the default, scaled

🤖 Generated with Claude Code

The window was fixed at 450x600. The camera fov is vertical, so any size
shows the same framing scaled (changing the aspect ratio crops
horizontally) — a smaller desk companion is now
`pocket-character --size 300x400`, no rebuild. Headless modes honor the
flag too, so parity screenshots at other sizes come free.

Verify: target/release/pocket-character --headless-shot s.png --size 300x400
(PNG is 300x400; framing identical to the default, scaled).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant