Commit Graph
1979 Commits
Author SHA1 Message Date
aiongg 982734d240 EditorMock: a screen-mode binding and the Full screen story
The old gallery showed the mock app in the Canvas shell in Standard, Full screen,
Revealed and Right to left. Full screen is an EditorMock story over the shell's
screen_mode binding; right to left is the gallery's own direction switch.
2026-11-12 14:32:45 +00:00
aiongg 1e3d9345a0 EditorMock: the title bar as the old preview drew it
An integrated frame of the generic family with every caption at the end, the
hairline under it, and Search in the trailing group.
2026-11-12 14:32:45 +00:00
aiongg 9c78e36602 TitleBar draws its bottom hairline only with separator, as the old bar did
The old app's own bar drew none; the stories set it, as the old stories did.
2026-11-12 14:32:45 +00:00
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 890a5d9e20 NoticeCenter and ToastStack stories post their notices whenever their window has none, since a story's measuring run posts nothing 2026-11-12 14:32:44 +00:00
aiongg 41560ce3ed Notice: bullet lines start under the row of the icon, title and dismiss button and run the card's whole width, as the old toast's lines 2026-11-12 14:32:44 +00:00
aiongg e69897715f Notice: the elements sit inside the notice's padding, so a card's text and buttons are inset from its edge 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 a76f2d964c Notice: a centred notice draws a brand title in the new display type role (38 on 46, semibold) with its byline beside it, or under it when both don't fit; token dumps gain the display role 2026-11-12 14:32:44 +00:00
aiongg 37c11260fe Notice: a centred notice hosts the app's own leaves under its actions, inside its centred column; the hosted-leaf adapter moves from ListRow into the contract (Hosted, Hosting) and serves both 2026-11-12 14:32:44 +00:00
aiongg 0044e52336 Toasts carry bullet lines: a card shows up to eight under its message, then one faint "…and n more" line; NoticeCenter posts the title and its lines instead of joining them into the message 2026-11-12 14:32:44 +00:00
aiongg 2fe0e72ee3 Notice: an announced notice is a live region named by its title and message, so it is announced when it appears and again when its text changes; the first-show memory goes 2026-11-12 14:32:44 +00:00
aiongg 1dc886d82e Notice: a centred notice's first action is the primary button and the others secondary, all as wide as the widest, as the old empty state 2026-11-12 14:32:44 +00:00
aiongg 1f4395278a Collections: the empty text is faint body text at the reading start with a stack gap around it, the old inline empty state; EventList and FindingsList show it instead of a centred notice (WordSet::word names a built-in word as a label) 2026-11-12 14:32:44 +00:00
aiongg 1e1849d4aa Tile: selection is a thick accent ring with a halo outside the picture and hover a thin muted ring, with no cell fill; a selected name keeps the normal ink 2026-11-12 14:32:44 +00:00
aiongg c87a66bef2 TileGrid: stars clicked on a selected tile rate the whole selection, and a selected tile shows its badge bar 2026-11-12 14:32:44 +00:00
aiongg 7165a33796 FindingsList: a click activates a finding, and the summary starts with a status dot in the good or bad tone, as the old list did 2026-11-12 14:32:44 +00:00
aiongg f4d70cee9d DisabledLook is non-exhaustive 2026-11-12 14:32:44 +00:00
aiongg fda1c62572 Disabled stories for the faded components: Tile, Swatch, PointPicker, ColorStrip, ColorArea and PaintChip 2026-11-12 14:32:44 +00:00
aiongg 84639de189 A disabled component that shows data paints its enabled look faded
Component::DISABLED picks how a disabled instance looks: the style's Disabled
state (DisabledLook::States, the default for chrome controls) or its enabled
look at Opacity::DISABLED (DisabledLook::Faded). Step 13 fades the surface,
part layers, paint, faces and paint_over of a faded component; its children
and step 14 paint outside the fade and show their own disabled look. egui
fades a shape as it is added, so a settled region replays the faded paint.

Tile, RowThumb, Swatch, PointPicker, Navigator, PreviewPane, ColorStrip,
ColorArea, PaintChip, PagePicture, PagePictures, ReadingView and DrawPad
declare Faded. The tile's disabled veil and the Disabled entries of the tile
and swatch looks go. Opacity::DISABLED is 0.5, the old disabled fade and the
old knob's disabled share.
2026-11-12 14:32:44 +00:00
aiongg 9a6580c7c5 Tile grid drops an unused import 2026-11-12 14:32:44 +00:00
aiongg 815b6c73c3 FullWindowCanvas: divider rule outside the image edge, as a RasterDisplay option 2026-11-12 14:32:44 +00:00
aiongg eee7a6eddd Navigator: Home on the focused preview centres the document 2026-11-12 14:32:44 +00:00
aiongg 2d4da9a7a6 AddBesideHandles: outline the hot side's ghost of what a click adds 2026-11-12 14:32:44 +00:00
aiongg 756524277b Brush cursor: centre mark and selection badge on the tip circle and outline 2026-11-12 14:32:44 +00:00
aiongg 54845a4a7e ChipField reports a chip's activation and its context menu, puts the chips past max_lines behind a "+N more" menu that removes the chosen one, has Clear All, shows partial chips muted with an asterisk, and gives a chip cut to its line its whole text as tooltip. A context request records the part it was made at: the part under the pointer for a secondary click, the active part for the keys (Cx::context_part). Badge labels elide at their end and take a muted ink 2026-11-12 14:32:44 +00:00
aiongg 85004751e0 TreePicker popup searches: typing lists the items whose path holds every typed word, names starting with the query first, each with its path as the detail line. The popup search field is one helper (pickers/search.rs) shared with Select 2026-11-12 14:32:44 +00:00
aiongg 0897874266 Every component takes one sizing setter: a leaf with Sizing::Content is as wide as its content, without its style's ideal width, and the selects the old gallery fitted to their entries are content-sized 2026-11-12 14:32:44 +00:00
aiongg 8fc8f79834 A glyph label can sit inside its control: FieldLayout::Inside puts it in the number field's leading slot as a scrub handle, every measure of the control sees it, and LinkedFields rows, the character panel's fields and the transform angle use it 2026-11-12 14:32:44 +00:00
aiongg 08ffa67c01 A type's stories from the package that registers it list before other packages' stories of it, so CropOverlay's first story is its own Upright (the old CropFrame card) ahead of draw's Crop tool stories; Crop rect takes the old title Upright 2026-11-12 14:32:44 +00:00
aiongg ab33c9783b A child of a wrapping row measures in a whole line, as a body there already did: one too wide for the rest of the line goes on the next line at its own width instead of being cut to the rest, the same in either direction 2026-11-12 14:32:44 +00:00
aiongg c81ea8c1b2 The crop frame, its brackets and edge bars, and the perspective crop grid draw in overlay.handle_fill, the white of the handles on the document, as the old crop look had; the Straighten line keeps overlay.stroke 2026-11-12 14:32:44 +00:00
aiongg 882843b9dd Transform Symmetry story shows its options bar above the canvas, titled Transform Symmetry with cancel and commit, as the old story had; they discard and store the session in place of the Apply and Discard buttons 2026-11-12 14:32:44 +00:00
aiongg 7eba7801fb Crop tool Ratio and size story: the options bar over the tool routes a ratio change to refit, Straighten to its toggle and the bar's commit and cancel to apply and discard; resolution is a story value; the status line shows the target size, the frame and the last event 2026-11-12 14:32:44 +00:00
aiongg 7684fb4d04 A labelled control in flow takes its label row from the room's own edges and its own width from the reading start, so a Row in a Bar under right-to-left, measured in a room unbounded at its left edge, lays out with finite rects 2026-11-12 14:32:44 +00:00
aiongg fec86901f2 SamplerOptions hint is faint and cut at the end, as the other bar hints 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 3a3ebbb11d A stop in the body of a canvas with a view takes the document key role, from the canvas's scroll-owner declaration: Cmd/Ctrl+Page on any canvas control scrolls the view sideways
The role came from KeyUse.chrome_key, which the canvas overlays that are no document (Guides, BezierOverlay and others) set to false, so their Cmd/Ctrl+Page switched pages. The innermost scroll owner now records whether it has a view of its own; a scroll region inside a canvas body takes the role back off. chrome_key keeps only its window meaning (Tab toggles the panels). Guides takes only the moves along the guide and leaves the page and end moves to the canvas.
2026-11-12 14:32:44 +00:00
aiongg e97d392892 OutputPathRow: the file name is a link; a click asks for the file dialog, Alt-click edits the template in place (comp2:64)
ButtonOutput carries the modifiers held at the activation (Activation::mods), and Link reports a ButtonOutput, so a
caller reads a modified click from the framework's signal.
2026-11-12 14:32:44 +00:00
aiongg 6901310103 AboutDialog: Contributors has a View control, Grab bag by default, whose names are links to the profiles (pat2:31, 32) 2026-11-12 14:32:44 +00:00
aiongg b7a9d56b49 NewDocumentDialog: each saved preset row has a Delete button (pat2:18) 2026-11-12 14:32:44 +00:00
aiongg 269d59a358 JPEG options: the quality field and preset list on one line with the slider under them, the encoding as a radio group (pat2:54, 55)
The quality row is a full-width custom row, so the slider starts at the form's start edge as the old one did. A
dialog confirmed without a quality edit answers the quality it opened with.
2026-11-12 14:32:44 +00:00
aiongg e4193b33fd PasswordDialog: the reveal button shows the crossed-out eye while the password shows (pat2:34) 2026-11-12 14:32:44 +00:00
aiongg d8a0d6c36d IconPicker: cells sized from the tiles' measure, kept while the items' inputs hold (compare-3 class 13)
TileGrid::content_cells sizes cards from the largest tile's measure; an icon tile measures its icon.
Collections that measure their items (content-sized lists and content cells) keep the measure in
layout memory under the rows stamp or source revision, the item count, the room, the env and the
collection's dress inputs.
2026-11-12 14:32:44 +00:00
aiongg 93950a1ddd Brush preset field: the current size under the tip, through a caption under SelectFace's thumbnail and PresetPicker's caption (ctl:76) 2026-11-12 14:32:44 +00:00
aiongg 912aa16df2 Completion list: the mark and the candidate in the Mono role, through ListRow's lead_role and role 2026-11-12 14:32:44 +00:00
aiongg f6a5328ecf Breadcrumb: the current crumb cuts in the middle, as every other crumb 2026-11-12 14:32:44 +00:00
aiongg da5cdafa6e A bar's end region sits space.gap.stack from its body
EndRegion carries the gap role between the body and the region (Tight by default); Bar sets Stack, the old
status and options bars' gap before their trailing group.
2026-11-12 14:32:44 +00:00
aiongg 8d42eac038 A bar gives way from its end
A row in a bar too long for its room narrows its last unit to its least before the one before it gives
anything (ShrinkOrder::FromEnd, read from InBar), as the old bars clipped from their end; rows elsewhere keep the
even share. A status bar's message now elides before its readout.
2026-11-12 14:32:44 +00:00
aiongg f85dd3717c Status reporters report StatusMessage
The Vanishing Point editor's refused Stamp press, the text styles panel's caret hint, the screen picker's
capture failure and the swatches panel and menu report a StatusMessage for the host's status bar in place
of a String, a Label or a Toast.
2026-11-12 14:32:44 +00:00