Commit Graph
92 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 57125193a6 Drop imports the shared painters left unused 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 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 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