Skip to content

Make burn-in and transparent video windows resizable#11638

Merged
niksedk merged 1 commit into
mainfrom
feat/resizable-burnin-transparent-windows
Jun 15, 2026
Merged

Make burn-in and transparent video windows resizable#11638
niksedk merged 1 commit into
mainfrom
feat/resizable-burnin-transparent-windows

Conversation

@niksedk

@niksedk niksedk commented Jun 15, 2026

Copy link
Copy Markdown
Member

Closes #11633

What

Makes the Burn-in video (BurnInWindow) and Transparent video (TransparentSubtitlesWindow) windows resizable. Previously both were fixed-size (CanResize = false).

Behavior

  • Resizable with a sensible minimum. Each window opens at its natural content size, locks that in as MinWidth/MinHeight, then allows free growing (SizeToContent.Manual + CanResize = true).
  • Content grows, not gaps. A star column/row is steered by IsBatchMode:
    • Single mode → the preview grows (video player / preview image).
    • Batch mode → the file list grows.
  • Mode switches re-fit. Switching to/from batch mode re-fits the window to that mode's content and re-locks the minimum, so batch mode gets the wider size it needs — matching the old auto-size behavior when clicking the batch-mode button.
  • No gap in the left column. The left settings boxes are kept together in a top-aligned panel, so extra vertical space goes to the preview instead of opening a gap between the boxes.
  • Burn-in: the video preview is shrunk in batch mode (so the file list has room) and stretches in single mode.

Notes

  • Each mode switch re-fits to that mode's natural size, so a manual enlargement is not preserved across a mode switch (matches the prior auto-sizing behavior). Easy to change to "grow-only" if preferred.
  • Verified dotnet build (0 warnings / 0 errors). Visual behavior in the running Avalonia app is worth a quick check.

🤖 Generated with Claude Code

Both windows were fixed-size (CanResize = false). Make them resizable
while keeping a sensible minimum size and growing the right content.

- Enable CanResize; open at the natural content size and lock that in
  as the minimum (MinWidth/MinHeight), allowing the window to grow.
- Switching to/from batch mode re-fits the window to that mode's content
  and re-locks the minimum, so batch mode gets the wider size it needs
  (as it did when the window auto-sized).
- Grow the preview in single mode and the batch file list in batch mode
  via a star column/row, toggled by IsBatchMode.
- Keep the left settings column together in a top-aligned panel so the
  extra vertical space goes to the preview instead of opening a gap.
- Burn-in: shrink the video preview in batch mode so the file list has
  room; let it stretch in single mode.

Fixes #11633

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@niksedk niksedk merged commit 8001a68 into main Jun 15, 2026
2 of 3 checks passed
@niksedk niksedk deleted the feat/resizable-burnin-transparent-windows branch June 15, 2026 13:44
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.

[Request] Support Maximize Window for the Burn-in Window

1 participant