Skip to content

M6d: overlay presence (.shown/.transition/.entrance/.on_exited) and sheets #107

Closed

Description

@samitbasu

PR 6, part 1 (§7). Presence on the overlay chain, reusing transition.rs's retargetable Progress; children not built while closed; exiting overlays inert but blocking; on_exited. Modal and non-modal sheets; sheets example. Replaces the M6 part of #21 (drawer drag and pushing sidebar stay in #21). Motion and sheet looks shown to the user as renders before landing.
Design: docs/overlays.md (PR #101). Plan: #1.

Activity

  1. samitbasu commented on Nov 13, 2026

    @samitbasu
    OwnerAuthor

    Decided (2026-11-12), from the frame strips:

    • Overlay boxes stay opaque during motion. Only the scrim fades; boxes zoom, pop or slide. Without group opacity (Known differences from CSS: no rounded clipping, no group opacity #40), a per-shape fade showed the page through the box mid-animation.
    • Timings: shadcn's are approved. Popover and menu pop in 150 ms, the dialog zooms in 200 ms, and the sheet slides in 500 ms and out 300 ms.
  2. samitbasu commented on Nov 13, 2026

    @samitbasu
    OwnerAuthor

    Re-confirmed (2026-11-12) with the corrected framing: a CSS fade also shows the page through the overlay. Per-shape fading only adds uneven blending where shapes inside the overlay overlap, because egui's Ui opacity is per-shape, and group opacity would need render-to-texture, like blur (#40). Decision unchanged: opaque boxes; only the scrim fades.

  3. added a commit that references this issue on Nov 13, 2026
  4. samitbasu commented on Nov 13, 2026

    @samitbasu
    OwnerAuthor

    Done in PR #164 (overlay presence, motion and sheets).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions