Commit Graph
1943 Commits
Author SHA1 Message Date
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
aiongg 16c83c69b1 Status bar members: StatusMessage and StatusProgress, the old status bar stories
StatusMessage is the message and tone a component reports for the status bar and the member that shows it:
a rule, then the text faint or in its tone's colour, elided on one line. StatusProgress is a background
task's readout for the trailing group: name, progress bar, percentage and Cancel. The render-path label is a
Link in the warning tone. The Bar Status story becomes the old PhotoCraft, Error, Narrow and Job stories.
2026-11-12 14:32:44 +00:00
aiongg 26a80efde5 cargo fmt 2026-11-12 14:32:44 +00:00
aiongg c2cf58941d HarmonyPanel: strip and grid span the panel's width; the centre column is marked
Swatch::marked draws a thin text-colour edge inside the outline. SwatchTable::span divides the
width among a row's cells with per_row; SwatchTable::marked marks cells by index.
2026-11-12 14:32:44 +00:00
aiongg b66c1bb69d PaintChip: No Color is offered unless none_allowed(false) 2026-11-12 14:32:44 +00:00
aiongg 364271a8db Trial: ThresholdEditor in a disabled scope takes no edit from its slider 2026-11-12 14:32:44 +00:00
aiongg 9a2b60fd7f ContourField: the thumbnail asks for the Contour Editor, the arrow opens the presets
PresetPicker's edit_face replaces the Edit Contour... button.
2026-11-12 14:32:44 +00:00
aiongg ed27286692 LayersOptionsDialog: the sample picture has the meadow's grass and the daisy, supersampled 2026-11-12 14:32:44 +00:00
aiongg e4fa9a575f LayersPanel row: kind tile when the thumbnail has no picture, two-ring Smart Filters badge, semibold fx
A layer whose thumbnail paints nothing gets the sunken placeholder with its kind glyph; a type layer
gets its T in ink on paper. ContentPainterCx::icon paints the glyph.
2026-11-12 14:32:43 +00:00
aiongg 0f7062bd15 Span::strong and ListRow::trailing_strong: a trailing mark in the caption role's semibold face 2026-11-12 14:32:43 +00:00
aiongg e4f9319744 The inspect overlay tints its padding band and marquee with the tint opacity 2026-11-12 14:32:43 +00:00
aiongg 27ca0a19ba A stripe role for striped lists and tables 2026-11-12 14:32:43 +00:00
aiongg 9d44fd0afc Opacity roles for label tints, span bars and secondary ink over data colours 2026-11-12 14:32:43 +00:00
aiongg 28f79987f7 A disabled tile's picture follows the disabled surface rule 2026-11-12 14:32:43 +00:00
aiongg 853fee571d Layer rows take the plain hover fill 2026-11-12 14:32:43 +00:00
aiongg 4aae406a65 Connector and Transform Symmetry stories use the old stories' words: Select next connector, a status line of the connector count and the last event, and Center x, y · angle 2026-11-12 14:32:43 +00:00
aiongg d205c35301 CornerWidgets' Edit story shows the old shapes (a rectangle, a star and a path along the page's foot) with kinds, the widest angle and the path's own radii as story values, and the last event under it. ColorSamplerMarks' Sample points story shows four points on a canvas as tall as the picture, with each point's pixel, RGB and CMYK as a panel reads them 2026-11-12 14:32:43 +00:00
aiongg 033f20875c Crop tool stories on CropOverlay, run live over a landscape: Default frame (the selection's bounds or the page; a drag inside draws a new frame; Pick another tool applies a drawn frame and Pick Crop tool picks it again) and Box undo (Undo and Redo step the box, disabled when there is no step); status lines of the frame and the last event 2026-11-12 14:32:43 +00:00
aiongg 6c0eb65964 A package's stories of a type another linked package registers run that type's per-story cases in the package's own suite; the type's required states and the check that some drive changes its value stay with its home package. A tool story's buttons are StoryButtons, each with its own enabled state, and story_tool reads the kept tool before the pass so a story can declare its buttons from the tool's state 2026-11-12 14:32:43 +00:00
aiongg 21b71e19d1 Completion list: a mark before each candidate and the highlighted one's description under the list; Enter accepts only where the field completes on Enter (ctl:72, ctl:73)
- Completion carries a mark and a description; the unread detail line goes.
- FocusPolicy::list_enter: a text opener of a KeepAnchor layer keeps Enter when its layer turns it off, and Tab alone
  takes the lead. TextField::complete_on_enter turns it on; the review composer's mentions use it, as before.
2026-11-12 14:32:43 +00:00
aiongg 97bd415a4c Text and Icon stories: every cut place, every content colour, six icons at each control size and in each tone (prim:20, prim:22) 2026-11-12 14:32:43 +00:00
aiongg a8e81bebea Text cuts at the start, the middle and the end, and a path drops leading folders first, through one cut routine (prim:18)
- Wrap gains ElideStart and ElideMiddle (the end keeps a quarter of what stays); ElidePath drops leading folders and
  cuts a last name too long by itself at its end.
- An end cut of right-to-left text keeps its logical start in either paragraph direction, its ellipsis at the text's
  own end.
- Breadcrumb ancestors and tile captions cut in the middle, as the old file-name cut.
2026-11-12 14:32:43 +00:00
aiongg 04799d4a30 ReferencePoint: every point shows a muted dot and the pick a wider accent dot; the cell under the pointer takes the hover fill (prim:9, prim:11) 2026-11-12 14:32:43 +00:00
aiongg 91785969cc Spinner: the arc's length breathes as it turns, its end sweeping 240 degrees times the sine of the time (ctl:40) 2026-11-12 14:32:43 +00:00
aiongg 73d1e35c3d Link: a click with a modifier held opens the URL in a new tab, as a middle click does (ctl:32)
Fixtures record the URLs the frames ask to open, for the trial.
2026-11-12 14:32:43 +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 2519fe36ee A canvas with a view is its body's scroll owner: the page keys a focused control in it leaves scroll the view as its own do, with their modifiers, and focus arriving at a control or part off a scroll owner's view brings it into view by the smallest move, every owner passing on the part it shows
ContainerProps::scroll_owner declares an owner without a scroll region; Canvas::view sets it. ScrollMoves keeps the move's modifiers, Intents::take_move_where is the one move taker (take_scroll_move goes; BezierOverlay leaves lead Page moves untaken through it), Focus::take_scroll_moves and Focus::take_reveal serve a declared owner, and settle reveals a focused part's rect. The reveal fallback goes to scroll regions only, so a layer over a canvas reveals nothing into it.
2026-11-12 14:32:43 +00:00
aiongg f58c1597d3 Facade manifest: back to the checked-in features table until the facade covers the split UI crates and the new format crates 2026-11-12 14:32:43 +00:00
aiongg 5b83d7fa69 Facade checks: feature-root and story-render are tools outside the facade, and the features table lists the member crates' current features 2026-11-12 14:32:43 +00:00
aiongg f87381d129 PlacesTree takes a drop onto a folder row the host accepts and reports it as Dropped with the folder and the payload; its story drags a Photo 7 chip onto the Photos folders 2026-11-12 14:32:43 +00:00
aiongg de12633142 OS files drop on a collection through a drop kind of OsFiles; takes_files, FilesDropped and the pending files drop go 2026-11-12 14:32:43 +00:00
aiongg 316ac6fa21 Collections take drops through drop kinds: a payload of any type, between items or onto an item, reported as one Dropped event with its place and payload; accept_from and the same-key foreign drop go 2026-11-12 14:32:43 +00:00
aiongg b2e3456601 ComboBox keys apply live: the option the keys reach in the open list is the field's text at once, and the list's Escape puts the typed text back
Cx::set_draft changes the text part's draft in the next pass: a text as a change of the typing run (beginning one when none is under way), or None to end the run with its start without the run's Escape reaching the host. A component that holds a layer keeping the focus on it (a dropdown, the completions) gives Escape to that layer first, read from the focus service's scopes. ComboBox puts the keyed option's text in, keeps filtering by what was typed, and on the list's Escape puts back the typed text, or reverts the run the keys began.
2026-11-12 14:32:43 +00:00
aiongg a8cc821ff9 Dropdowns close when the focus leaves their anchor, and Tab in an open Select chooses the row the keys reached
Overlay::dropdown dismisses on focus left (the tree picker and font rows keep it with their own Dismiss). CloseReason::FocusLeft carries what moved the focus (FocusMove: keyboard navigation, or a press or code), recorded where the focus service applies Tab, Shift+Tab and F6. OverlayUi::closing tells the opener why its popup closes this pass: Select commits its proposal on a keyboard focus move, cancels on Escape and on any other focus move. A dropdown's content is no Tab entry, and Tab from inside it goes on from its anchor.
2026-11-12 14:32:43 +00:00
aiongg 9777ba9c83 Rows, notices and gallery story columns derive their sizes from role tokens
A list row with a thumbnail is at least a standard control and the panel padding tall (the old
thumb_row_min), a centred notice reads about 38 body sizes wide, and the stage tokens become the story
stage (size.story), whose least width also sets the gallery's story columns. A gallery card is at
least a story and its padding wide, and its height guesses come from type and control roles.
size.thumb_row goes.
2026-11-12 14:32:43 +00:00
aiongg 635122bc4f Canvas controls and plots derive their sizes from role tokens; borrowed tokens move to their roles
The curve graph's largest side is 1.25 least plot widths, the compass a medium thumbnail (the old
compass_rect), the warp grid reveals its handles within 7 hit targets, and the transform box's hit,
rotate reach and rotate band are ratios of the handle side. The dock group's drag band takes its own
ratio of the handle side instead of the transform box's band, the timeline render bar the heavy
stroke instead of the slider groove, and the page picture the plot width instead of the floating
window height. handle.hit, rotate_reach, band_inner, band_outer, hit.reveal, plot.most and
canvas.compass go.
2026-11-12 14:32:43 +00:00
aiongg a338de11aa Value controls derive their sizes from role tokens: dial, dead zone, switch, progress bar and thumb row thumb
The angle dial is 1.75 standard control heights across with a dead zone of 0.1 (the old dial), the brush
ellipse two dials, the switch track twice its height (the old SWITCH_ASPECT), a progress bar two grooves
thick, and a thumb row thumb as the old levels thumb from the handle sides. size.dial, hit.dead_zone,
toggle, meter and marker go.
2026-11-12 14:32:43 +00:00