atagen

monolith

public
Star0
Watch0

Commit 2b30c550f0a9

tarball

atagen <boss@atagen.co>2026-10-19 09:36 UTC

2 files changed+18-10
style: rustfmt the dialog and opacity branches
Modified file: crates/monolith/src/input.rs+16 additions−2 deletions
@@ -637,8 +637,22 @@ fn drag_to(state: &mut State, pos: Point<f64, Logical>) -> bool {
637637 r.clamp_size(f64::INFINITY, f64::INFINITY)
638638 });
639639 let min = (min_w.max(MIN_FLOAT_SIZE), min_h.max(MIN_FLOAT_SIZE));
640- let (x, w) = resized(r.x, r.w, dx, (e.left, e.right), (b.x, b.right()), (min.0, max_w));
641- let (y, h) = resized(r.y, r.h, dy, (e.top, e.bottom), (b.y, b.bottom()), (min.1, max_h));
640+ let (x, w) = resized(
641+ r.x,
642+ r.w,
643+ dx,
644+ (e.left, e.right),
645+ (b.x, b.right()),
646+ (min.0, max_w),
647+ );
648+ let (y, h) = resized(
649+ r.y,
650+ r.h,
651+ dy,
652+ (e.top, e.bottom),
653+ (b.y, b.bottom()),
654+ (min.1, max_h),
655+ );
642656 Rect::new(x, y, w, h)
643657 }
644658 None => clamp_float(Rect::new(r.x + dx, r.y + dy, r.w, r.h), d.bounds),
Modified file: crates/monolith/src/scene.rs+2 additions−8 deletions
@@ -584,14 +584,8 @@ fn ghost_element(
584584 .to_logical(frame.scale, frame.transform)
585585 .to_f64();
586586 let src = src.to_buffer(f64::from(frame.scale), frame.transform, &bounds);
587- let mut placed = PlacedTexture::new(
588- &frame.texture,
589- frame.transform,
590- src,
591- at,
592- size,
593- Some(effect),
594- );
587+ let mut placed =
588+ PlacedTexture::new(&frame.texture, frame.transform, src, at, size, Some(effect));
595589 placed.alpha = opacity;
596590 let ghost = Draw::Texture(placed);
597591 Some(match corner_clip(r, deco, scale) {