Quince/docs/STATUS.md
astar76 5094b17f28 Centre the icon's play triangle; add a Quality menu for online videos
The triangle sat ~14 px right of the shape's centre. Online videos now list the
heights yt-dlp found and switch quality in place, keeping the position.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 21:50:55 -06:00

54 lines
3.9 KiB
Markdown

# Status
Version 0.1.0, first build (2026-11-26).
## Works (checked in hidden smoke runs, software GL)
- Empty screen with recent files; opening files from the command line; playlist of several files.
- Video through libmpv's render API into a GL texture drawn by egui; controls over it (top bar, dock), auto-hide.
- Wavy seek bar with hover preview thumbnails; play button morph; volume slider; speed pill.
- Context menu with submenus; subtitle, sound, speed and chapter menus from the dock.
- Playlist and Adjust sheets; Settings dialog (Appearance, Playback, Languages, mpv, Keyboard, About); Open link dialog.
- Light and dark themes; idle: no frames about a second after pausing.
## Checked on real hardware and a real compositor (niri, 2026-11-26)
- Real GPU: plays on the user's Wayland session; hardware decoding is on (`vaapi`, shown in the top bar).
- Fullscreen (F) fills the screen with the controls on top; F again restores the window.
- Window at the minimum size (480x360): top bar and dock fit, the title elides; menus opened at the bottom-right
and top-left corners flip and stay inside the window.
- Colours from the video: an orange clip turns the theme orange (primary `#FFB28B`).
- mpv's console (`): typed commands run; the controls hide while it is open so its command line stays visible,
and come back when it closes.
- Screensaver inhibit: the ScreenSaver Inhibit call is answered on niri while a video plays.
- File dialogs: Ctrl+O opens the portal's "Open videos" picker (xdg-desktop-portal-gtk); it closes with the app.
- Wayland drag and drop: a file dragged from another app (GTK drag source, real pointer drag in a nested niri)
opens and plays.
## Fixed while checking
- A crash on quit: mpv could call its wakeup callback after libmpv2 had freed it. The callback is now unset first.
- A hang (10 s, then abort): mpv's callbacks asked egui for a repaint while holding mpv's lock. They now post to a
small thread that does the asking.
- The dock covered mpv's console; a space typed in the console came out twice.
## Gallery and packages (2026-11-27)
- `quince --gallery`: every control at rest, chosen and disabled, in light, dark and AMOLED and four seeds; hover,
press and focus checked by hand in screenshots. `--gallery over` runs the real top bar, dock, menu, on-screen text
and toasts on a made-up film. It found two bugs, both fixed: the disabled play triangle showed a darker seam, and
a toast's action button (Undo) was drawn under the toast and never showed.
- `tools/package.sh` builds 0.1.0 into `dist/`: tar.gz, AppImage (bundles libmpv's closure), Arch package, .deb,
Nix file, Windows installer and portable zip. glibc floor 2.35.
- Smoke-tested: the AppImage plays the test clip with hardware decoding; the Windows build plays it under wine; the
installer installs per user to `AppData\Local\Programs\Quince` with a Start menu entry.
## Icon and stream quality (2026-12-01)
- Icon: the play triangle sat about 14 px right of the shape's centre; it is centred now (a small optical nudge
right) and a little larger. PNGs in `assets/icons/` and `packaging/quince.ico` regenerated from the SVG.
- Online videos get a Quality menu (right-click menu and the Video menu): Best, each height the stream offers
(read from yt-dlp's answer that mpv keeps), and Sound only. Picking one remembers it (same setting as Settings >
Playback > Links) and reloads the stream where it was. Checked in a hidden run on a YouTube link: 4K → 480p, and
480p → 360p at 5:24 carried on from 5:24. Sizes not in Settings' list (1440p, 360p) show there as the next one down.
## Not done
- No release published yet: the packages are in `dist/`, notes in `docs/releases/0.1.0.md`.
- Windows: screensaver inhibit is D-Bus only, so it does nothing there; seek previews need ffmpeg on PATH. Not tried
on real Windows.
- Text fields clip a too-long value at the edge (egui's TextEdit) instead of fading it.