Commit Graph
1872 Commits
Author SHA1 Message Date
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
aiongg eb45645536 Story render: a story that opens a modal layer itself is cropped to its layers, as the old dialog shots
Only a dialog a card opened behind its button was cropped alone; a story that shows its own modal (the embedded
Preferences) was cropped with the story's rect, which starts at the window's left edge. testing::snapshot::modal_open
tells the renderer a modal layer is open.
2026-11-12 14:32:42 +00:00
aiongg bd6fbd2b54 A picture in a column sized from its content measures at its least width
picture_width took the column's room where the measure offered none. A measuring run in a content column offers no
room so that nothing there fills it; the picture took the room anyway, and a dialog sized from its content with a
preview (Export As, a parameter dialog) took its whole share of the window, or more. The picture now takes the room it
is offered and its least width where it is offered none; the real run shows it across the width the column settles on.
2026-11-12 14:32:42 +00:00
aiongg 05d5603a45 Preferences opens at 1040 x 800 and resizes down to 560 x 400, as the old window
DEFAULT_SIZE and MIN_SIZE are pattern constants again, given to the dialog's overlay. An OS viewport whose resizable
fallback has a default size opens at it, as the layer does, unless the caller placed it.
2026-11-12 14:32:42 +00:00
aiongg 21f92ff97e A label after its control adds the gap and its own width to its container, not the rest of the row
The label step leaves a control with its label after it only its least width at the row's start. The container's label
extent was the row less the control, so a measuring run, whose row is the room, made the field as wide as the room: a
content-sized dialog with such a field (a Preferences checkbox row) took the whole dialog share of the window. The extent
of an after label is the gap and the label past the control's end edge; control_after hands the label rect back with the
control.
2026-11-12 14:32:42 +00:00
aiongg 8331defed5 Blur Gallery pins leave a Cmd press to the host and report it as ignored_press
The pins are a canvas control (a component with parts in the canvas body), not a CanvasTool: their presses never pass through the ToolHost, so ToolAction::Ignored can't carry this one. The output reports the press with the same ToolPointer that ToolHostResponse::ignored_press uses, for the app's tool.
2026-11-12 14:32:42 +00:00
aiongg 307b0467f5 Digit keys set a canvas tool's opacity: DigitKeys pair rule in craft-behavior, the OpacityDigit command set (1…0, Shift+1…Shift+0) in ui-canvas 2026-11-12 14:32:42 +00:00
aiongg 61c242495a Reading view trial: Cmd or Ctrl with the wheel turns no column; the zoom stays the app's 2026-11-12 14:32:42 +00:00
aiongg e5b9ebac3b Cmd/Ctrl with Page Up or Page Down scrolls a focused document canvas sideways on every OS; the key role marks a document canvas, and roving groups and the Bezier overlay leave those keys 2026-11-12 14:32:42 +00:00
aiongg bc4c615436 Warp pins: Alt held over a pin shows the not-allowed cursor of the delete its press makes 2026-11-12 14:32:42 +00:00
aiongg e565c9fae1 Ctrl held turns snapping off in every snapped drag: snap_suspended and snap_tolerance beside Snap, used by ToolContext::snap, the Transform box and Crop 2026-11-12 14:32:42 +00:00
aiongg 9839432649 One Shift-45° helper: turn_to_45 in geometry::lock keeps the length; the measure, gradient and pen copies go, and the gradient's angle_base with them 2026-11-12 14:32:42 +00:00
aiongg 08f208edbd Ruler tool story runs live over the object: a press draws a new line, Shift holds it to 45 degrees, the ends drag and Alt from an end draws the protractor arm 2026-11-12 14:32:42 +00:00
aiongg 446ad245aa Canvas tools declare their nudges: a tool that claims them (ToolClaims::nudges) describes what its arrows move, the host declares Increment and Decrement on that node and turns them into nudges. The Ruler (its line), the Artboard tool (the selected boards outside a drag) and the annotation Select tool (its selection) claim them 2026-11-12 14:32:42 +00:00
aiongg 11758c80f0 Number and timecode fields: a click that enters edit selects the text as focus does, and a press on a field's text in edit stays the field's
A click on a field that scrubs by its body focused it with the caret where the press went down; it selects as the field's focus does (the codec's caret, all of a number), as the old fields did. The text widget, which takes egui's presses while the field is in edit, stands for its root in the focus service's press records, so a press on it is the field's and no longer an unclaimed press that drops the focus.
2026-11-12 14:32:42 +00:00
aiongg 81cf5b3e56 A slider's track gives way to a square of its control height in a shrinking row, and the eyedropper hint elides, so the media bin footer and the eyedropper selects keep their room (FW-192) 2026-11-12 14:32:42 +00:00
aiongg 2e4be05c86 Neighbour rule per component (D14): ThumbRow pushes or stops at ordered thumbs, a divider moves its neighbours or only its pair; BlendIfBar pushes, ColumnBar moves only the pair (K9) 2026-11-12 14:32:42 +00:00
aiongg 65e1d8f937 Value thumbs light when a press would move them: one ring for Slider, RangeSlider and ThumbRow; a press grabs within half a thumb; a click on the span focuses the nearer thumb (K9) 2026-11-12 14:32:42 +00:00
aiongg 7fb687e0e1 Slider thumbs as surfaces: the knob on Slider, the flat handle on RangeSlider, each with its disabled look; a disabled groove keeps its colour (K2, compare-3 16) 2026-11-12 14:32:42 +00:00
aiongg 0f68189efc docs: build a crate's tests instead of checking it first
A check is a separate cargo build of the same crates, so cl check followed
by cl test compiled every edited crate's front end twice.
2026-11-12 14:32:42 +00:00
aiongg d8f6719fdd tools/cl: a timing report and a cl.log line for every build
Every build cl composes passes --timings (the newest 200 reports kept), and
every cl command appends one line to <target>/cl.log with its build and
test-run wall time, exit code and report, so a slow loop can be read from
data afterwards.
2026-11-12 14:32:42 +00:00
aiongg a12625ddfc tools/cl: builds through CL_LAUNCHER, test binaries and renders through CL_RUNNER
cl test builds with cargo test --no-run and runs each test binary itself, as
cargo would, through CL_RUNNER. A wrapper that limits how many test binaries
run at once then holds its limit only for the run; held for the build, it
queued every build behind the slowest one while the job pool already shares
the cores between builds.
2026-11-12 14:32:42 +00:00
aiongg 4c80ffcd7a fmt 2026-11-12 14:32:42 +00:00
aiongg 75f37a1417 Hex fields show uppercase digits behind a fixed #, apply as typed, and take a web-colour mode
HexCodec writes the digits without the #, uppercase, with one or two digits per channel and the alpha digits only when asked; it reads with or without a leading #, and a draft applies as soon as it is a colour. HexField is monospace with the # as a fixed prefix (TextField::prefix, a text adornment), so the picker, the Color panel readout, preferences and Save for Web all show it the same way.
2026-11-12 14:32:42 +00:00
aiongg 592f383687 Absolute value drags set the value on press
A part that senses SETS_ON_PRESS runs its gesture through Cx::follow_press: the press begins it with the value under the pointer, shown in the press pass, a drag follows the pointer and the release commits. PointPicker (and ColorArea through it), ColorStrip, ColorWheel and ColorRamp use it in place of their own DragStart, Drag, Release and click handling; their drags take no modifiers, as before the port. ValueDrag::at gives an absolute drag's value at a point. The suite's slop case expects a one-value gesture within slop on such a part.
2026-11-12 14:32:42 +00:00
aiongg d0a903d69a Field adornments carry text: a unit after a number is a text adornment
Adornment::text(label, role) is measured with the field and placed by place/reserve like a glyph or a button, against the text with no gap. NumberField's unit is its first trailing adornment; its own unit layout goes.
2026-11-12 14:32:42 +00:00
aiongg 6fe24f64b2 Drop mark: bands and halo in whole physical pixels through RuleWidth, like every rule 2026-11-12 14:32:42 +00:00
aiongg 9d7e25bdeb Perspective Crop tool story runs live from no quad: a drag draws a box and four clicks place the corners, then the quad takes its own gestures and Enter or Esc ends the crop 2026-11-12 14:32:42 +00:00
aiongg 062812c03e Brush and stroke stories run live. The brush's cursor follows the story's tip (round, star, thin ellipse, pixel) and cursor preferences over a turned or mirrored view, and Ctrl+Alt+drag or Alt+right-drag resizes it with the falloff preview and readout. A stroke tool paints strokes that Shift holds to 45 degrees with StrokeLock, and Shift shows the straight line a click draws from the last stroke's end 2026-11-12 14:32:42 +00:00
aiongg 64d03f8ef9 Live tool stories: tool_story keeps the tool and the document it edits across passes and runs the tool on a canvas over the story picture; the selection tool stories run on it with a selection of combined shapes that starts round the house, the marquee kind and style and the magnetic options as story values, and a status line; the mock Move tool moves the current layer with MoveGesture 2026-11-12 14:32:42 +00:00
aiongg 523d6687ea A read-only grid stays a Tab stop
A read-only text stop takes focus from a press only. A grid's text part edits one
cell, and the grid itself holds cells the keyboard moves between, so a read-only
grid, table or tree stays a Tab stop and the keyboard still reaches its cells.
2026-11-12 14:32:42 +00:00
aiongg c72cf6f45b Docked scroll bars keep the edge rule's colour 2026-11-12 14:32:42 +00:00
aiongg 57125193a6 Drop imports the shared painters left unused 2026-11-12 14:32:42 +00:00
aiongg 5222fd63e5 Dock column and tool rail share the collapse chevrons
The dock column bar's collapse control shows the icon set's double chevron, as
the tool rail's column toggle does, through one function that names a direction
on screen and never mirrors; the dock bar's own chevron painter goes.
2026-11-12 14:32:42 +00:00
aiongg 24a857d122 Underlined text comes from the text run
Span::underline sets the span format's underline, which the text layout places
on the line box's bottom and snaps to pixels. TextRun::mnemonic underlines one
character; menu items and menu bar titles show their mnemonics with it, and a
link underlines its whole run, in place of three hand-drawn lines.
2026-11-12 14:32:42 +00:00