Doc conflicts only (docs/components-parity.md, docs/ui-parity.md): kept main's header and changelog rows and added this PR's #2090 Scale tool clause and row next to them.
Supervised nightly switch-on, merged under Skylar's explicit Nightly 758 override after green CI, CodeRabbit on this head with no open threads, Sonar passing, and an independent adversarial review with no blockers.
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
Whether a copied style or variable was there to link to was decided by
its id, and ids are numbered per file: the first style of every file is
S:1. Pasted into another file that had styles or variables of its own,
the copy linked to whichever of them shared the copied id and took its
values instead of the copied ones. The test passed only because its
second file had none.
Copy properties now records the file it copied from, and a paste into
another file drops every style and variable link: the values paste
unlinked and the layer's own links on them go. The id check stays for
a style deleted since the copy.
A click on a scrolling menu's scroll bar track scrolled it and then closed
it: the menus close on any click, and egui counts the bar's click as one,
so a row the click brought into view could not be picked. The menu now
ignores clicks for the frame its scroll bar is clicked; row clicks and
clicks outside still close it.
The rows were also laid out in the scroll area's own UIs only while the
menu scrolled, so their ids changed when a resized window started or
stopped the scrolling, and the row the keyboard was on lost it. Both
ways now lay the rows out in one UI with a scope id from the popup's.
Copy properties took the values and left behind where they come from:
a frame filled from a colour variable or a fill style pasted a plain,
unlinked colour, and the pasted layer's own bindings stayed, so a bound
radius kept its variable's value over the pasted one.
It now also carries the fill, stroke, effect, grid and text style
links, the variables bound to what it copies (not sizes, auto layout
spacing, visibility or text content) and a frame's layout grids. The
pasted layer's bindings on those give way. A style or variable the
target file lacks (a copy from another tab) is left out and its values
pasted, so the paste never fails on a missing link.
Layout grids coming along with a frame is not measured in Figma.
Turning Snap to pixel grid on or off changes nothing on the canvas
until the next drag, so the shortcut gave no sign it had worked. A
notice at the bottom now says "Snap to pixel grid on" or "off", from
the shortcut, the menu and the Preferences row alike.
Figma's help says they "always snap to the pixel grid, even if Snap to
pixel grid is disabled". In FigCraft they followed the setting like any
layer, and since #2031 a snap to a layer off the grid wins over the
grid, so a frame dragged next to a neighbour at 100.4 landed at 100.4
and the whole numbers inside it sat between pixels.
A move, resize or draw of frames, sections, components, component sets
and instances now rounds to whole pixels before and after object
snapping, whatever Snap to pixel grid says. A moved one also lands on
whole pixels of its parent (`snap::settle_on_pixels`), so a frame
already off the grid comes back onto it. Other layers keep #2031's
order: the pixel grid first, then the snap to a layer wins.
The move rounds the drag itself rather than each layer afterwards, so
the preview keeps its shifted-layers fast path for frames already on
the grid.
The grid was black at 7%, a stroke of one point: it showed on white and
hardly at all on the dark canvas or a dark fill, and on a 2x screen its
lines were two pixels wide. Figma's grid reads 242 on white and 78 on a
grey of 50 (measured 2026-11-24), which a grey of 190 at 20% gives, so
it darkens light colours and lightens dark ones.
The lines are now that grey, one screen pixel wide and centred on the
screen's pixels.
A menu opened from a panel ran past the window's bottom when it had more
rows than fit, and the rows below couldn't be reached. With many colour
variables, the Selection colors Styles menu showed only the first ones.
egui moves a popup to keep it in the window but doesn't shorten one taller
than the window.
menu_popup, context_popup and the row context menus now return a Menu
whose rows scroll with the wheel or the scroll bar once they were taller
than the window last frame, the rule the main menu follows since #2217. A
menu that fits is laid out as before.
A scroll area around every menu's rows was tried first and rejected: egui
lays a popup out in the height it measured last frame, so a menu that grows
(the share popover opening its Advanced part) stayed at its old height and
hid the new rows. Ten share and vote tests caught it.
Save as kept the document's name unless it was Untitled or the old
file's own name (#935). A file opened from an import (.fig, .penpot,
.sketch) carries its source's name and has no file yet, so after Save as
to Other.figcraft its tab still showed the source's name; a file renamed
here did the same. The tab and the file on disk then disagree, and the
file can't be found by the name on its tab.
Saving to another file now always names the document after it, as a
desktop app's document window does. Saving to the same file keeps a name
given here, so a name a file name can't hold (with a colon, say) stays
until the next Save as.
Keeping a name chosen here across Save as (the #935 rule) was the
alternative; it is what left imported files with names no file has.
SVG, PNG, PDF and Vector Drawable exports took their size from the
renderer's bounds, and Node::outline_reach grows a line's, vector's or
polygon's box by the weight times the miter limit (up to 4) to leave room
for a mitre at any corner. An icon frame whose outlined strokes stay
inside it exported at 26 x 26 to 30.8 x 24 instead of 24 x 24, its content
moved off the frame's origin.
export_bounds now walks the tree as world_render_bounds does
(Document::world_render_bounds_with) and measures each layer's own paint
on the outlines it draws: its shape and its stroke area from stroke_fill,
in page space, grown by its effects. A dashed stroke counts as a solid one
as well as its dashes, so where the dashes fall doesn't change the size.
Text and drop shadows with a spread keep the renderer's bounds. The
renderer's own bounds, used for drawing and culling, are unchanged.
Shrinking outline_reach itself was rejected: the renderer culls and
caches by it, and an exact stroke there would cost a stroke outline per
layer per bounds query.