Skip to content

Add a theme-matched preview modal with pinch zoom and pan - #83

Open
chungchihhan wants to merge 1 commit into
minchenlee:mainfrom
chungchihhan:codex/preview-modal
Open

chungchihhan wants to merge 1 commit into
minchenlee:mainfrom
chungchihhan:codex/preview-modal

Conversation

@chungchihhan

Copy link
Copy Markdown
Contributor

Clicking a diagram or image now opens a centered, rounded preview modal instead of covering the entire app. An opaque, theme-matched panel sits above a translucent scrim; close it with the close button, Escape or an outside click.

The preview supports native macOS trackpad pinch zoom, pixel-scroll panning and drag-to-pan. Mouse-wheel steps continue to zoom. A local adaptation of Iced’s image viewer retains its MIT notice.

This PR contains only preview UI and gesture routing. It branches directly from upstream main and does not depend on #82 or the reading-width slider. Renderer, dependencies and project-control documents are unchanged. It is separated from the renderer PR as requested in review; it may need rebasing after the pointer-support PRs land.

Validation: cargo check --locked, cargo fmt --all --check and git diff --check passed on macOS arm64. Existing import/future-compatibility warnings remain. No automated test suite or fresh standalone native visual check was run; the UI was previously tried as part of the combined experimental build. Manual checks: light/dark modal and scrim, outside-click/Escape, pinch zoom around the pointer, pixel-scroll pan and mouse dragging.

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