Skip to content

Region preview + 16:9 landscape layout (v1.1.0)#25

Merged
yarikleto merged 4 commits into
mainfrom
fix/region-overlay-alignment
Jun 16, 2026
Merged

Region preview + 16:9 landscape layout (v1.1.0)#25
yarikleto merged 4 commits into
mainfrom
fix/region-overlay-alignment

Conversation

@yarikleto

Copy link
Copy Markdown
Owner

Summary

  • Show a cropped screenshot preview of the watched region instead of the red coordinate box; persisted as regionPreview in config.
  • Reflow the UI into a fixed 16:9 landscape desktop window.
  • Collapsible Telegram settings strip that auto-collapses once token + chat ID are set.
  • Two-column body: region preview + Start/Stop on the left; Interval/Threshold + Status/log on the right.
  • README: document macOS unsigned-app open steps.
  • Bump version to 1.1.0.

Verification

Verified the rendered UI via Electron capturePage: collapsed/expanded settings states fit the fixed 16:9 box with no overflow or overlap; region crop/resize produces a valid preview.

The macOS region-select overlay used native fullscreen, which insets the
content area by the menu bar (innerHeight 1073 vs the 1107 captured
screenshot). Stretching the full-screen screenshot into the shorter window
made the selection look zoomed and land lower than drawn.

- Cover the full display on macOS via explicit bounds at the screen-saver
  window level instead of native fullscreen, so the overlay maps 1:1 to the
  screenshot. Windows/Linux keep fullscreen.
- Map selection coordinates using the screenshot's actual dimensions rather
  than assuming devicePixelRatio, keeping selection correct regardless of
  window sizing.
- Surface desktopCapturer failures (e.g. missing macOS Screen Recording
  permission) with a dialog that links to System Settings, instead of
  failing silently.
Show a cropped screenshot preview of the watched region instead of the
red coordinate box, persisting it as regionPreview in config. Reflow the
UI into a fixed 16:9 desktop window: a collapsible Telegram settings strip
(auto-collapses once token + chat ID are set) over a two-column body with
the region preview and Start/Stop on the left, and Interval/Threshold plus
Status/log on the right.
@yarikleto
yarikleto merged commit e6da54e into main Jun 16, 2026
1 check passed
@yarikleto
yarikleto deleted the fix/region-overlay-alignment branch June 16, 2026 15:26
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