Commit Graph
1906 Commits
Author SHA1 Message Date
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
aiongg 03d2526deb Slider thumbs take the knob shape role and the control glyph size; component tokens removed
The slider thumb lengths were the only component tokens. A round knob is the control's glyph across
(StyleCx::glyph, shared with the icon-only button glyph); a tab knob is the control's icon side tall.
Themes choose the shape with shape.knob; Classic sets the tab, its old 10 x 16 thumb. TokenRef
collapses into ColorToken, and the theme file's components maps go.
2026-11-12 14:32:43 +00:00
aiongg 55ccaa3bf4 FlyoutButton's face wears the button's selected state from its resolved props: the Common it read is taken at step 1 2026-11-12 14:32:43 +00:00
aiongg 335f41a8d0 Component::BINDS_VIEW: a binding that is the component's view takes the wheel without focus; TimelineView and the navigator preview set it 2026-11-12 14:32:43 +00:00
aiongg 95194340a4 Histogram: a selectable plot always has its start and end sliders; with no selection shown they have no value, and Increment or Decrement makes one as the arrows do 2026-11-12 14:32:43 +00:00
aiongg 25cc4590b4 A face and a collection member take READ_ONLY and SELECTED from their props as a run does: steps::value_flags is the one source of a component's own flags 2026-11-12 14:32:43 +00:00
aiongg af7478966a One inline host: Mount::Inline uses run::Inline, and mount.rs's InlineHost copy goes 2026-11-12 14:32:43 +00:00
aiongg 90ec9741b4 craft::egui_fork::REV names the lockfile's egui revision, 3f56db2d 2026-11-12 14:32:43 +00:00
aiongg 012919b47e ListRow narrows its kept trailing items and its indent by the shared shrink rule (layout::shrink_widths): one share toward their leasts, and a row too narrow for even their leasts keeps their own widths 2026-11-12 14:32:43 +00:00
aiongg ef2b7c84f1 A text draft that does not parse says why: in its row's status line, else in its own tooltip
TextOptions::unparsed (TextField::unparsed) is the refusal the pass reports while the draft does not parse, unless
the binding gives its own. A container declares that its footer shows the message (FooterRegion::status; Field
does), the label scope carries that fact, and register_message reports whether the innermost label scope shows the
message. A control whose message no status line shows shows it as its own tooltip. HexField says "Not a hex color".
2026-11-12 14:32:43 +00:00
aiongg 0125617548 ColorRamp: Alt at a key or AccessKit activation picks the other colour
The bar and the boxes read Alt from the activation's modifiers, as a click reads it from the press.
2026-11-12 14:32:43 +00:00
aiongg 6e2687184d ColorDisc: the markers are one roving group
Every marker is a focusable member; Tab lands on the chosen one, a press focuses the marker it grabs, and the arrows
move the focused marker. Focus from assistive technology on another marker reports it as pressed. Roving takes
Arrows::None for a group whose members use every arrow.
2026-11-12 14:32:43 +00:00
aiongg dfd8a1f27a One step-until-changed for quantised colour steps
craft_behavior::nav::step_until_changed steps again while the value is the same one to the control. ColorStrip
uses it in place of its own loop; PointPicker takes a `same` test and runs every relative move through it.
ColorArea steps a quantised field by the channel's step until the colour changes, as the old area did.
2026-11-12 14:32:43 +00:00
aiongg a43ee26057 PointPicker: ring mark for colour fields, Page Up/Down pages y, Home/End take x to the edges
ColorArea marks its point with the ring the wheel's knobs use.
2026-11-12 14:32:43 +00:00
aiongg 566ac0021e A tool story's buttons wrap onto more lines when the stage is too narrow for them 2026-11-12 14:32:43 +00:00
aiongg c53d96000c Transform Symmetry story runs the session live: the handles move and turn the preview, Enter or Apply stores it and reopens the session on it, Esc or Discard reopens it on the stored symmetry. A Modes story shows the guides of each mode at a centre and angle from the story values, with the handles on request 2026-11-12 14:32:43 +00:00
aiongg 87a1076f64 Connector tool story runs live over three boxes, the third with numbered sites: a drag draws a connector with the routing the story picks, the new connector is selected and its handles reattach and reshape it, Select Next moves the selection and the others are drawn muted. A Routes story draws the route between two boxes for every pair of sides 2026-11-12 14:32:43 +00:00
aiongg 648698e068 Slice tool story runs live over a document's user, auto and layer slices: Slice and Select modes, Photoshop or Illustrator rules and the lock as story values; Promote, Delete and Hide Auto Slices act from the story's buttons, Slice Options and Divide report; the status line reads the selection and the last command or refusal 2026-11-12 14:32:43 +00:00
aiongg 92e187cf78 Artboard tool story runs live over three boards on the pasteboard: draw, move or copy, resize, the + buttons under Photoshop's rules, Illustrator's multiple selection, Options and Leave; a board's name selects it, the third board's lock and the rules are story values, the status line reads the selection and the last result 2026-11-12 14:32:42 +00:00
aiongg 52d52f43b8 Tool stories play their gesture: ToolScript sends a scripted press, moves and release through ToolHost::inject, and the story's buttons (Play first) stand in the stage's footer, a row as wide as the stage under the canvas. Stack::footer_gap sets the space above a footer. The brush resize and the selection tools' stories have Play scripts as the old stories had 2026-11-12 14:32:42 +00:00
aiongg e67bb44406 TimecodePanel: rows are TimecodeReadouts, each opening its own context menu
Each row is a read-only readout: the time in mono with tabular figures, centred, the first row in the accent ink, the
caption centred under it in muted caption type, with no hover, press or selection look. A readout is one Tab stop
and a click focuses it; a secondary click, the Menu key or Shift+F10 opens that row's menu through Menu::context.
The selecting List of ListRows and its selection memory go.
2026-11-12 14:32:42 +00:00
aiongg b8b46132b5 A tool bar's members take the standard control size; options and status bars keep the small one
The old toolbar's buttons were standard-size squares and its options and status bars small; Bar takes its child
size from its kind.
2026-11-12 14:32:42 +00:00
aiongg fd2e9d2abb Footer buttons and media controls are Tab stops of their own; the text ruler is one Tab stop
FooterBar no longer makes its members one roving group, so each dialog or panel footer button is a Tab stop in
display order, as the old PanelFooter. Bar::tab_stops drops a bar's roving group; MediaControls uses it. The
TextRuler's markers, stops and column borders are one roving group whose Page keys move between them, as the
canvas guides; the arrows reach the ruler as nudges, and its own Page pick goes.
2026-11-12 14:32:42 +00:00
aiongg 0b82d9415e Thumb rows: a split thumb moves as a pair on every input and with Alt as one half, coinciding halves take the press's side, presses off the thumbs follow the row, and spans mark ranges (C4)
- RowRules: keys, the wheel, AccessKit and resets of a split half move the
  pair, keeping the spread; Alt (the fine flag on keys, Alt on the wheel)
  moves the half alone by the plain step. A drag reads Alt in every frame,
  so holding it mid-drag moves the half alone from where the drag began.
  The pair's bounds leave out the partner's own order.
- A press on coinciding halves takes the half on its side of the tip.
- OffThumbs: Jump (levels), Nearest (Blend If: a tap only focuses),
  Ignore (hue range thumbs).
- ThumbSpan bands under the thumbs, for the hue editor's range extents.
- BlendIfBar and HueSaturationEditor keep their axis in RTL.
- BlendIfRange::moved goes: the thumb row rules replace it.
2026-11-12 14:32:42 +00:00
aiongg ed6caeb14f A shrinking row that cannot fit even at its units' leasts keeps their natural widths and overflows (FW-192)
Cutting every unit to its least buys nothing in a row that runs off its end
or scrolls anyway; the units stay legible instead.
2026-11-12 14:32:42 +00:00
aiongg 47ae4415b2 Row menu: the More button's click makes the context request a host's Menu::context on the list opens from, as the Menu key does, and the row whose menu the collection asked for keeps its button shown while that menu is open (RowState::menu_open); a List story shows row_menu with the host's menu, whose Rename opens the row's field 2026-11-12 14:32:42 +00:00
aiongg d8ae35a263 PlacesTree trial: the disclosure triangle opens a folder and closes it again 2026-11-12 14:32:42 +00:00
aiongg 009f161cbb Row slots: a hosted trailing component takes the width it measures (trailing_field, optional_field drops first, trailing_space keeps an absent field's room), lead_text puts a short text in the leading slot whose double click a row reports as LeadClicked, and a trailing part's click carries its count and whether its row held the lead when the press began (RowPressed::Part)
PageList shows each row's number and reports Fit on a double click on it; its options open on the active row or on a double click. PaintList hosts the paint chip, hex and opacity fields and the binding's badge, with a solid row named by its hex. RenderQueueList's row actions are small labelled buttons and an encoding row shows its progress bar. LayersPanel::trailing adds the host's component after a row's indicators. A row's progress bar is named after the row.
2026-11-12 14:32:42 +00:00
aiongg 9264360b96 EventList: a trial that a click on the selected event deselects it 2026-11-12 14:32:42 +00:00
aiongg b2f35435ca Pointer commands on rows: a right-click on a thumbnail names it in the menu request, and command_click makes a Cmd/Ctrl click a command on the row (ChannelsPanel loads the channel; LayersPanel opens the mask's menu) 2026-11-12 14:32:42 +00:00
aiongg d51bbc0738 ToolbarDrawer: rows pick without selecting; a click or Enter selects the tool 2026-11-12 14:32:42 +00:00
aiongg 6261e56681 Collections take a wheel notch (Notch, shared with bodies); TileGrid scrolls a third of its view per notch 2026-11-12 14:32:42 +00:00
aiongg 147778fc2f Collections report a double click on their empty space as EmptyActivated (TileGrid's import gesture) 2026-11-12 14:32:42 +00:00
aiongg fd2d34156f A selected list row shows its selection whether or not it is highlighted 2026-11-12 14:32:42 +00:00
aiongg 2ee9155582 VersionHistoryPanel: a version's description shows at most three lines 2026-11-12 14:32:42 +00:00
aiongg ac563d9eb3 Collections take a row range: min_rows and max_rows bound their height, and a capped one scrolls its rows; MissingFonts, TabStops, TextStyles and FieldList set theirs 2026-11-12 14:32:42 +00:00
aiongg 91feae4b18 A press on the focused text widget keeps the focus and the draft
The focus service classifies a press that egui gives to the widget holding the focus (the text of a field in edit) as a Keep: no commit, no focus move. A second click on a number field in edit keeps the field in edit, and the field's root sees no press of its own, so a search field in a menu does not activate and close the menu. This replaces recording the text widget as one of its root's press widgets.
2026-11-12 14:32:42 +00:00
aiongg 1fa9758bc6 Command board: a component's command reaches a modal's instances from where the component sits
A control inside a modal layer resolves and fires its commands with the instances around it counted as inside the modal (Reach::Chain), not the instances around the key focus: a set-row action of the Keyboard Shortcuts dialog fires while the focus sits in its search field. Sources without a component (menus, shortcuts) keep the focus chain. The focus chain's inside-modal instances run from the modal root inwards, as documented.
2026-11-12 14:32:42 +00:00