Commit Graph
46 Commits
Author SHA1 Message Date
aiongg 1951630307 canvas-widgets-w10: net change of 5 commits
- canvas-widgets-w10: partly written (run interrupted)
- canvas-widgets-w10: partly written (run interrupted)
- canvas-widgets-w10: partly written (run interrupted)
- canvas-widgets-w10: finished by an agent
- canvas-widgets-w10: review fixes (review-1)
2026-11-15 04:46:05 +00:00
aiongg bb277cc3ac Lints: doc links, ungate the click event helper, api map entry for AppPaint, test allowances 2026-11-14 02:51:47 +00:00
aiongg deeb91802f Lints: doc links, test lint allowances, struct update in tests, wildcard imports, dead code 2026-11-14 02:35:35 +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 5c890a33ae Manifests: crates that turn off a dependency's default features name it by path (cargo 1.95 refuses the override on a workspace dependency) 2026-11-13 23:36:41 +00:00
aiongg dbd8ec10c6 RasterDisplay extent: tiled copies and a region past the document, for source and painted pictures 2026-11-13 01:44:11 +00:00
aiongg 74a1426e57 F-5 review: the host reports the autoscroll step from the pass clock; the hover band is size.hit.edge inside the view's rect; a secondary background press leaves a text session open 2026-11-13 01:08:19 +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 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 fbab72ae31 TableProperties and the NumberField story use form rows
Both were plain field rows in the old gallery and in DesignCraft's table
panel: number fields keep their number length instead of filling an
inspector column.
2026-11-12 14:32:52 +00:00
aiongg a05363c900 EdgePicker and PeopleBar stories: the Row's inner is optional; following is set only for a followed person 2026-11-12 14:32:49 +00:00
aiongg c7217355a5 PagePreview story: starts closed over the thumbnails of eight pages, with a last-event readout 2026-11-12 14:32:49 +00:00
aiongg 78e8349251 EdgePicker story: cell and paragraph pickers side by side with outer edges on and a last-event readout 2026-11-12 14:32:49 +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 0599e9862e Runtime: a component clicks by the press lifecycle; egui's click options stay the app's 2026-11-12 14:32:48 +00:00
aiongg 8703a667ba FooterBar: lay panel actions out from the reading end
The first action given sits at the end edge, as the old PanelFooter and
Photoshop's panel footers place them; a start group keeps its order.
Callers give their actions from the end edge: Layers, Channels,
Actions, Pages, the styles panel, the preset footer and MediaBin.
The filter gallery keeps Move Up and Move Down at the start edge.
LinkList's actions read as in the old: the menu at the start edge,
Relink at the end edge.
2026-11-12 14:32:48 +00:00
aiongg d96bb82fe6 EdgePicker: the square at the large thumbnail side, room for its lines inside the inset 2026-11-12 14:32:47 +00:00
aiongg cf1ce5e02c PageSetupDialog: each section under its rule and heading, its fields in one label column 2026-11-12 14:32:47 +00:00
aiongg 34ed70f50b PageList: no column header row, as the Layers panel's artboard 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 265688684a rustfmt after the L14 and L05 merge 2026-11-12 14:32:46 +00:00
aiongg 72561b52e2 Panel: no header unless titled, as a docked panel is named by its tab 2026-11-12 14:32:46 +00:00
aiongg 374647bb49 PagePreview: the page as large as the window over the scrim, with its row under it 2026-11-12 14:32:46 +00:00
aiongg f8868f3179 PageRangeField: the current page as placeholder and the app's own menu entries 2026-11-12 14:32:46 +00:00
aiongg b753029d14 TableSizePicker: squares draw as sunken wells, the lit ones in the selected fill with an accent outline; Left and Right run on across the rows 2026-11-12 14:32:45 +00:00
aiongg 84639de189 A disabled component that shows data paints its enabled look faded
Component::DISABLED picks how a disabled instance looks: the style's Disabled
state (DisabledLook::States, the default for chrome controls) or its enabled
look at Opacity::DISABLED (DisabledLook::Faded). Step 13 fades the surface,
part layers, paint, faces and paint_over of a faded component; its children
and step 14 paint outside the fade and show their own disabled look. egui
fades a shape as it is added, so a settled region replays the faded paint.

Tile, RowThumb, Swatch, PointPicker, Navigator, PreviewPane, ColorStrip,
ColorArea, PaintChip, PagePicture, PagePictures, ReadingView and DrawPad
declare Faded. The tile's disabled veil and the Disabled entries of the tile
and swatch looks go. Opacity::DISABLED is 0.5, the old disabled fade and the
old knob's disabled share.
2026-11-12 14:32:44 +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 635122bc4f Canvas controls and plots derive their sizes from role tokens; borrowed tokens move to their roles
The curve graph's largest side is 1.25 least plot widths, the compass a medium thumbnail (the old
compass_rect), the warp grid reveals its handles within 7 hit targets, and the transform box's hit,
rotate reach and rotate band are ratios of the handle side. The dock group's drag band takes its own
ratio of the handle side instead of the transform box's band, the timeline render bar the heavy
stroke instead of the slider groove, and the page picture the plot width instead of the floating
window height. handle.hit, rotate_reach, band_inner, band_outer, hit.reveal, plot.most and
canvas.compass go.
2026-11-12 14:32:43 +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 61c242495a Reading view trial: Cmd or Ctrl with the wheel turns no column; the zoom stays the app's 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 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 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 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 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 05080d1f80 fmt 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 8c3715256c Pictures take the width they are given
`MeasureCx::picture_width`: a picture takes its column's room, between its
least and its most, and its least at `Proposal::Min`. CurveGraph's own rule
moves onto it. Band pictures (the point picker and the colour area, the
histogram, the vectorscope, the navigator preview, the preview pane, the
reading view) take the width at least `size.plot.width` and keep their
height; the colour wheel and disc are squares between `size.plot.height`
and `size.plot.width`.

ColorWheel, ScopePanel's plots and the ColorPicker area fill the card's
width as the old ones did.
2026-11-12 14:32:41 +00:00
aiongg 5815b66839 PageView: the page and arrow keys of the old view through a canvas that leaves its keys to its body, and the zoom and pan decided from the canvas's settled view 2026-11-12 14:32:41 +00:00
aiongg 823a586f9c Scoped move keys: a widget that does not act on its moves leaves a move key a scoped command binds to it; PagePreview steps from anywhere in the preview 2026-11-12 14:32:41 +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 d5074272e3 Reset dot: a ring at the default, the state layer and a tooltip
The label's reset mark shows a ring in text.disabled while the value is at its reset value, so the slot shows before
anything changes, and the filled dot while it differs. The dot part takes the state layer and the tooltip "Reset to
default" (common.resetToDefault).
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 8735a8b1c5 Document and app crates on the framework: text, pages, table, review, timeline, menu, browse, dialogs, print, font manager, theme store, update, automation 2026-11-12 14:32:38 +00:00