forge
Explore
Log in

Don't you dare go Hollow

merge oldui-dissolve

Browse files at this commit

488d138f2dc223545c472ddf3710616554ebc608Ahmet Kaan GümüşParent: b90da6dd15f888
crates/app/src/tests/layout.rsmodified+22 -0
@@ -2694,6 +2694,28 @@ fn darkroom_bench_wires_transition_controls_and_lane_drop_cue() {
2694 "the Darkroom clip lost its transition affordance: {needle}"2694 "the Darkroom clip lost its transition affordance: {needle}"
2695 );2695 );
2696 }2696 }
2697+ let dissolve = &clip[clip
2698+ .find(".when(dissolves, |d| {")
2699+ .expect("the dissolve affordance")
2700+ ..clip
2701+ .find(".when(audio && trims(span)")
2702+ .expect("the fade handles")];
2703+ assert!(
2704+ dissolve.contains(".w(px(FADE_HANDLE_W))"),
2705+ "dissolve click target no longer matches fade-handle width"
2706+ );
2707+ assert!(
2708+ dissolve.contains(".h(px(FADE_HANDLE_H))"),
2709+ "dissolve click target no longer matches fade-handle height"
2710+ );
2711+ assert!(
2712+ !dissolve.contains("h_full()"),
2713+ "dissolve click target still covers the clip body"
2714+ );
2715+ assert!(
2716+ !dissolve.contains(".w(px(scale"),
2717+ "dissolve hit test still tracks transition width"
2718+ );
2697 2719
2698 let lane = &bench[bench.find("fn lane_row(").expect("the lane renderer")2720 let lane = &bench[bench.find("fn lane_row(").expect("the lane renderer")
2699 ..bench2721 ..bench
crates/app/src/ui/bench_stance.rsmodified+2 -5
@@ -506,11 +506,8 @@ fn clip_box(
506 .absolute()506 .absolute()
507 .right_0()507 .right_0()
508 .top_0()508 .top_0()
509- .h_full()509+ .w(px(FADE_HANDLE_W))
510- .w(px(scale510+ .h(px(FADE_HANDLE_H))
511- .width_px(f64::from(clip.transition_out) / player.fps)
512- .min(width)))
513- .occlude()
514 .cursor_pointer()511 .cursor_pointer()
515 .tooltip(move |_, cx| cx.new(|_| Tip(dissolve_tip.clone())).into())512 .tooltip(move |_, cx| cx.new(|_| Tip(dissolve_tip.clone())).into())
516 .on_click(cx.listener(move |this, _, _, cx| {513 .on_click(cx.listener(move |this, _, _, cx| {