app: fill the screen with a clip in review

The review screen gave the clip a framed stage with the header, the
details column and the status bar around it, so a clip watched there
filled a fraction of the display.

Full screen, the button beside the volume or F, hands the window to the
display with no frame of ours and draws the picture alone, letterboxed
at 16:9. The controls keep to a band at the bottom: a gradient no taller
than they are, the scrubber with its event marks, the transport and an
Exit full screen button. The band is its own hover group, so the pointer
comes to it for the controls to draw in over 200 ms, and they are gone
400 ms after it leaves. Escape, the button or a double press on the
picture leaves, and the double press enters from the windowed stage.

Being full screen belongs to the window, not to the review, so App keeps
the state it last asked of the window and poll reconciles the two: a way
out of the review, a jump to another screen, or a window closed and
reopened brings the title bar, the status bar and the frame back.
This commit is contained in:
vhaudiquet committed 2026-11-23 23:24:11 +01:00
1 parent e546ab6969
commit 73b41fa86b
4 files changed
+184 -47

No files matched your search

+5 -1
View File
@@ -29,6 +29,7 @@ cargo run -- --snap recording-live-delete.png --scene recording-live-delete
cargo run -- --snap recording-idle.png --scene recording-idle
cargo run -- --snap audio.png --scene audio
cargo run -- --snap review.png --scene review
cargo run -- --snap review-full.png --scene review-full # the picture alone, at rest
cargo run -- --snap clips.png --scene clips
cargo run -- --snap clip.png --scene clip
cargo run -- --snap clips-many.png --scene clips-many --at 1 # 36 demo clips, to see the scrollbar
@@ -99,7 +100,10 @@ reading (`history::tests`), highlight clipping (`highlight::tests`) and formatti
mpv's, the three options in TODO.txt still apply; `Player` is confined to `screens/review.rs`.
6. Game review: done. The clip fills the window at 16:9, with play/pause, +/-10 s, and a
scrubber that marks every event; highlights (play, export) and the timeline sit in a side
panel, one press away. ffmpeg exports each highlight.
panel, one press away. ffmpeg exports each highlight. The Full screen button beside the
volume, a double press on the picture, or F takes the whole display: the picture fills the
screen and the controls fade in over its bottom while the pointer is on them, gone 400 ms
after it leaves. Escape goes back.
7. Audio channels: the recorder writes one audio stream per source, and the review screen opens
one player per stream (`export::extract_tracks` copies each into the audio cache). Toggles
under the transport mute a channel for listening, and clip and highlight exports mix only