Commit Graph
8 Commits
Author SHA1 Message Date
aiongg 5e11bad614 A container in an embedded shell acts on no OS window; its title bar is a picture of a window
os_window reads the embedded-shell signal (ShellCx::region): inline, pane and window
mounts inside an embedded shell stand for no OS window, so they get no move band or
grips and report nothing to the window. TitleBar reads the same signal: its captions
report their clicks but send no window command, a double click acts on nothing, and
it reads no window state.
2026-11-12 14:32:44 +00:00
aiongg eef17642ba Toasts: one queue per window; each AppShell, embedded ones included, shows its own window's toasts at the end-bottom corner of its body (Anchor::Corner replaces Anchor::Viewport), so nested shells no longer each draw every card at the viewport corner; NoticeCenter posts to its window, and the NoticeCenter and ToastStack stories show three notices in their own area, as the old ones did 2026-11-12 14:32:44 +00:00
aiongg cfa87db5d1 Every region of a container spaces its children itself, in the measuring and the real run alike: header, footer and end region by the container's body gap, the header's controls box by the item gap
A region inherited the item spacing of the ui around it, which differs between the two runs (egui's default while measuring, the parent body's gap when placed), so a region of several children took more than it measured. One opener (RegionFrame::open) makes every region's ui and sets its spacing; the footer's own spacing fix goes.
2026-11-12 14:32:44 +00:00
aiongg d0bc3eb15b A footer region spaces its children by the container's body gap in the measuring and the real run alike, so its measured height is the height it takes and its last row is not clipped (ListManager's caption note)
The footer inherited the item spacing of the ui around it, which differs between the two runs: in a dialog the real run took the dialog body's gap and the measuring run egui's default.
2026-11-12 14:32:43 +00:00
aiongg 4b948bd951 A modal without a scrim takes the presses below it: every modal shows its cover, painted only for Backdrop::Scrim (K17)
An app-modal ViewportWindow with Backdrop::None, and a BlockingOverlay without a scrim, let presses through to the
window under them. The window trial presses the button under the window by position: a modal layer hides what is under
it from the accessibility tree.
2026-11-12 14:32:41 +00:00
aiongg 81c22f3469 Old modality: Tour and ViewportWindow block nothing, Preferences is app-modal, a tool window ignores Escape (K17, D10)
The tour card is a popup that blocks and dims nothing and stays on an outside press; Backdrop::ScrimWithHole and the
cover layer's hole go with it. ViewportWindow blocks nothing until app_modal(backdrop). A modeless Dialog without a
footer ignores Escape; a modal one or one with a footer closes on it. PreferencesWindow drops modeless and takes the
shared app-modal path (blocked cursor, refused close).
2026-11-12 14:32:41 +00:00
aiongg e58aabe37e Focus returns to where it came from: the drawer to Edit Toolbar, the last toast to the stop before the stack (K17)
A layer opened from a recorded opener returns focus to that opener's stop. ToolRailOutput::edit_toolbar carries the
button's response and ToolbarDrawer::opened_by takes it; the drawer still hangs from the rail. The toast layer is a
non-trapping scope (FocusPolicy::TAB_LAYER) whose opener is the stop focus entered it from, so the last card's end
returns focus there; an earlier card's end hands it to the next card.
2026-11-12 14:32:41 +00:00
aiongg a2676b8eac Framework UI crates: widgets, panels, canvas, patterns, shell and the craft-ui facade 2026-11-12 14:09:32 +00:00