diff --git a/app/src/app.rs b/app/src/app.rs index 1fbe913..1977246 100644 --- a/app/src/app.rs +++ b/app/src/app.rs @@ -285,6 +285,11 @@ impl App { Self::demo_clip(format!("{}-clip", id(&sample[1])), 26, 15_800_000), Self::demo_clip("pentakill".into(), 74, 31_200_000), ]; + // Like the folder listing: a miniature already on disk and as new as its clip shows + // at once, and the thumbnail pass only cuts what is missing. + for clip in &mut self.clips { + clip.thumb = export::thumb_of(clip); + } self.clips_loaded = true; self.devices = AudioDevices { input_devices: vec![AudioDevice { diff --git a/app/src/screens/clips.rs b/app/src/screens/clips.rs index 6a1ab92..72f08e5 100644 --- a/app/src/screens/clips.rs +++ b/app/src/screens/clips.rs @@ -179,7 +179,7 @@ fn clip_card(app: &App, p: Paint, k: &Kit, layer: &mut Vec, clip: &Clip, ind } /// The clip itself: the 16:9 box the card gives. The miniature the thumbnail pass cuts fills -/// it once it has landed, and the play mark rides over it either way. +/// it once it has landed; before that the stage is black. fn stage(app: &App, p: Paint, clip: &Clip) -> El { let mut stage = col() .key("stage") @@ -197,26 +197,7 @@ fn stage(app: &App, p: Paint, clip: &Clip) -> El { .pixels(image.pixels()), ); } - stage.child( - el().key("play-overlay") - .absolute(0.0, 0.0) - .w_full() - .h_full() - .center() - .a11y_hidden() - .child( - el().key("play") - .size(40.0, 40.0) - .radius(20.0) - .center() - .fill(Color::WHITE.alpha(0.16)) - .child( - rune::icon(&icons::PLAY, 18.0) - .color(Color::WHITE.alpha(0.9)) - .a11y_hidden(), - ), - ), - ) + stage } /// Who the clip stars and what game it came from, with share and the actions menu beside.