app: drop the play mark from the clip cards

The miniature fills the stage, and the mark rode over it as if the
card were a button, which it is not yet. The stage now shows the
picture alone; playing a clip comes with the click that plays it.

Demo clips pick up a miniature already on disk the way the folder
listing does, so a repeat snapshot does not sit on black stages.
This commit is contained in:
vhaudiquet committed 2026-11-22 18:56:51 +01:00
1 parent 83ca4071d4
commit e7c9c5b672
2 files changed
+7 -21

No files matched your search

+5
View File
@@ -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 {
+2 -21
View File
@@ -179,7 +179,7 @@ fn clip_card(app: &App, p: Paint, k: &Kit, layer: &mut Vec<El>, 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.