T26c Media: video
Scrubber shows what has loaded, what has played and its chapters, names the time under the pointer, seeks by press and gpui's drag, and steps by the slider's keys; over_media lights it for a dark layer. VideoPlayer shows the host's frame in its shape with a caption and a control bar over it: the scrubber, play, the time, speed, captions, picture in picture and full screen, each only with its handler; the bar rests after a still pointer while it plays, on one wake from the executor's timer. Keys: Space and K, J and L, the arrows, C and F. VideoThumbnailStrip lays frames along the length under a playhead with a trim whose handles drag and whose ends I and O set. SubtitleEditor edits cues in place: times as mm:ss.mmm, kept in order, a time that does not read kept out with the reason shown. InlineEdit is a Tab stop with the ring; it hands focus back after Enter or Escape and keeps its text on Enter's release. overlays::media_button is shared by the lightbox and the player's bar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f7f20b5146
commit
d0175edb7b
22 files changed
+2232
-25
No files matched your search
@@ -13,6 +13,10 @@ pub struct MediaSizes {
|
||||
pub arrow_head: Rems,
|
||||
/// A numbered pin, round.
|
||||
pub pin: Rems,
|
||||
/// A strip of video frames, tall.
|
||||
pub strip: Rems,
|
||||
/// A trim's handle, wide.
|
||||
pub trim_handle: Rems,
|
||||
}
|
||||
|
||||
impl Theme {
|
||||
@@ -22,6 +26,8 @@ impl Theme {
|
||||
mark_stroke: px_to_rems(2.0),
|
||||
arrow_head: px_to_rems(12.0),
|
||||
pin: px_to_rems(20.0),
|
||||
strip: px_to_rems(48.0),
|
||||
trim_handle: px_to_rems(8.0),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user