Commit Graph
2339 Commits
Author SHA1 Message Date
aiongg d10e5afd19 LayerStyleDialog: the angle field shows its degree unit 2026-11-12 14:32:52 +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 b47165073c A short row gives blank room before content
A row's shrink step first takes its shortfall from the room its leaves hold
beyond their content (a field's or select's length past its text), down to
the width at which each shows its content whole. Only then does content give
way: units made to be cut first, then the rest. A row's children measured in
no room take what they would alone in the row, so a text after a field
reports its line, not what the field left it.

FindBar's count stays on one line beside the search field.
2026-11-12 14:32:51 +00:00
aiongg 9471d93e9b contract-api and components-index: regenerated (filter types, band fill, list command form, SwatchPair glyphs) 2026-11-12 14:32:51 +00:00
aiongg 61f24999ee SwatchPair: the front well's gap takes the surface the pair sits on 2026-11-12 14:32:51 +00:00
aiongg fe872f5fed SwatchPair: a ring well's band has the outline and a line that stands out from its colour on both sides, as the old ring did 2026-11-12 14:32:51 +00:00
aiongg 453257d147 SwatchPair: the wells follow the button row as closely as the old ones did 2026-11-12 14:32:51 +00:00
aiongg 360f57719d SwatchPair: a well's outline sits just outside it, as the old wells' did, inside the pair's size 2026-11-12 14:32:51 +00:00
aiongg 7067a845e5 SwatchPair draws the old look: wells with a light inner line and no selection ring, the front one in a rounded gap; its own defaults and swap glyphs at the two ends of the pair 2026-11-12 14:32:51 +00:00
aiongg 7a02997ac1 CommandPalette: the lead row is the command highlight
ListRow's command flag puts an option that runs a command in the menu row
form: the lead row in accent.solid with text.on_accent, with no lead or
chosen edge. The palette's rows take it; other option lists keep the
option form.
2026-11-12 14:32:51 +00:00
aiongg cc855ef900 Slider ticks: ticks() sets the marks the track paints
Slider and RangeSlider kept their tick count in a prop nothing read, while
the track paints Marks::ticks. ticks() now sets Marks::ticks, the one
store, so 'Triangle, ticks' and the range slider's 'Level' draw their
ticks again. Trial: a slider draws the ticks it is asked for.
2026-11-12 14:32:51 +00:00
aiongg f7d6ae8094 Timeline: track header switches as icon toggle faces
Each switch cell shows a small ToggleButton face with the shared on look,
so the target and output switches show their on state as the old icon
buttons did. The collection's toggle cell beneath keeps the presses. The
row's own on/off icon looks go; one switch_name serves the column
headers and the faces.
2026-11-12 14:32:51 +00:00
aiongg 1bb054f76f PanelMenu story: the panel menu icon button as panel footers show it 2026-11-12 14:32:51 +00:00
aiongg 3da412f36b Toolbar separators between tool groups
AnnotationToolbar puts a vertical divider before each group button, as a
Bar separates its groups. GraphEditor's bottom bar draws a divider rule in
each gap between two button groups, inset from the bar's edges.
2026-11-12 14:32:51 +00:00
aiongg 2e64f951b8 Slicer: accent header band and control-radius tiles
HeaderRegion's band takes a BandFill: a surface or a tone's tinted fill
(HeaderRegion::tint). Tone::soft_fill and Tone::on_soft give a tone's fill
and the ink on it from one token table; StyleCx::tone_fill and the new
tone_on_fill read them. TitleRow::tone sets a header title in that ink.

The slicer's header is an accent band, inset like the body, with its
caption a section-strength TitleRow in accent.on_soft on the funnel's
centre line; its tiles take radius.control instead of the button radius.
2026-11-12 14:32:51 +00:00
aiongg 3ffaa00ea5 craft-layers: the app chooses the filter types the Layers panel offers 2026-11-12 14:32:51 +00:00
aiongg ed285c40f5 contract-api: dialog width roles and the wrap width 2026-11-12 14:32:51 +00:00
aiongg cef153147a PdfExportDialog: the shown page's title heads the page, as Preferences titles its page 2026-11-12 14:32:51 +00:00
aiongg 7bec7dcabf Dialog title type: a dialog's title row takes the heading role, as the old dialogs and PhotoCraft's do 2026-11-12 14:32:51 +00:00
aiongg 2e9fc2ab8c Footer button width: dialog buttons are at least size.dialog.button wide, size.dialog.side_button in a column beside the body, through a Button least_width role 2026-11-12 14:32:51 +00:00
aiongg d62a71318a Dialog width: a dialog opens at least size.dialog.least wide and its paragraphs wrap at size.dialog.wrap, through ContainerProps::least_width and a new wrap_width; content that cannot wrap widens it 2026-11-12 14:32:51 +00:00
aiongg 69d613ff2a contract-api and components-index: regenerated (list part drags, edge press, empty-space menu) 2026-11-12 14:32:51 +00:00
aiongg 77a855fbcc craft-layers: a frame's mask thumbnail, after its content thumbnail, drags the mask (trial) 2026-11-12 14:32:51 +00:00
aiongg 8955294c83 Collections take an opt-in edge press; the Layers panel's Alt-click on the line between two layers clips
- List::edge_press(mods, test): while the modifiers are held, the band of the line between two adjacent rows the
  test gives a cursor for shows that cursor and takes the click (CollectionEvent::EdgePressed), picking neither
  row. The band reaches LINE_REACH from the line; a toggle cell keeps its press. Collections without it are
  unchanged.
- craft-layers: LayersEvent::ClipLine { upper, release } for an Alt-click on the line between two sibling layers,
  with the clip-below or clip-release cursor.
2026-11-12 14:32:51 +00:00
aiongg 0d82cf70b4 Row drags from any part, a text face for trailing parts, thumbnail cursors and the empty space's menu
- ListRow::part_drag(RowDragSpot, payload) replaces thumb_drag: a thumbnail or a trailing part drags instead of
  the row (RowEvent::PartDrag). A trailing part that drags is a handle: its click is the row's.
- TrailingFace::Strong: a text face for a trailing part.
- ListRow::thumb_cursor: the cursor over a thumbnail.
- CollectionEvent::EmptyContextMenu: a secondary click on a collection's empty space.
- craft-layers: the fx badge drags every effect of its layer onto another layer (a transfer, Alt copies) and a
  click on it selects the row; MenuTarget.row is None for the empty space's menu; the load-selection cursor over
  thumbnails while Cmd/Ctrl is held; LayerTree::label_colors_in_menu decides per target whether the row menu
  gets the Label Color submenu.
2026-11-12 14:32:51 +00:00
aiongg 1d2e5ae5bb craft-layers: the row menu of a layer row ends with the Label Color submenu, sharing the eye menu's colours
LayersPanel::row_label_colors turns it off. A thumbnail's menu and the effects and Smart Filter rows' menus have
none.
2026-11-12 14:32:51 +00:00
aiongg b4d2f8cdce craft-layers: a mask thumbnail dropped on another layer's row moves the mask there, Alt copies (LayerDrop::Mask)
The rows take the mask through the list's drop kind for the panel's drag payload. LayerTree::accepts_mask_drop
decides which layers take it; by default a layer takes a mask of a kind it does not have.
2026-11-12 14:32:51 +00:00
aiongg 9ba22550f8 craft-layers: LayersDrag is public, so an app's drop target (a document tab) reads the dragged layers 2026-11-12 14:32:51 +00:00
aiongg dfd1d30270 Layers panel: thumbnail badges at the small icon size
The mask badges and the app's thumbnail badge fill the theme's small icon size (size.icon.sm) within the thumbnail,
and the app's icon draws at the small glyph size (size.icon.glyph_sm), instead of a share of the thumbnail.
2026-11-12 14:32:51 +00:00
aiongg a7b6c9f0f6 List rows take several thumbnail targets; a frame selected as a whole brackets both thumbnails
ListRow::thumb_target takes ThumbTargets, built from one ThumbTarget or an array of them; one set of brackets frames
each run of adjacent targets, so two targets side by side never cut into each other. In the Layers panel,
LayerPart::Pixels on a frame targets its shape and content together, LayerPart::FrameShape the shape alone and
LayerPart::FrameContent the content alone; a click on a frame's first thumbnail reports FrameShape. Story
composites/layers-panel/frame-selected shows it.
2026-11-12 14:32:51 +00:00
aiongg 7aa9ee28aa Layers panel: a story of the new row kinds and trials for the rows the app reads back
Story composites/layers-panel/row-kinds shows a compact artboard heading, a frame, a smart object's badge and Smart
Filter rows with their Blending Options buttons, one selected on its own. Trials: the hovered layer row, a Smart
Filter row selected on its own holding the lead, the Blending Options double click, and a frame's mask chain after
its content thumbnail.
2026-11-12 14:32:51 +00:00
aiongg f5b9a4e74b Layers panel: the app's badge on a layer thumbnail
LayerInfo.thumb_badge puts an icon in the thumbnail's corner on the scrim, in the square the mask badges use
(PhotoCraft's smart object and shape marks).
2026-11-12 14:32:51 +00:00
aiongg b1f6380a7f Layers panel: an artboard without masks is a compact heading row
It reads strong and draws as rows do at thumbnail size None, so it is never taller than a layer row. An artboard
with a mask keeps its thumbnail.
2026-11-12 14:32:51 +00:00
aiongg 2b8b9172b9 Layers panel: frame rows with their content thumbnail
LayerKind::Frame rows show the frame's shape and, as a second thumbnail, its content (LayerPart::FrameContent,
LayerThumbKind::FrameContent). A click on the content reports that part in Select and ThumbClick, and the target
brackets frame it when the app targets the content. The masks follow the content thumbnail.
2026-11-12 14:32:51 +00:00
aiongg bcf2168752 Layers panel: a Smart Filter row's Blending Options button
SubRow.options adds the button at the row's end; a double click on it reports Activate on ActivateOn::Options.
2026-11-12 14:32:51 +00:00
aiongg f409970b13 Layers panel: an effects or Smart Filter row can be selected on its own
LayerSelection.sub_row is the sub-row the app keeps selected: the list highlights it beside its layer and gives it
the lead. LayerSelect.row names the sub-row a click, right-click or selection key picked. The Background's doc names
ActivateOn::Row, which a double click on its name reports.
2026-11-12 14:32:51 +00:00
aiongg 36de7bed8d Layers panel: report the layer whose row is hovered
LayersOutput.hovered names the layer row under the pointer, read from the list's row state, so an app can outline
that layer on the canvas (PhotoCraft's Move tool).
2026-11-12 14:32:51 +00:00
aiongg 6eef0ae74c craft-layers: the nine filter types and Find Layers
The filter bar offers Photoshop's types: Kind, Name, Effect, Mode, Attribute,
Color, Smart Object, Artboard and Group. LayerInfo carries what the generic rule
reads (effect kinds, Advanced Blending, smart object source); LayerTree::listed
lets the app answer what only it knows (missing linked files, empty layers) and
defaults to LayerFilter::lists, which walks the tree for Group and Artboard.
Artboard and Group keep each group open or closed; the Mode list leaves out
Pass Through. LayersPanel::focus_filter_name switches the bar to Name and puts
the caret in its field with the text selected.
2026-11-12 14:32:51 +00:00
aiongg e8e7142df9 Preferences groups have no column modes: the label step places each check box row 2026-11-12 14:32:51 +00:00
aiongg 432d81460a A form field whose label follows its control starts in the control column, as a labelled check box does 2026-11-12 14:32:51 +00:00
aiongg 71ee596134 contract-api and components-index: regenerated (DataMode, data_shapes) 2026-11-12 14:32:51 +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 b19f52dde8 Content painters paint data colours in the component's data mode
DataMode holds the one mapping of a data colour (DataMode::color) and maps
every colour of a shape with it (DataMode::shape). ContentPainterCx gets
data_shapes for shapes whose colours are data, and its data methods
(picture, checker, checker_with, ramp) paint through the mode, sharing
data_picture and data_checker with Draw::texture and Draw::checker. A
States component's ramps, pictures and checkers in a content painter dim
while it paints its Disabled state, as its Draw's data colours do.

The histogram's bins and outlines and the notes editor's document text
paint through data_shapes.
2026-11-12 14:32:51 +00:00
aiongg 67b6471bef contract-api and components-index: regenerated (FooterRegion::inset) 2026-11-12 14:32:51 +00:00
aiongg 41ded35010 ParamRows: group headings (sections and radio rows) are quiet captions with no rule, as the old dialogs drew them 2026-11-12 14:32:51 +00:00
aiongg f5110ecdb5 Dialog chrome: a section gap under the header rule, above the footer and beside a button column; no footer rule; full-window header and footer inset
The dialog shells take their regions from frame.rs (HEADER, FOOTER, SIDE_BUTTONS), spaced by one gap. FooterRegion gains an
inset tier, the counterpart of HeaderRegion::inset, so a full-window dialog keeps its title and buttons off the window edges
while its canvas and side columns reach them.
2026-11-12 14:32:51 +00:00
aiongg 0c064ca7d3 ListRow: a row's ideal width counts its optional items
A content-sized row asks for room for its optional trailing items, so a
content-fitted box (the CommandPalette) shows each row's path with its
label whole. A row given less than its ideal width still drops them
first; its least width is unchanged.
2026-11-12 14:32:50 +00:00
aiongg 4a6d07a02e Save for Web's Image Size and the PDF export headings are quiet section labels, as they were 2026-11-12 14:32:50 +00:00
aiongg a4316d6d6a Export As story: a 4000 x 3000 document of a landscape, opened on JPG as the old story was, so its pair shows the Quality rows 2026-11-12 14:32:50 +00:00