Commit Graph
1652 Commits
Author SHA1 Message Date
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 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
aiongg 94010bf6b6 One mixed-state dash for check boxes and swatches
glyph::dash sits beside the check mark and the radio dot; Checkbox and Swatch
stroke it instead of their own dash constants.
2026-11-12 14:32:41 +00:00
aiongg 5d8b0a94de Hand-stroked dividers and edges use the rule painter
The split button's divider, the timeline track header's divider and the table
outline and grid header edges paint through Draw::rule and Draw::rule_with, the
one pixel-snapped line, instead of their own strokes.
2026-11-12 14:32:41 +00:00
aiongg a53d901967 One scroll bar painter for overlay and docked bars
ScrollBarLook names its kind: an overlay bar over the content, or a docked bar
beside the view with a chrome track, a divider on the side facing the view and
an inset thumb. ScrollBar::thumb is the one thumb geometry, which PartsCx::scroll
declares and ScrollBar::shapes paints; the canvas scroll bars and the timeline's
bar paint through Draw::scroll_bar instead of their own copies.
2026-11-12 14:32:41 +00:00
aiongg be6d1a3332 Rules draw one physical pixel at every scale
Dividers, edges and grid lines are hairlines, as the old Divider was; the drop
mark keeps its medium width. RuleLook carries a RuleWidth that the rule painter
resolves to whole physical pixels.
2026-11-12 14:32:41 +00:00
aiongg 65256b213a Focus left by a removed stop skips press-only stops: a dismissed toast hands focus to the next card's Dismiss, not to its selectable message 2026-11-12 14:32:41 +00:00
aiongg a19a7db2cf PageThumbnails: New Slide is the grid's own row after the last thumbnail, and drags and drops land before it 2026-11-12 14:32:41 +00:00
aiongg 6a3cc54ed4 Rows drag only in their mode: TextStylesPanel rows drag while highlighting, and the toolbar drawer's tools already on the toolbar do not drag 2026-11-12 14:32:41 +00:00
aiongg 5e5ec39ec1 One drop mark look: the drop rule is a thick accent band on a thin halo of the panel surface, for lines and along the inside of row and area marks 2026-11-12 14:32:41 +00:00
aiongg fa1466efa4 Drag badge text: CollectionProps::drag_count names the dragged items with a count word (PageThumbnails: "1 page", "3 pages"); a dragged section shows its title by the pointer 2026-11-12 14:32:41 +00:00
aiongg 23934cdd6f Collection response reports the drop a release would make: PendingDrop (own reorder, items from another collection, OS files) while the collection's target wins; LayersPanel previews it as drop_preview, PageThumbnails reports drop_target and file_gap 2026-11-12 14:32:41 +00:00
aiongg 6bc2e2ed7c Table column move through the drag session: a header drag marks the gap it would drop in with the drop line, and the release moves the column there 2026-11-12 14:32:41 +00:00
aiongg 1e1f36fbea Timecode caret: Left or Right with the whole text selected starts from its last digit (TextOptions::arrows_from_end) 2026-11-12 14:32:41 +00:00
aiongg 7d0bf2b01a Scrub sources: a drag on a field that is not in edit scrubs it (NumberField, every TimecodeField), a press that begins in edit stays the text's, and a drag from the popup slider's chevron moves the value as far as the slider would and its release closes the slider 2026-11-12 14:32:41 +00:00
aiongg 2da81e2559 Select: the open list is one gesture, each row the keys reach is proposed and closing without a pick puts the value back; typing on the closed field opens the list on the first match (KeyUse::with_type_ahead) 2026-11-12 14:32:41 +00:00
aiongg 2d16976d72 Whole-number fields: table counts and warp distortion write whole numbers; a fine key step moves a share of the step only where the field's decimals show it 2026-11-12 14:32:41 +00:00
aiongg d1a90a2447 Toggles open on the press by default: menu and dropdown openers (split button arrow, breadcrumb ellipsis, number field chevrons, bar overflow, panel menu) let press, drag, release pick a row; on_click keeps the release for the iconic flyout and the date calendar 2026-11-12 14:32:41 +00:00
aiongg eb8dfdb97f Revealed trailing parts and the list's row menu: trailing_part_revealed shows a part on a hovered or selected row, while it has focus or while its menu is open; List::row_menu gives every row a More button whose click asks for the row's menu as a secondary click does 2026-11-12 14:32:41 +00:00
aiongg 1ae7661643 Rename draft: a collection gives the text a rename field opens with (List and Table rename_draft); PageList opens it empty with several rows picked and starts a rename from the app's command 2026-11-12 14:32:41 +00:00
aiongg 23b1feabac Row press on toggle cells: the collection hands the press it holds on a row to the row as RowState::pressed, a held part paints pressed, and a toggle cell shows a press on itself or, with row_press, on its row; BrushSectionList's enable boxes follow the row 2026-11-12 14:32:41 +00:00
aiongg 4d6ff42eb7 Selection parts: read-only text any component can make selectable
PartsCx::selectable_text declares a run as a selection part with a press-only
stop in no group; step 8b gives the focused one Select All and Copy; and
PaintUi::selectable_text shows it through the text widget with the run's own
galley, in the state's colours. Notice title and message, MetadataTable values
(ListRow::cell_selectable) and SelectableText use it. SelectableText loses its
Bind and Input::Text path and becomes a label whose value is its text. The
suite presses the focus registration's press-only stops when Tab reaches
nothing, instead of guessing from Input::Text and a read-only node.
2026-11-12 14:32:41 +00:00
aiongg 79da12f8c9 Overlay trials: the modal and sampler dialogs start focus on their first stop explicitly (K17)
A dialog starts on its first field, else its default button, else nothing. These trials' content is a plain focusable
leaf, and they test focus return and the sampler keeping key focus, so they ask for Initial::First.
2026-11-12 14:32:41 +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 05080d1f80 fmt 2026-11-12 14:32:41 +00:00
aiongg a4dbca651e Trial: opening a popover closes the open one; the Recovery story starts with Recover available (K17, compare-3 17) 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 dba0f0d3fa Dialog focus: the first field on open, the new tab stop after Set, the password field after reveal (K17)
A dialog opens on its first text or number field, else its default button, else nothing (Initial::FirstField, the
DIALOG policy's default). The per-dialog first-pass focus requests in Markers, Slice options and Page Setup go: the rule
gives the same field. focus::request reports whether it took effect, so a pending request outlives a measuring run.
2026-11-12 14:32:41 +00:00
aiongg 47fdacf9d2 Under a modal layer, a dialog command reaches only instances inside the top modal or the canvas it holds open; Cmd+= in PagePreview leaves the PageView behind it alone 2026-11-12 14:32:41 +00:00
aiongg 9976cda32c DockGroup story with its panel menu open
The panel menu is the group's own popup, so the group shows an open story.
2026-11-12 14:32:41 +00:00
aiongg b085152bed Activation suite: the tree signature is keyed by node
A node that goes or appears (a closed tab whose place the next one takes) is an effect, and the order the tree
reports its nodes in is not.
2026-11-12 14:32:41 +00:00