Commit Graph
2304 Commits
Author SHA1 Message Date
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
aiongg f204291477 PreviewPane: an aspect sets the well's height from its width; Export As shows a square preview beside its settings 2026-11-12 14:32:50 +00:00
aiongg efb011fe06 A form's check box row starts in the control column, where the rows labelled beside it start their controls 2026-11-12 14:32:50 +00:00
aiongg b127a87dc8 Export As: the format is a select, Constrain Proportions a check box under Height, Image Size a quiet heading, and every settings row shares one label column 2026-11-12 14:32:50 +00:00
aiongg 58343dfe88 contract-api: regenerated (Component::padding, PartsCx::rows_view, Draw::text by alignment) 2026-11-12 14:32:50 +00:00
aiongg 685572eaba Suite: a row is pressed where no control lies over it, its own or one its collection draws over it (a grid's filter buttons in its header cells) 2026-11-12 14:32:50 +00:00
aiongg 860c088aa4 CellGrid chrome trial: the tag cell inline (CellAt::new is not const), unused import gone 2026-11-12 14:32:50 +00:00
aiongg dab44be31a CellGrid: row headers hold the digits of the last row the view shows (Component::padding from the rect; digits leave the style key) 2026-11-12 14:32:50 +00:00
aiongg 58faf6c40f Draw::text places a run in its rect by the run's alignment: centred header letters and row numbers, calendar dates, pin counts and the header hint 2026-11-12 14:32:50 +00:00
aiongg 99f603de6c CellGrid: the chrome over the cells stays in the rows' view, clear of the scroll bar (PartsCx::rows_view; one scroll track helper) 2026-11-12 14:32:50 +00:00
aiongg 77ebd4b848 CellGrid: filter buttons sit in the table's header cells at their own size, as a spreadsheet's filter arrows do 2026-11-12 14:32:50 +00:00
aiongg 08b37f0edf contract-api and components-index: regenerated (disabled data colours) 2026-11-12 14:32:50 +00:00
aiongg 5736aded10 A disabled component dims its data colours: PaintUi::draw paints them at Opacity::DISABLED while the component paints its Disabled state, keeping each hue; one data mode in Draw beside the inactive part's disabled fill, which faces of inactive parts now take too. The icon badge paints through Draw, IconButton's own badge prop goes (IconSpec::badge is the one badge), and IconButton gets a Badge story 2026-11-12 14:32:50 +00:00
aiongg 157f7a05b0 contract-api and components-index: regenerated (label columns) 2026-11-12 14:32:50 +00:00
aiongg d85de0024d A content-sized body offers its children the body's width, not its end region's
The env's offered width, the room a body's children share, came from the
container's room or, in a content-sized real run, from what all its regions
took together, less only a side label's column. The end region beside the body
(a dialog's side buttons) and an inline header were left in, so a fill-width
child widened past the body region and its clip cut its end edge. The regions
record the width they give the regions beside the body on its line, and the body
offers what is left.
2026-11-12 14:32:50 +00:00
aiongg 412198c541 A label group settles its columns before a nested body's measure stands
A content-sized body inside a group (a row holding a stack of fields) measured
while the group's column was still narrower than its widest label, which came
later, and the real run placed it by that measure at the wider column: its
labels stacked inside a row measured for labels beside. The group's measuring
run now notes the narrowest column a row of a body that shows at its measured
width read; when that is narrower than the column ends, the sweep is taken back
and the content runs once more with the group opened at the settled widths. A
held body, shown across the column, does not count. The Through body's own
extent arithmetic goes: its rows always measure at the final column.
2026-11-12 14:32:50 +00:00
aiongg 57c3990393 A group's label column reaches the rows of the plain containers inside it
A section, box, stack or row inside a column group passes the group through
(Frame::Through): its labelled rows read and report the group's widths, as the
rows directly in the group do. A labelled container's body, a body on its own
mount, a scrolling body and a grid lay out apart behind a barrier. A
content-sized body measures at the group's widest label so far and hands its
rows' reach past the columns on to the frame around it, with its own padding
or the row members after the labelled one, so the group's extent covers the
widest column across its containers.
2026-11-12 14:32:50 +00:00
aiongg 28cb372926 contract-api and components-index: regenerated (row heights, chart roles, polygon fill) 2026-11-12 14:32:50 +00:00
aiongg 62ab176098 A number field's value and unit share one number cell, sized to the range's widest shown value and capped at the cell, with longer values scrolling inside it; the inside label and the chevrons take their own room beside it, so a small percent field shows 100% whole and a long-range field stays one cell wide. fit_range goes: every field sizes its value area from its range 2026-11-12 14:32:50 +00:00
aiongg 2402dff502 A settled region that showed a command state runs when the state changes
Command states are keys of the read record: a resolution a surface shows notes the state it read, the app's input notes the states it changes for the frame, and a publish notes a changed state and reruns the pass when something earlier read it. A publish is journaled, so a replayed region publishes again, and is a board effect a measuring run skips, as it skips registration. A rebuilt keymap unsettles every region. An inspection record or its pointed element changing is an edit settled readers see.
2026-11-12 14:32:50 +00:00
aiongg 6cfa0101c8 One fill for a closed polygon
PaintShape::Polygon is any closed polygon whose edges don't cross.
kit::fill_polygon fills it as one mesh: egui's edge fade around the outline
and an ear-clipped inside, so the parts of one shape meet without a seam.
Draw fills every polygon with it.

Chart wedges and area polygons fill as one polygon each, and the eyedropper
ring band as one polygon, in place of runs of convex pieces whose faded
edges left seams between them.
2026-11-12 14:32:50 +00:00
aiongg eb08ed121e Chart text takes a type role
ChartPrimitive::Text carries its TypeRole in place of a bold flag. The chart
story sets titles in BodyStrong and axis labels in Caption, as the old
gallery did, so the region labels no longer touch.
2026-11-12 14:32:50 +00:00
aiongg 73814336a4 Charts paint lines and outlines
ChartPrimitive lines paint solid or dashed in the theme's dash pattern, and
every stroke (rect, polygon, wedge, circle) paints. Widths are a named theme
width or a document width that scales with the chart's zoom. Draw::dashes
gives the theme's dash pattern. The chart story draws its axes, gridlines
and wedge gaps hairline, as the old gallery did.
2026-11-12 14:32:50 +00:00
aiongg 1c8fa69e97 Text rows: a wrapped cell keeps the room a text row has around its line, so a field with a one-line value stays a text row high 2026-11-12 14:32:50 +00:00
aiongg dbcd0978db MetadataTable: the header leaves the search text in the stack's memory for the body, as the command palette passes its query 2026-11-12 14:32:50 +00:00
aiongg 5e875680a2 Token dumps: size.row.text 2026-11-12 14:32:50 +00:00
aiongg 8b364c53b7 MetadataTable: the search field sits in the header region of the table's Stack, inset at its sides only, so the first group starts under the field; the rows are text rows; Stack::header_inset sets a header's side padding 2026-11-12 14:32:50 +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 c51f6a103e Text row height role: size.row.text is one body line and space.gap.tight (compact 18, comfortable 21), at most a small control and at least the body line, for read-only display tables 2026-11-12 14:32:50 +00:00
aiongg 4188d4f356 TitleBar stories keep their text placeholders: a MenuBar in the bar's leading slot shows no titles and fails the right-to-left rule, a follow-up of its own 2026-11-12 14:32:50 +00:00
aiongg 477b080845 Title rows: a note runs on after the title in muted body text, and the subtitle sits at the band's end in muted caption text; the gallery card shows its story name as the note, the Inspector its target's kind as the subtitle 2026-11-12 14:32:50 +00:00
aiongg b54195e805 One path row: PathRow, a path field and a Browse button that reports the press; ParamRows and Watermark ask with a PathRequest, PathField picks through the file service 2026-11-12 14:32:50 +00:00
aiongg 8de5a82799 TitleBar stories show the app's menu bar at the leading end and icon buttons at the trailing end 2026-11-12 14:32:50 +00:00
aiongg 52f76fe25e FindingsList stories show the summary line over the list, as a host shows them 2026-11-12 14:32:50 +00:00
aiongg 46258cb5cc ReferencePoint: the large picker's cells are a standard control high, as the old Canvas Size picker; its Default story shows the growth arrows around the centre pick 2026-11-12 14:32:50 +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