Commit Graph
10 Commits
Author SHA1 Message Date
aiongg 714301c54f Trials: session keys before the tool, Insert on an anchor, the keyed pasteboard menu, Transform Symmetry's press 2026-11-12 14:32:40 +00:00
aiongg 4a5a6831e9 Canvas overlays: Insert, the keyed pasteboard menu and Delete on a selected guide
BezierOverlay reports an insert halfway along the segment leaving the picked
anchor on Insert, and ArtboardOverlay adds a board on the right of the picked
one. The Menu key or Shift+F10 on the focused canvas reaches the background's
controls (BackgroundPress::context_key), so the pasteboard opens its menu at
the view's centre. While a guide is selected, Guides hold Delete and Backspace
on the focused canvas and remove it.
2026-11-12 14:32:40 +00:00
aiongg 54a0c063fa Canvas session controls take the canvas's Enter, Escape and arrows first
KeyUse::session marks an arena member that holds its arena's edit session.
While none of its parts has focus, the runtime lends it the Submit, Cancel and
nudge routed to its arena root and, with nothing focused, the window's; what
it leaves goes back before the canvas's tool reads them. With nothing focused
the key stage routes the arrows as window nudges, which the tool host also
offers to the tool.

CropOverlay, TransformBox, PerspectiveCropQuad and SymmetryHandles (in a
session) act on the whole frame, box, quad or centre when no part has focus.
The tool-side copies of those keys go: CropToolPass bundles the overlay's
nudges in take, TransformTool keeps Enter and Escape for the Warp phase only,
SymmetryTool and the quad's Submit and Cancel in PerspectiveCropTool go.
SymmetryTool spends a press away from the handles.
2026-11-12 14:32:40 +00:00
aiongg 0e9ca32073 Story readouts: a line under the story in the old stories' words
StoryOutput::readout is a line a story words about what it shows or what last happened in it;
the gallery card shows it, muted, under the story in every layout. StoryData::note keeps what a
readout needs (last event, click count) outside the story's values, so drives and Reset compare
values only. The old readout lines come back for ColorWheel, ColorPicker, SwatchPalette and
SwatchTable, GradientPalette, TipEllipse, the symmetry canvas stories, LutPicker, ColorChoice,
Swatch, LayersPanel, MediaBin, ChannelsPanel, ToolRail, StrokeEditor and StrokeButton.
2026-11-12 14:32:40 +00:00
aiongg d9e2f6e4f2 Bars: the trailing group follows commit and cancel; parts back on their old rows
TransformBar pins Reset warp, its rule and the mode switch after commit
and cancel. The annotation toolbar puts its colour and width on a second
row, and the crop bar shows Delete Cropped Pixels and Fill on the bar.
Bar::vertical goes: the vertical tool strip is a rail.
2026-11-12 14:32:40 +00:00
aiongg c427e539c3 Bars: rules between groups, faint hints and the options bar's Home and tool icon
A Divider::vertical() is the bar's one section break: the connector,
shape and eyedropper bars, the about dialog's controls and the status
story place it where the old bars did. Hints use the faint shade.
BarHome and BarTool are the parts an options bar starts with. A
captioned control in a bar is a Field; BarCell goes.
2026-11-12 14:32:40 +00:00
aiongg e64dd901d9 Tooltips: a control that paints no label shows its own label, and the hints and names the old controls showed
A control whose own label is not painted (an icon, a glyph label, a caption-less tile, a chip, the stroke button) shows that label as its tooltip inside a field too; one named only by its field label shows none. Restores the old tooltips of the ReferencePoint points, the list disclosure, the PeopleBar avatars, the recent files, Distribute Rows Evenly, a page that failed to render, the font class mark (ListRow::trailing_named) and the Character hints (SideLabel::tooltip).
2026-11-12 14:32:39 +00:00
aiongg 8b2e44fa98 State looks: one state layer, check indicator press and well, dropdown and field edges
- StyleCx::state_layer is the one hover and press fill; PartBuilder::state_layer declares a part whose look it is,
  and the paint step fills such parts under the component's paint (Rating stars, Breadcrumb crumbs, the reset dot).
  Button's local overlay goes.
- The paint step's surface shapes move into one function, which Draw::surface_look also paints for a part.
- Check box, radio and switch draw their well on the sunken surface (the bevel in bevelled themes), take the press
  fill while pressed and the accent's pressed shade while on and pressed.
- StyleCx::dropdown: the closed box of Select, TreePicker, PresetPicker and the stroke button takes the hover fill
  under the pointer and while open.
- A focused invalid field keeps its focus edge and draws the failure colour as a line inside it (SurfaceLook::inner).
- The selected segment keeps hover and press looks; the disclosure glyph lights under the pointer; the EdgePicker's
  hovered line widens in its own colour; the chip body wears an outline badge, so it takes the hover fill.
- SurfaceLook::kind_on: the kind a look takes while on.
2026-11-12 14:32:39 +00:00
aiongg 613b6a82c1 Story canvas: stories draw their old content through StoryPicture
StoryPicture is a story picture whose pixels are a function of the document point, and StoryShape
fills and outlines shapes on it; show_quad takes any picture. The stories show what the old gallery
drew under their control again:
- CropOverlay: the crop tool's landscape under ratio_held, straighten_armed (horizon at 6 degrees)
  and image_mode.
- GradientOverlay: the gradient itself in 64 x 40 cells, on the old line with the old four stops.
- HoverOutline: the light picture with the hovered object in the accent.
- ConnectorHandles, CornerWidgets, RulerOverlay, TransformOverlay: the boxes, rounded shapes,
  measured object and transformed layer in the accent.
- TransformBox and PerspectiveCropQuad: the layer and page with their dark grey edge.
- ColorSamplerMarks: the hue and brightness picture the samplers sit on.
- WideAngleWorkspace and ConstraintLines: the generated picture in place of flat grey.
SmartGuides, RasterDisplay and PixelGrid stories draw their pictures through StoryPicture;
FlatPicture is gone.
2026-11-12 14:32:39 +00:00
aiongg fa139e6d3d Picture crates on the framework: imaging, draw, colour, layers 2026-11-12 14:09:48 +00:00