Skip to content

Give the media viewer Android chrome and video controls - #101

Merged
Tarquinen merged 1 commit into
devfrom
feat-viewer-chrome
Nov 16, 2026
Merged

Tarquinen merged 1 commit into
devfrom
feat-viewer-chrome

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

The full-screen viewer opened galleries and videos with their controls hidden, its toolbar looked like a grey desktop panel, and videos had a thick settings-style slider. This gives it Android chrome and video controls. The motion (open, close, drag to dismiss, predictive back and the markup hand-off) is unchanged.

Chrome

  • Controls show when the viewer opens, so share, draw and save are there right away. A tap hides and shows them, and the system bars follow
  • Soft gradient scrims top and bottom instead of panels: a back arrow with a left-aligned title and folder, page dots for galleries (a count above nine pages), and the actions spaced evenly along the bottom with the trash among them
  • Gallery pages sit 16 dp apart, so the next image no longer touches the current one while swiping
  • The pen still waits until a video has loaded, and the actions stay hidden on a file that didn't load (Tidy the viewer for a file that didn't load #100)
  • Documents and PDFs keep their top bar and Done button

Video

  • A large centre play/pause on a soft shadow, and a thin seek bar with the played part in white and a buffered segment
  • Under the finger the bar thickens, the thumb grows and the time shows above it. Scrubbing uses ExoPlayer's scrubbing mode, so the frame follows the finger
  • While playing, the controls step aside after 3 s and come back when playback stops. Under TalkBack they stay up and the seek bar is a progress control

Gallery, dev (left) and this PR (right). The viewer is always dark, so light and dark look the same inside it:

Gallery chrome, dev and this PR

A paused video, dev (left) and this PR (right):

Video controls, dev and this PR

Dev (left) and this PR (right): a gallery, then a video:

viewer-chrome-light.mp4

Checked on the emulator against dev, in light and dark: opening and closing a transcript image and a video card, swiping a gallery, double-tap zoom, drag to dismiss, Back, video play, pause, drag-seek and auto-hide, drawing on an image and on a paused video frame with the slide into the composer (frame by frame the same as dev at 1× and 0.3×), 2× font size, and the TalkBack labels. scripts/check.sh :feature:media passes, and scripts/translations.py all is clean.

Galleries and videos opened with their controls hidden, so share, draw
and save only appeared after a tap. The bars sat in a grey box in one
corner with the trash in the other, and videos had a thick Material
slider on a dark strip that read as a settings control, not a player.

The viewer now opens with its chrome shown, on soft top and bottom
gradient scrims: a back arrow with a left-aligned title and detail,
page dots for galleries (a count above nine pages), and the actions
spaced evenly along the bottom with the trash among them. The system
bars hide and come back with the chrome. Videos get a large centre
play/pause on a soft shadow and a thin seek bar with a buffered
segment; under the finger it thickens, the thumb grows, the time shows
above it and ExoPlayer's scrubbing mode keeps frames following the
drag. While playing, the chrome steps aside after 3 s and comes back
when playback stops; it stays up under TalkBack, where the seek bar is
a progress control. Gallery pages sit 16 dp apart. The pen still waits
for a video to load, and the actions stay hidden on a file that didn't
load. Documents and PDFs keep their top bar. MovieTransport is
replaced. The open, close, drag, back and markup hand-off motion is
unchanged.

Checked on the emulator against dev, light and dark: opening and
closing a transcript image and a video card, swiping a gallery,
double-tap zoom, drag to dismiss, Back, video play, pause, drag-seek
and auto-hide, drawing on an image and on a paused video frame with the
slide into the composer (frame by frame the same as dev at 1x and
0.3x), 2x font scale, and the TalkBack labels. scripts/check.sh
:feature:media passes; translations.py all is clean.
@Tarquinen
Tarquinen merged commit b8c3273 into dev Nov 16, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 16, 2026

This branch was previously deployed

1 inactive deployment
release — d3d17956 Deployed Nov 16, 2026 by Tarquinen via check #345
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