Skip to content

v1.4.0

Choose a tag to compare

@pshycodr pshycodr released this 19 Nov 11:56
· 33 commits to main since this release

Phosphor Cam v1.4.0 - Mono Design

339_1x_shots_so

v1.4.0 is a full visual rebuild plus a much more capable camera. The interface now looks like a precision instrument, phones get their own composition, and the viewfinder responds to swipes, pinches and taps.

What's New

  • Mono design system: every screen now sits on graphite layers with JetBrains Mono and a single phosphor-green signal, reserved for active, recording, success and focus states. The camera chrome, settings, Studio, dialogs and toasts were all rebuilt.
  • Phone camera layout: a compact stats strip with the logo, FPS, render time and frame size, a Studio pill and round gear island, an inset preview card, and a raised control stack. Photo/Video sit above Flip, the shutter, and a fixed Copy/Edit pair; Edit takes Copy's slot whenever the renderer is not ASCII.
  • Aspect ratios: 1:1, 3:4 and Full, defaulting to 3:4. The stream is center-cropped to the frame so photos and recordings keep their proportions, and changing ratio tweens the viewfinder.
  • Camera gestures: swipe horizontally to step the renderer, swipe up to open the editor, swipe down to close it, pinch to step the aspect ratio, and double-tap to flip the camera. Pinching out widens toward Full; pinching in narrows toward 1:1. Renderer, pinch and flip pause while the editor is open or while recording.
  • Settings popover: tap the gear for aspect ratio, capture format, capture scale and About. Choosing a ratio applies it and closes the popover; outside press, Esc and the X also close it.
  • Android back: back closes the most recently opened panel, returns Studio to the camera, and asks for a second press before leaving the app at the camera root. While recording, back shows “Stop recording first” instead of navigating.
  • Studio routes: /studio is now the empty state on its own, and picking an image or a sample pushes /studio/edit for the editing layout. The editor and its canvas worker load lazily only when that route is opened, and opening it without an image lands back on /studio.
  • Discard prompt: leaving a changed edit session, by the header link or Android back, asks “Discard changes?” first. Keep editing returns to the canvas; Discard clears the image and its undo history and returns to an empty /studio without stacking a second Studio entry. Back is ignored with a toast while an export is running.

Improvements

  • Motion: panels, popovers and dialogs now animate in and out, including on first paint, with exit paths that mirror their entrance. Sheets and rails slide both ways, and aspect changes tween instead of jumping. Reduced-motion and reduced-transparency are respected.
  • Editor drawer: rebuilt on Vaul. Drag it down past 30% of its height, press Esc or tap outside to dismiss; the drawer slides away before unmounting, and its scrollers still work.
  • Color tool: dedicated Presets and Adjust views with clear foreground/background pickers, active chips, and larger touch targets. Sliders stay in sync after random, swap or a preset.
  • Studio: capture format and scale moved into the Export dialog, the header respects safe areas, and the mobile inspector remains a persistent sheet.
  • Settings controls: switches, segmented controls, sliders, chips and fields now share one mono system with visible range fills and tabular values.

Fixes

  • Phone landscape fills the screen and the settings popover stays within the viewport.
  • The capture dock and camera frame are lifted clear of the bottom edge and safe areas.
  • Studio no longer collides with camera cutouts.
  • Popovers and dialogs no longer skip their entrance on first paint.
  • Corrected the pinch direction so widening the frame is consistent.

Under the Hood

  • Shared UI primitives for buttons, controls and class merging; the camera gestures live in useViewfinderGestures.
  • The on-screen frame, photo capture, recording and copied ASCII all sample the same center-cropped canvas.
  • The custom sheet drag hook was replaced by Vaul; @capacitor/app provides native back handling.

Full Changelog: v1.3.0...v1.4.0