Quince/docs/DESIGN.md
astar76 7a4266b034 Quince: a Material You video player on mpv
libmpv render API into an egui/glow texture, floating controls with a wavy
seek bar and morphing play button, track/speed/chapter menus, playlist and
adjust sheets, settings, open link, previews, smoke-test harness.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:56:15 -06:00

1.5 KiB

Design notes

Built with the /material skill (kit modules in src/tokens.rs, motion.rs, theme.rs, widgets.rs, wave.rs, shape.rs).

  • Signature moments: the wavy seek bar (waves while playing, flat when paused or when Wave is off) and the play button, a circle that becomes a 9-lobe cookie while the triangle folds into pause bars. Everything else is quiet surfaces.
  • Video fills the window; chrome floats on container surfaces (radius 28, one shadow): title pill and button pill at the top, the dock at the bottom (max 1040 wide, 116 high), side sheets 360 wide from the right that push the dock.
  • Controls hide after hide_after seconds of no pointer movement while playing; they stay while paused, while a menu, sheet or dialog is open, while the pointer is over them, and while seeking.
  • mpv: vo=libmpv, render API into our FBO (src/mpv.rs), properties observed and drained each frame, commands sent async. The user's mpv config is loaded (option), osc=no, osd-bar=no; our own OSD pill replaces the bar.
  • Keys: Quince's shortcuts first; others go to mpv as keypress (input.conf, console, stats). When mpv's console is open every key goes to it.
  • App icon: leaf-green clover with a dark play mark (OKLCH hue 125, the quince's own green-yellow). Our icons already sit at hues 5, 53, 100, 150, 207, 255 and 295, so no hue is 40 degrees from all of them; 125 is 25 from the nearest (Audiphi's mustard and Damson's green) and differs from both in lightness and shape.