Commit Graph
87 Commits
Author SHA1 Message Date
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 ac9dd13cdc Toggle columns: one width from the toggle-column mechanism, a control and the inline gap (ColumnWidth::Toggle, ColumnSpec::toggle) 2026-11-12 15:42:15 +00:00
aiongg 6924d6a1bf Rules are 1 pt wide and take a band of their own
Divider and edge rules take the thin stroke (1 pt, whole physical
pixels) instead of one physical pixel; grid rules over the document stay
one physical pixel.

The rules between a container's regions (above and under the header,
beside a ruled footer, before a ruled end region) each get a band in the
region layout, so no rule lies over a region's content at any scale.
Rules drawn along a rect's edge (footer bar, tile grid tail, timeline
graph bar, docked scroll bar, layer row toggle cells) are edge rules on
the side the rule belongs to, so the second pixel at 2x stays off the
neighbour. The split button's divider reads the divider rule's width.
2026-11-12 15:23:58 +00:00
aiongg fc7d05a5fc NumberField: monospace digits, the unit apart at the end of the value area
The digits take the mono type role, as the timecode field does. The unit is a
smaller faint caption pinned at the end of the value area with the inline gap,
so the number centres in the room before it and stacked fields line their
units up. Units::suffix goes; callers pass the unit's symbol.
2026-11-12 15:12:11 +00:00
aiongg f7f75c178f Sizing::FillWidth makes a leaf fill its row's leftover room
Component::fills defaults to the width when the caller set Sizing::FillWidth,
and the sizing stays on the component after step 1 so the layout hooks read
it. Button, TextField and Slider lose their fill_width props and Swatch and
GradientSwatch their fill flags; callers set Sizing::FillWidth. The blend
select in BlendRows takes the room before Opacity, as in PhotoCraft.

A contract trial checks that a FillWidth leaf takes the row's room and a
Content leaf does not.
2026-11-12 15:12:10 +00:00
aiongg 02f0330866 Bar member rows keep the bar's spacing; RulerBar tenths; Pin Depth buttons side by side
RulerBar, CropBar and WarpFields show the bar's members in rows of their own, which spaced them at gap.row; they
take gap.item, as the bar and ConstraintFields do. RulerBar writes lengths at the ruler unit's readout digits
(tenths of a pixel, as PhotoCraft), not two decimals. PinWarpBar's two Pin Depth buttons stacked in their field and
made the bar's line two controls high, so the end icons sat below the Mode row; they sit in a row.
2026-11-12 14:32:52 +00:00
aiongg 232d0fd23e Disabled stories for the colour widgets and gradients; a trial for a dimmed ramp
ColorWheel, ColorDisc, ColorRamp, GradientSwatch and GradientEditor each
get a Disabled story, as their old stories had a disabled argument. The
gradient bar trial checks that a disabled editor's ramp, painted with its
content painter, dims and keeps its red and blue ends.
2026-11-12 14:32:51 +00:00
aiongg 522e71a4f0 Components that show data paint their enabled look faded when disabled
Picture, ColorWheel, ColorDisc, ColorRamp, TrackRamp, GradientSwatch,
BrushStrokeStrip, Histogram, GraphEditor, FontSample, CurveGraph,
ToneRamp, CurvePreview, VectorscopePlot and FramePreview declare
DisabledLook::Faded: their content is data painted with the content
painter, and their chrome has no Disabled look of its own. GradientSwatch
goes the way of Swatch: its edge loses its Disabled entry.
2026-11-12 14:32:51 +00:00
aiongg 46b36bae39 Inline slider fields show the slider and then the number field, as Photoshop's dialog rows; PictureFillEditor's Transparency is one labelled row of them 2026-11-12 14:32:50 +00:00
aiongg 5d6e75e768 SliceOverlay story: the Slice tool under its options bar, settings kept as a value 2026-11-12 14:32:49 +00:00
aiongg b0670a47af Draw stories: AddBeside readout from the measuring run too; the transform story shows the reference point 2026-11-12 14:32:49 +00:00
aiongg 4bbb40a2b4 Draw stories: the brush section lookup as a method; Two artboards reports a board-name click 2026-11-12 14:32:49 +00:00
aiongg 118c58c606 CropOverlayMenu and CropOptionsMenu: drop the starts-open prop; the opener button opens them 2026-11-12 14:32:49 +00:00
aiongg b1f4f5f88f Brush settings stories: the 13 Photoshop sections, Shape Dynamics pane, two control rows and both size fields 2026-11-12 14:32:49 +00:00
aiongg 197d70c249 Gradient stories: swatches with names and full-width bars, click count; editor colour-request readout 2026-11-12 14:32:49 +00:00
aiongg cef5a06ae0 Crop menus and Path Options start closed; their own buttons open them 2026-11-12 14:32:49 +00:00
aiongg 07f4e4ac31 Artboard stories: boards on the pasteboard, the bar resizes a kept board with a size readout 2026-11-12 14:32:48 +00:00
aiongg a755fc4781 AddBesideHandles stories: readout of the button pointed at and the last click 2026-11-12 14:32:48 +00:00
aiongg 8dcf67cf49 TransformOverlay story: a live session under its TransformBar, phase readout 2026-11-12 14:32:48 +00:00
aiongg ac006af946 GradientEditor: stop fields keep the form labels 2026-11-12 14:32:48 +00:00
aiongg 1362d47fe4 Label scheme: a container sets Form or Inspector rows for the labels under it
LabelScheme decides where a beside label sits (against its control or at
the row's start), whether it ends with a colon (and, in a bar, a glyph
caption too) and whether its control fills the rest of the row. It is set
with ContainerProps::labels and replaces the per-label LabelAlign.
Inspector is set on the old inspectors: ShapePanel, ArtboardProperties,
TableProperties, the colour picker's and gradient editor's fields and the
Inspector pattern, and on the TextField, NumberField and Select stories;
a Field story shows inspector rows.
2026-11-12 14:32:48 +00:00
aiongg 927c00eba2 StrokeEditor: the six dash and gap fields in two rows of three, so each keeps its widest value's width 2026-11-12 14:32:48 +00:00
aiongg a6bbf79ac1 stroke_editor trial: drop an unused import 2026-11-12 14:32:48 +00:00
aiongg c5bc52128c StrokePreview: the open line only, with its dashes and caps 2026-11-12 14:32:48 +00:00
aiongg d6b9cb66ae StrokeEditor: Illustrator's six dash and gap fields, no tall sample, and the panel as the default story 2026-11-12 14:32:48 +00:00
aiongg e0aafa296e GradientEditor: the stop bar keeps room for whole midpoint diamonds above and below the ramp 2026-11-12 14:32:48 +00:00
aiongg d2ab04b6b3 StrokeButton: as wide as its sample and widest name, not a field wide 2026-11-12 14:32:48 +00:00
aiongg d4c257a3c1 TransformFields panel form: the compact reference point with X and Y on one row, and the two skews on one row, as the old 2026-11-12 14:32:48 +00:00
aiongg ea9e36a4db SymmetryHandles story: the guides and marks under the handles, as an app shows them 2026-11-12 14:32:48 +00:00
aiongg dbbed1e922 BrushSectionList: the gaps between groups are their gap tokens high, not a row each 2026-11-12 14:32:47 +00:00
aiongg 89b582dc46 BrushSettingsPanel: the bottom row spans the panel, so the stroke strip takes the room beside the buttons 2026-11-12 14:32:47 +00:00
aiongg 6381555400 RulerOverlay: a cross at each point in the line's look, as the old Ruler ends 2026-11-12 14:32:47 +00:00
aiongg 5804589eaa Format the brush section list rows 2026-11-12 14:32:47 +00:00
aiongg 79c7732c40 NumberField: the unit follows the shown number, spaced as the language's unit template 2026-11-12 14:32:47 +00:00
aiongg 5f9ef50498 Brush section list: rows pass every cell, so the link and heading rows' labels start at the row's start edge over the empty toggle columns 2026-11-12 14:32:47 +00:00
aiongg c3644ee9dd PatternFillEditor: the Scale field shows its percent unit 2026-11-12 14:32:47 +00:00
aiongg a4d1587e69 Gradient chips: one 16:9 chip aspect and one chip look (swatch corners and ring) for the gradient swatch and the gradient palette cells 2026-11-12 14:32:47 +00:00
aiongg a89e8ac7b5 Colour markers: one marker look for colour fields, wheels, discs and gradient stops
A white ring with a dark halo just outside it, so one of the two reads on any colour; filled with the colour it marks on the disc and the gradient line, accent when a gradient stop or end is selected, large for a disc's base colour and a gradient line's ends. PointPicker's ring, the wheel knobs, the ramp cursor, the disc markers and the gradient overlay's stops and ends draw it in place of their own rings.
2026-11-12 14:32:47 +00:00
aiongg cfaf7074cf ConnectorBar stories paint the cap choices, so the pictures show in the list and on the faces 2026-11-12 14:32:46 +00:00
aiongg d1afe97dc8 Select closed face: Entry::closed_label is the face's text while the list, type-ahead and accessible value keep the label; Select::picture draws an entry's thumbnail in its row and on the face, alone with picture_only; ConnectorBar and the stroke editor use it, TabStopsDialog shows the leader fill alone in the box and the Leader cell 2026-11-12 14:32:46 +00:00
aiongg efc09443fa TransportBar centres its buttons and keeps the button editor at the end edge
Bar::align sets the body row's alignment; Bar::trailing gets the bar's body
context so an end-region group can read and write the state the body reads.
A centred or end-aligned row in a body that scrolls along x measures its band
from the view, as the shrink step does.
2026-11-12 14:32:46 +00:00
aiongg 873d83bec7 L12 build fixes: trial imports, unused import, artboard pairs in equal columns 2026-11-12 14:32:46 +00:00
aiongg 4258ddb15c presets: the browser's toolbar takes the host's tools and a picker names its browser; BrushPresetPicker puts its buttons in the search row and renames in place 2026-11-12 14:32:46 +00:00
aiongg 62d21e73ee draw: a locked shape layer disables the shape panel 2026-11-12 14:32:46 +00:00
aiongg 9b55676e41 ui-contract: a colour ramp and checker with rounded corners; GradientSwatch keeps its ramp inside its ring 2026-11-12 14:32:46 +00:00
aiongg af792540ea draw: StrokeButton draws the no-stroke sample and closes its popover on a change from outside 2026-11-12 14:32:45 +00:00
aiongg d438ee0b1f draw: pair the artboard's W/H and X/Y fields, indent the crop shield's settings 2026-11-12 14:32:45 +00:00
aiongg 2d4da9a7a6 AddBesideHandles: outline the hot side's ghost of what a click adds 2026-11-12 14:32:44 +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 8fc8f79834 A glyph label can sit inside its control: FieldLayout::Inside puts it in the number field's leading slot as a scrub handle, every measure of the control sees it, and LinkedFields rows, the character panel's fields and the transform angle use it 2026-11-12 14:32:44 +00:00