Commit Graph
732 Commits
Author SHA1 Message Date
bflatastic 1e403564d8 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/canvas/tools/drag.rs
#	docs/ui-parity.md
2026-11-27 15:28:02 +07:00
bflatastic 920dab2fc6 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 15:19:28 +07:00
bflatastic d4654d039d Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 15:18:50 +07:00
bflatastic 4b7e97928f Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:51:05 +07:00
bflatastic b0545b43bf Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:50:15 +07:00
bflatastic 6e3685f301 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:49:42 +07:00
bflatastic 124e7d318d Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:48:29 +07:00
bflatastic dd8435c46a Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:46:53 +07:00
bflatastic bfcea5d0cf Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:46:18 +07:00
bflatastic 31f38737a4 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:45:02 +07:00
bflatastic b5e38e6d71 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:44:25 +07:00
bflatastic 3cf3504471 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:42:22 +07:00
bflatastic f1baeb7c8c Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/components-parity.md
#	docs/ui-parity.md
2026-11-27 14:41:13 +07:00
bflatastic d6642a01b5 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:40:39 +07:00
bflatastic 1c5f6f60d0 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:40:03 +07:00
bflatastic 6fbd81a627 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:38:46 +07:00
bflatastic bb02b6ff09 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:38:04 +07:00
bflatastic 82dd53c575 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:37:07 +07:00
bflatastic 0b91742def Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:36:22 +07:00
bflatastic 89f3b29a22 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:25:48 +07:00
bflatastic 0ce7ddf175 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/canvas.rs
#	docs/ui-parity.md
2026-11-27 14:16:17 +07:00
bflatastic f36f09337b Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:11:44 +07:00
bflatastic 8beb72d7bc Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:11:26 +07:00
bflatastic 39c75b7da0 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:11:11 +07:00
bflatastic 3b6bd42d62 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:10:40 +07:00
bflatastic c651d16077 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:10:08 +07:00
bflatastic 3490ee0dfe Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:09:49 +07:00
bflatastic fe7455050d Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:09:24 +07:00
bflatastic 7111ed270f Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:08:45 +07:00
bflatastic 75e0d848a1 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:08:28 +07:00
bflatastic 4ec6682054 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:07:36 +07:00
bflatastic e02b260129 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/components-parity.md
#	docs/ui-parity.md
2026-11-27 14:07:06 +07:00
bflatastic e2173a8863 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:06:50 +07:00
bflatastic 3590abc9ff Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:06:34 +07:00
bflatastic 8a9ad82b18 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:05:48 +07:00
bflatastic 0aaa19ac25 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:05:10 +07:00
bflatastic 8c4ca5e6af Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:04:42 +07:00
bflatastic 0302b6efcf Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:04:17 +07:00
bflatastic 50df6a4ecd Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:03:54 +07:00
FredApps 0622efe1e1 Merge main into mind maps UI (code blocks and mind map nodes both handled in board.addNext, colour and docs) 2026-11-26 21:01:37 +07:00
FredApps 589ea07094 Merge main into fix/drag-sprite-2033
Doc conflict only (docs/ui-parity.md): kept main's header and changelog rows and added this PR's #2033 clause and row next to them.
2026-11-26 19:43:55 +07:00
FredApps 4cfed8dc63 Merge main into fix/kscale-bound-values-2090
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.
2026-11-26 19:22:14 +07:00
Denis Gomes 35ca50280f Paste properties into another file pastes no links
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.
2026-11-24 18:37:06 -05:00
Denis Gomes e0ca0604ae A scrolling panel menu stays open on a scroll bar click and keeps its rows' ids
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.
2026-11-24 18:24:26 -05:00
Denis Gomes c8bcd4ae48 M4: Paste properties keeps a layer's styles and variables
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.
2026-11-24 14:31:53 -05:00
Denis Gomes 4fe03065aa M3: Shift+Cmd/Ctrl+' says whether pixel grid snapping is on
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.
2026-11-24 14:22:35 -05:00
Denis Gomes 5a875417e7 M8: frames, sections and components land on whole pixels
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.
2026-11-24 14:22:35 -05:00
Denis Gomes 7ce0e374a1 M3: the pixel grid shows on dark as well as on white
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.
2026-11-24 14:22:35 -05:00
Denis Gomes 338318aaac M3: a panel menu taller than the window scrolls
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.
2026-11-24 03:04:45 -05:00
Denis Gomes 6247922621 M5: a file opens again where it was left
A file always opened on the page saved in it, fitted to its content, so
coming back to a file meant finding the place again. Figma opens a file
where you were.

Closing a file's tab or quitting now keeps the page it showed and each
page's view (centre and zoom) in the preferences, by path, for the last
100 files left. Opening the file shows that page at its view, and the
canvas keeps the view instead of fitting the page when it first gets its
size (DocState::fit_when_sized). A page the file no longer has, a divider
or a view the canvas can't show is left out.

Keeping the view in the file was rejected: it would come back only after a
save, and looking around would make the file unsaved. The preferences are
per machine, so another computer opens the file fitted.
2026-11-24 03:01:16 -05:00