Commit Graph
20 Commits
Author SHA1 Message Date
aiongg 8296832417 A field takes its content width among a bar's members
ContainerProps::content_in_bar keeps a container from the width in a bar; Field sets it, and an explicit sizing
clears it. The Content sizing every bar set on its fields is gone.
2026-11-16 16:02:09 +00:00
aiongg 8f1d4731d5 Props: vis option for setters; settings read follows open_with's folder and reports a damaged file; agent link rejects out-of-range ports 2026-11-16 14:10:46 +00:00
aiongg 0835e114ca Fix CI lints: samples referenced in every build, missing docs, rustdoc links, deprecated Ui::id, unused manifest dependencies 2026-11-16 03:03:33 +00:00
aiongg 19cd2e1762 commands: a story's command set (#[command(story)]) loads only in an install that shows stories (the gallery, the story fixtures), so its keys never take an app's 2026-11-15 18:28:52 +00:00
aiongg 692c7179ca ui-macros: derives look up the craft facade first and reach a renamed dependency by its name 2026-11-15 09:57:38 +00:00
aiongg cdd7b21702 ui-macros: derives name the framework through the facade when the app has no direct craft-ui dependency 2026-11-15 09:26:43 +00:00
aiongg 3c509c6227 Contract stubs: craft-ui-macros, craft-ui-widgets, craft-ui-panels 2026-11-14 01:46:34 +00:00
aiongg a17171af48 Lints: drop the workspace missing_docs lint and warn on it in the framework crates that document every public item 2026-11-14 00:15:29 +00:00
aiongg e1d34a0093 Text parts open the framework edit menu on a context request
Every craft text control (TextField, NumberField, ChipField, AltTextField, DateField, ComboBox) shows the
EditMenu in a context menu on a right click in its text, the Menu key or Shift+F10. The open menu holds the
focus without ending the text part's typing run or losing its selection, so Escape closes the menu and the
field keeps editing, and a picked row acts on the field's selection once the focus is back. Rows run their
EditCommands through the command board, the same route an app's Edit menu uses.

- record_context counts a secondary release on a component's text widget
- a secondary press inside the selection keeps the selection
- EditCommand::Delete: the Delete command run from a menu deletes a text part's selection; the Delete and
  Backspace keys stay the text part's own deletion, and editors leave the command to the app
- TextField/NumberField::own_context_menu for a caller that hangs its own context menu on the field
  (the transform fields' unit menu)
2026-11-12 18:32:56 +00:00
aiongg eab5b32afa Collection row height: CollectionProps::row_height picks control-high or text rows, one resolver for the item layouts, the min_rows fill and ListRow's least height, which each ListRow collection sets in dress 2026-11-12 14:32:50 +00:00
aiongg 13221fd697 Collections take their width from content where their column gives none, and honour their pad
A collection that fills the width (Fill or FillWidth) follows the rule a
container does: where the enclosing body does not give its width (sized
from content, or a content column), a measuring run takes the width from
its content (header least width, else its largest row, at least its
ideal_width) and the column holds it across the width it settles on. A
FillWidth TabStrip or list in a dialog's column no longer sets the
column to the screen's width. Env::gives_width names the rule for both.

Collections honour ContainerProps::pad as containers do: the items hook
reports it (ShapeHooks::pad), the pass carries it in Resolved::pad, and
step 5, the measure view's room and step 7's content rect read the
padding through steps::padding. The header, rows, scroll bar and empty
text sit inside it; the surface covers the whole rect. #[container]
forwards pad, so Panel's own copy goes.

The spelling, file list and glyph wells are a List or TileGrid with
surface(Sunken).pad(Control); RelinkDialog's table is FillWidth.
2026-11-12 14:32:48 +00:00
aiongg 0897874266 Every component takes one sizing setter: a leaf with Sizing::Content is as wide as its content, without its style's ideal width, and the selects the old gallery fitted to their entries are content-sized 2026-11-12 14:32:44 +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 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 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 bd04ee8b5e TileGrid keys: Cmd/Ctrl+digit ratings, Cmd/Ctrl + = / - / 0 zoom steps, and a slow click on the caption renames; the story turns Bridge's keys on 2026-11-12 14:32:40 +00:00
aiongg 3f63b71b3a Collection keys: a command palette's arrows wrap at the ends
CollectionProps::arrows_wrap passes the navigation's wrap to the item step's moves; the
command palette's list turns it on.
2026-11-12 14:32:40 +00:00
aiongg 939a80c85a Collection keys: type-ahead is a collection setting, off for lists
CollectionProps::type_ahead decides whether typed letters move the lead; the key role
reads it instead of turning type-ahead on for every collection, so a focused list leaves
single-letter tool keys to the app. Popup option lists, the hyperlink place list and the
gallery's component and token lists turn it on. The suite's type-ahead case runs where
the focused stop takes type-ahead.
2026-11-12 14:32:39 +00:00
aiongg e4d2fc38fb Runtime and contract: craft-ui-contract, macros and the test kit 2026-11-12 14:09:32 +00:00