M3: Layers: the eye and padlock stay in view, and a name takes at most 400 pt

A text layer named after a paragraph made the list over 1000 pt wide (#1904
widens it to the widest name). The eye and padlock sat at the row's far end,
so hiding a layer meant scrolling sideways to find them.

The eye and padlock now sit at the right edge of the list's view. While they
show (hover, a hidden or locked layer, or a row a held sweep has taken in),
the name is clipped before them instead of drawn beneath. Scrolling sideways
still reveals the rest of a long name, as #1904 asked.

On a row as wide as the view nothing moves: the row is already inset 8 pt
from the view's edge, so the eye stays at 262 to 282 pt (mirrored 1158 to
1178 pt), as on main. On a row nested so deep that the buttons at the view's
edge would cover its disclosure triangle, icon or name start, they stay
after the name start, at the row's end, so the triangle still takes clicks.

NAME_ROOM drops from 1200 to 400 pt. It stops a name of thousands of
characters (#1650) from making the list that wide, and 400 pt still holds a
variant name like "Size=small, Type=primary, State=default, Icon=leading,
Width=full" in full. The "W" name in the measuring test is 25 letters, and
the test checks that it is wider than the panel leaves a name and well under
the cap, so it holds with and without craft-fonts.

Tests: the_eye_of_a_long_named_layer_sits_at_the_panels_edge_and_is_clickable,
a_paragraph_named_text_layer_widens_the_list_no_more_than_the_name_cap,
the_eye_of_an_ordinary_row_stays_where_it_was (passes on main too),
a_swept_long_named_row_keeps_its_name_clipped_before_the_eye and
the_disclosure_triangle_of_a_deeply_nested_row_is_not_under_the_padlock.
This commit is contained in:
Denis Gomes committed 2026-11-19 16:16:19 -05:00
1 parent 4e35fb9cea
commit b0569e2723
3 files changed
+207 -24

No files matched your search

+148 -2
View File
@@ -122,10 +122,13 @@ fn a_wide_name_among_many_long_narrow_ones_is_still_measured() {
for _ in 0..50 {
named(&mut s, &"i".repeat(100), None);
}
named(&mut s, &"W".repeat(70), None);
named(&mut s, &"W".repeat(25), None);
let mut u = Ui::new(s);
let (elided, ..) = painted(&mut u, "WWWW");
let (elided, _, size) = painted(&mut u, "WWWW");
assert!(!elided, "the wide name reads in full");
// Wider than the panel leaves a name, so it reads in full only if it was measured, and well
// under the cap, with or without craft-fonts.
assert!(size.x > 200.0 && size.x < crate::layers::NAME_ROOM - 100.0, "the test's name is {} pt wide", size.x);
}
/// Review: a name is laid out as it is painted, on one line, so line breaks in it don't make it
@@ -159,3 +162,146 @@ fn a_drag_released_over_the_canvas_drops_nowhere() {
}
assert_eq!(u.app.session.doc().unwrap().node(page).unwrap().children, order, "no reorder");
}
fn hidden_layer_eye(name: &str, mirrored: bool) -> (Ui, NodeId, egui::Rect) {
let mut s = Session::new();
let layer =
id(s.execute("shape.rectangle", &json!({"x": 0, "y": 0, "width": 20, "height": 20, "props": {"name": name, "visible": false}})).unwrap());
let mut u = Ui::new(s);
u.app.ui.mirrored = mirrored;
u.ctx.enable_accesskit();
for _ in 0..3 {
u.frame(vec![]);
}
let out = u.frame_output(vec![]);
let nodes = out.platform_output.accesskit_update.expect("an AccessKit update").nodes;
let eye = nodes
.iter()
.find(|(_, n)| n.role() == egui::accesskit::Role::Button && n.label() == Some("Hidden"))
.and_then(|(_, n)| n.bounds())
.expect("the eye of the hidden layer");
(u, layer, egui::Rect::from_min_max(Pos2::new(eye.x0 as f32, eye.y0 as f32), Pos2::new(eye.x1 as f32, eye.y1 as f32)))
}
#[test]
fn the_eye_of_a_long_named_layer_sits_at_the_panels_edge_and_is_clickable() {
for mirrored in [false, true] {
let (_, _, short) = hidden_layer_eye("Short", mirrored);
let (mut u, layer, long) = hidden_layer_eye(LONG, mirrored);
let (a, b) = if mirrored { (long.min.x, short.min.x) } else { (long.max.x, short.max.x) };
assert!((a - b).abs() < 1.0, "mirrored {mirrored}: the eye at the panel's edge, not past it: {a} vs {b}");
u.button(long.center(), true);
u.button(long.center(), false);
assert!(u.app.session.doc().unwrap().node(layer).unwrap().visible, "mirrored {mirrored}: the eye shows the layer");
}
}
#[test]
fn a_paragraph_named_text_layer_widens_the_list_no_more_than_the_name_cap() {
let mut s = Session::new();
named(&mut s, &"After the Chicago World's Fair, Tiffany built Laurelton Hall on Long Island. ".repeat(4), None);
let mut u = Ui::new(s);
let (elided, p, size) = painted(&mut u, "After the Chicago");
assert!(elided, "a paragraph elides at the cap");
assert!(p.x + size.x <= p.x + 400.0 + 1.0, "the name takes at most 400 pt: {}", size.x);
}
/// The bounds of the buttons named `label` (AccessKit), from left to right.
fn buttons(u: &mut Ui, label: &str) -> Vec<egui::Rect> {
let out = u.frame_output(vec![]);
let nodes = out.platform_output.accesskit_update.expect("an AccessKit update").nodes;
let mut rects: Vec<egui::Rect> = nodes
.iter()
.filter(|(_, n)| n.role() == egui::accesskit::Role::Button && n.label() == Some(label))
.filter_map(|(_, n)| n.bounds())
.map(|b| egui::Rect::from_min_max(Pos2::new(b.x0 as f32, b.y0 as f32), Pos2::new(b.x1 as f32, b.y1 as f32)))
.collect();
rects.sort_by(|a, b| a.min.x.total_cmp(&b.min.x));
rects
}
/// Review: an ordinary row as wide as the view keeps its eye where it was before the eye and padlock
/// were held in view (measured on `main`: 262 to 282 pt, mirrored 1158 to 1178 pt), with a vertical
/// scrollbar or without.
#[test]
fn the_eye_of_an_ordinary_row_stays_where_it_was() {
for count in [1, 60] {
for mirrored in [false, true] {
let mut s = Session::new();
for i in 0..count {
let props = json!({"name": format!("Rect {i}"), "visible": i + 1 != count});
s.execute("shape.rectangle", &json!({"x": 0, "y": 0, "width": 20, "height": 20, "props": props})).unwrap();
}
let mut u = Ui::new(s);
u.app.ui.mirrored = mirrored;
u.ctx.enable_accesskit();
for _ in 0..3 {
u.frame(vec![]);
}
let eye = buttons(&mut u, "Hidden");
let x = if mirrored { 1158.0 } else { 262.0 };
assert_eq!(eye.iter().map(|r| (r.min.x, r.max.x)).collect::<Vec<_>>(), [(x, x + 20.0)], "{count} rows, mirrored {mirrored}");
}
}
}
/// Review: while a sweep across the eyes is held, a long-named row it took in shows its eye, so its
/// name stays clipped before the eye after the pointer has moved past it.
#[test]
fn a_swept_long_named_row_keeps_its_name_clipped_before_the_eye() {
let mut s = Session::new();
let long = named(&mut s, LONG, None);
let short = named(&mut s, "Short", None);
let mut u = Ui::new(s);
u.ctx.enable_accesskit();
let at = u.row_at(short);
u.frame(vec![Event::PointerMoved(at)]);
let eye = *buttons(&mut u, "Hidden").first().expect("the hovered row's eye");
let below = u.row_at(long) + vec2(0.0, 40.0);
u.frame(vec![Event::PointerMoved(eye.center())]);
u.drag_to(eye.center(), Pos2::new(eye.center().x, below.y));
let out = u.frame_output(vec![]);
let clip = out
.shapes
.iter()
.find_map(|c| match &c.shape {
Shape::Text(t) if t.galley.text().starts_with("Size=small") => Some(c.clip_rect),
_ => None,
})
.expect("the long name");
u.button(Pos2::new(eye.center().x, below.y), false);
let doc = u.app.session.doc().unwrap();
assert!(!doc.node(long).unwrap().visible && !doc.node(short).unwrap().visible, "the sweep hid both");
assert!(clip.max.x <= eye.min.x - 20.0, "the name ends before the padlock and eye: {} vs eye at {}", clip.max.x, eye.min.x);
}
/// Review: on a row nested so deep that its disclosure triangle sits where the eye and padlock
/// would be at the view's edge, they stay at the row's end, so the triangle still opens and closes
/// the layer.
#[test]
fn the_disclosure_triangle_of_a_deeply_nested_row_is_not_under_the_padlock() {
let mut s = Session::new();
let mut parent = None;
let mut deepest = None;
for i in 0..13 {
let f = id(s
.execute("frame.create", &json!({"x": 0, "y": 0, "width": 100, "height": 100, "parent": parent, "props": {"name": format!("F{i}")}}))
.unwrap());
parent = Some(f);
deepest = Some(f);
}
let deepest = deepest.unwrap();
let leaf = named(&mut s, "Leaf", parent);
s.execute("select.set", &json!({"ids": [leaf]})).unwrap();
let mut u = Ui::new(s);
u.ctx.enable_accesskit();
let tri = *buttons(&mut u, "Collapse").last().expect("the deepest frame's triangle");
u.frame(vec![Event::PointerMoved(tri.center())]);
u.frame(vec![Event::PointerMoved(tri.center())]);
u.button(tri.center(), true);
u.button(tri.center(), false);
u.frame(vec![]);
assert!(!u.app.ui.expanded.contains(&deepest), "the triangle closed the frame");
let n = u.app.session.doc().unwrap().node(deepest).unwrap();
assert!(n.visible && !n.locked, "neither the eye nor the padlock took the click");
}
+56 -20
View File
@@ -556,8 +556,9 @@ pub(crate) fn list_width(ui: &Ui) -> f32 {
}
/// A name's room on a row stops growing here: a name of thousands of characters (#1650) elides
/// past it instead of making the list that wide.
pub(crate) const NAME_ROOM: f32 = 1200.0;
/// past it instead of making the list that wide. 400 pt still holds a long variant name
/// (`Size=small, Type=primary, State=default, Icon=leading, Width=full`) in full.
pub(crate) const NAME_ROOM: f32 = 400.0;
/// A row's name: the layer's, or its kind's label when it has none.
fn row_name(n: &figcraft_doc::Node) -> &str {
@@ -996,20 +997,34 @@ fn drop_layers(app: &mut FigApp, doc: &Document, moving: &[NodeId], target: Node
}
}
/// The eye and padlock of a row: painted when hovered (`over`, false in Dev Mode) or set, and, outside
/// Dev Mode, clickable; a drag over them starts a sweep. Returns the layers whose eye / padlock was clicked.
fn eye_lock(
ui: &mut Ui,
t: &Tokens,
rects: [Rect; 2],
row: &Row,
n: &figcraft_doc::Node,
over: bool,
dev: bool,
sweep: &mut Option<Sweep>,
) -> (Option<NodeId>, Option<NodeId>) {
let [r, rr] = rects;
let (mut vis, mut lock) = (None, None);
/// The eye and padlock's span on a row (`rr`, the row inset 8 pt from each side) wider than the view:
/// its end stops 8 pt inside the view's edge, where it is on a row as wide as the view, but never so
/// far in that the buttons cover the row's disclosure triangle, icon or name start (`name_x`,
/// unmirrored). Returns that row span (what [`eye_lock`] places them at the end of) and the
/// buttons' 48 pt: the eye and padlock are 20 pt each, 4 pt from the end and 2 pt apart.
fn row_buttons(rr: Rect, view: Rect, name_x: f32, rtl: bool) -> (Rect, Rect) {
if rtl {
let name_start = rr.min.x + rr.max.x - name_x;
let end = Rect::from_min_max(pos2(rr.min.x.max((view.min.x + 8.0).min(name_start - 48.0)), rr.min.y), rr.max);
return (end, Rect::from_x_y_ranges(end.min.x..=(end.min.x + 48.0), rr.y_range()));
}
let end = Rect::from_min_max(rr.min, pos2(rr.max.x.min((view.max.x - 8.0).max(name_x + 48.0)), rr.max.y));
(end, Rect::from_x_y_ranges((end.max.x - 48.0)..=end.max.x, rr.y_range()))
}
/// Where a row's name is drawn: the view, less the eye and padlock's `buttons` while they show, so
/// a long name is clipped before them instead of drawn under them.
fn name_clip(view: Rect, buttons: Rect, buttons_shown: bool, rtl: bool) -> Rect {
match (buttons_shown, rtl) {
(false, _) => view,
(true, false) => Rect::from_x_y_ranges(view.min.x..=view.max.x.min(buttons.min.x), view.y_range()),
(true, true) => Rect::from_x_y_ranges(view.min.x.max(buttons.max.x)..=view.max.x, view.y_range()),
}
}
/// Whether row `r`'s layer shows as hidden and as locked: what a sweep in progress sets for the rows
/// it took in, else the layer's own state. The row joins the sweep when the pointer is on it.
fn swept_state(ui: &Ui, r: Rect, row: &Row, n: &figcraft_doc::Node, sweep: &mut Option<Sweep>) -> (bool, bool) {
// A sweep across the eyes or padlocks takes in the rows the pointer passes.
if let Some(sw) = sweep.as_mut()
&& !sw.ids.contains(&row.id)
@@ -1020,9 +1035,26 @@ fn eye_lock(
sw.ids.push(row.id);
}
let swept = |lock: bool| sweep.as_ref().filter(|sw| sw.lock == lock && sw.ids.contains(&row.id)).map(|sw| sw.on);
(swept(false).unwrap_or(!n.visible), swept(true).unwrap_or(n.locked))
}
/// The eye and padlock of a row, shown `hidden` and `locked` ([`swept_state`]): painted when hovered
/// (`over`, false in Dev Mode) or set, and, outside Dev Mode, clickable; a drag over them starts a
/// sweep. Returns the layers whose eye / padlock was clicked.
fn eye_lock(
ui: &mut Ui,
t: &Tokens,
rects: [Rect; 2],
row: &Row,
n: &figcraft_doc::Node,
(hidden, locked): (bool, bool),
over: bool,
dev: bool,
sweep: &mut Option<Sweep>,
) -> (Option<NodeId>, Option<NodeId>) {
let [r, rr] = rects;
let (mut vis, mut lock) = (None, None);
// Lock / eye on hover (or when set); a layer in a locked one shows a faint padlock.
let hidden = swept(false).unwrap_or(!n.visible);
let locked = swept(true).unwrap_or(n.locked);
// In Dev Mode they only show what is set.
let show_lock = over || locked || row.locked_above;
let show_eye = over || hidden;
@@ -1293,6 +1325,8 @@ fn layers(app: &mut FigApp, ui: &mut Ui) {
let icon_rect = Rect::from_center_size(pos2(fx(x0 + 22.0), r.center().y), vec2(14.0, 14.0));
icons::paint(ui.painter(), icon_rect, icon, icon_col);
let name_x = x0 + 36.0;
let (buttons_end, buttons) = row_buttons(rr, ui.clip_rect(), name_x, rtl);
let toggles = swept_state(ui, r, row, n, &mut sweep);
if app.ui.rename.is_some_and(|rn| rn.id == row.id) {
if let Some(new) = rename_field(app, ui, row.id, row.depth, &n.name, r) {
rename_done = Some((row.id, new));
@@ -1304,9 +1338,11 @@ fn layers(app: &mut FigApp, ui: &mut Ui) {
// Room before the lock and eye buttons (the row is wide enough for the whole
// name, up to `NAME_ROOM`: a row widened by a deeper name gives no more).
let max_w = (rr.max.x - 56.0 - name_x).clamp(20.0, NAME_ROOM);
crate::bidi::paint_name_from(ui.painter(), pos2(fx(name_x), r.center().y), rtl, &name, font, col, max_w);
let buttons_shown = (over && !dev) || toggles.0 || toggles.1 || row.locked_above;
let clip = name_clip(ui.clip_rect(), buttons, buttons_shown, rtl);
crate::bidi::paint_name_from(&ui.painter().with_clip_rect(clip), pos2(fx(name_x), r.center().y), rtl, &name, font, col, max_w);
}
let (v, l) = eye_lock(ui, &t, [r, rr], row, n, over && !dev, dev, &mut sweep);
let (v, l) = eye_lock(ui, &t, [r, buttons_end], row, n, toggles, over && !dev, dev, &mut sweep);
vis = v.or(vis);
lock = l.or(lock);
if resp.clicked() {
+3 -2
View File
@@ -1,6 +1,6 @@
# UI and interaction parity
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (Type settings ▸ Details ▸ Position sets the selected text layers to superscript or subscript, or neither (#2338); Shift with the Pencil, Marker or Highlighter draws one straight segment from where the stroke started, at the nearest 45° step, as the Line tool and the Pen do (#2447); the Design panel's header names a selected component or component set, after its icon, instead of only its type (#2347); dragging near the canvas edge pans the view toward it, as measured in Figma: 40 px/s for each px within about 15 px of the edge, 600 px/s at it, for moving layers, the selection box, drawing and prototype connections (#2015); M8: a Shift-click range in the Layers panel across parents keeps a frame and not its covered children, measured in Figma's web app on 2026-11-12; points align and distribute in vector edit mode as in Figma: the six Align commands, the keys Alt+A/H/D/W/V/S, and Distribute horizontal and vertical spacing act on the selected points, each moving along one axis to their box's edge or centre line, spaced evenly between the outermost for distribute, with the alignment row first in the Design panel (#2109); going back to a page shows it where it was left, not fitted again; Duplicate repeats the last copy's move and its rotation (about the copy's centre, or the selection's centre for several layers), not its size, and forgets the step when the selection changes, measured in Figma's web app on 2026-11-12 (#2293); M8: a double-click on a layer's icon zooms to it instead of renaming, measured in Figma's web app on 2026-11-12; Tidy up keeps the order and sizes and evens the gaps, as measured in Figma's web app on 2026-11-12, rounds the gap half up, tidies overlapping rows and packs a grid along its longer axis, and is greyed out for fewer than three layers, a diagonal and an irregular layout (M8); after Crop is chosen in the image fill's colour picker, a drag on the image crops it instead of moving the layer, and no internal gesture message shows (#2307); Align is disabled for a layer in an auto layout frame's flow, as measured in Figma's web app on 2026-11-12, with a tip saying the frame places it; Select layer lists locked layers with a padlock and selects them, and shows only with more than one layer under the pointer (#1560); M8: Scale tool handle drags pivot on the opposite handle whatever the origin, and the origin starts at the centre (measured in Figma's web app, 2026-11-09); M8: a selected polygon or star has a Count handle on the canvas, on its first point clockwise from the top; Zoom to selection leaves a 40 pt margin and clears the bottom toolbar, measured in Figma's web app; M1: Paste over selection puts the pasted layers just above the selected layer; drag modifiers compared in Figma's web app (2026-11-08): Shift locks a move to the dominant axis, Alt copies, Shift keeps a resize's ratio, Alt keeps its centre, all read afresh on every move, and FigCraft matches (Ctrl/Cmd not measurable); a mirror mode (angle, or angle and length) on a sharp point turns it smooth, as in Figma (#2110); M8: Tab while renaming the last layer wraps to the first row, measured in Figma's web app on 2026-11-12; the text caret takes the text's solid fill colour (#2156); the Rotation field shows and sets the rotation on the page, in frames and groups, through node.set absoluteRotation (#2196); the eyedropper picks a magnified image's pixel under the pointer, not a blend with its neighbours (#2189); Selection colors shows from one distinct colour when a selected layer has children, and from two otherwise, measured in Figma's web app on 2026-11-09 on a frame, a group and plain rectangles; the crosshair of the shape and Text tools is drawn dark with a white edge, so it shows on a white frame whatever the system's pointer style (#2198); a boolean group takes a corner radius (and smoothing) that rounds every sharp corner of its result (#2222); the Point section's X and Y in vector edit mode show Mixed and set every selected point of the layer being edited, as in Figma; Preferences ▸ Invert zoom direction reverses wheel zoom, pinch unchanged (#2145); Shift while rotating lands on absolute multiples of 15°, measured in Figma; Flatten bakes a vector's point corner radius into its path (#2195); a click on a fill, stroke or effect row's grip or background highlights it, Cmd/Ctrl+C copies that paint or effect and Cmd/Ctrl+V pastes it onto the selected layers, as the help center's Copy and paste properties between layers says (#1494); wrap style per paragraph and in text styles (#1827); the Annotation tool (Shift+T, `tool.annotation {id?}`): with a layer selected (or an `id`) it asks the UI for that layer's note at once, and in the tool a press on a layer selects it and asks for its note, a press on empty canvas does nothing; the marquee follows Figma's measured rules: a partly covered frame or section gives the layers in it the marqLine truncated
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (the Layers panel's eye and padlock stay at the list's right edge, and a name takes at most 400 pt; Type settings ▸ Details ▸ Position sets the selected text layers to superscript or subscript, or neither (#2338); Shift with the Pencil, Marker or Highlighter draws one straight segment from where the stroke started, at the nearest 45° step, as the Line tool and the Pen do (#2447); the Design panel's header names a selected component or component set, after its icon, instead of only its type (#2347); dragging near the canvas edge pans the view toward it, as measured in Figma: 40 px/s for each px within about 15 px of the edge, 600 px/s at it, for moving layers, the selection box, drawing and prototype connections (#2015); M8: a Shift-click range in the Layers panel across parents keeps a frame and not its covered children, measured in Figma's web app on 2026-11-12; points align and distribute in vector edit mode as in Figma: the six Align commands, the keys Alt+A/H/D/W/V/S, and Distribute horizontal and vertical spacing act on the selected points, each moving along one axis to their box's edge or centre line, spaced evenly between the outermost for distribute, with the alignment row first in the Design panel (#2109); going back to a page shows it where it was left, not fitted again; Duplicate repeats the last copy's move and its rotation (about the copy's centre, or the selection's centre for several layers), not its size, and forgets the step when the selection changes, measured in Figma's web app on 2026-11-12 (#2293); M8: a double-click on a layer's icon zooms to it instead of renaming, measured in Figma's web app on 2026-11-12; Tidy up keeps the order and sizes and evens the gaps, as measured in Figma's web app on 2026-11-12, rounds the gap half up, tidies overlapping rows and packs a grid along its longer axis, and is greyed out for fewer than three layers, a diagonal and an irregular layout (M8); after Crop is chosen in the image fill's colour picker, a drag on the image crops it instead of moving the layer, and no internal gesture message shows (#2307); Align is disabled for a layer in an auto layout frame's flow, as measured in Figma's web app on 2026-11-12, with a tip saying the frame places it; Select layer lists locked layers with a padlock and selects them, and shows only with more than one layer under the pointer (#1560); M8: Scale tool handle drags pivot on the opposite handle whatever the origin, and the origin starts at the centre (measured in Figma's web app, 2026-11-09); M8: a selected polygon or star has a Count handle on the canvas, on its first point clockwise from the top; Zoom to selection leaves a 40 pt margin and clears the bottom toolbar, measured in Figma's web app; M1: Paste over selection puts the pasted layers just above the selected layer; drag modifiers compared in Figma's web app (2026-11-08): Shift locks a move to the dominant axis, Alt copies, Shift keeps a resize's ratio, Alt keeps its centre, all read afresh on every move, and FigCraft matches (Ctrl/Cmd not measurable); a mirror mode (angle, or angle and length) on a sharp point turns it smooth, as in Figma (#2110); M8: Tab while renaming the last layer wraps to the first row, measured in Figma's web app on 2026-11-12; the text caret takes the text's solid fill colour (#2156); the Rotation field shows and sets the rotation on the page, in frames and groups, through node.set absoluteRotation (#2196); the eyedropper picks a magnified image's pixel under the pointer, not a blend with its neighbours (#2189); Selection colors shows from one distinct colour when a selected layer has children, and from two otherwise, measured in Figma's web app on 2026-11-09 on a frame, a group and plain rectangles; the crosshair of the shape and Text tools is drawn dark with a white edge, so it shows on a white frame whatever the system's pointer style (#2198); a boolean group takes a corner radius (and smoothing) that rounds every sharp corner of its result (#2222); the Point section's X and Y in vector edit mode show Mixed and set every selected point of the layer being edited, as in Figma; Preferences ▸ Invert zoom direction reverses wheel zoom, pinch unchanged (#2145); Shift while rotating lands on absolute multiples of 15°, measured in Figma; Flatten bakes a vector's point corner radius into its path (#2195); a click on a fill, stroke or effect row's grip or background highlights it, Cmd/Ctrl+C copies that paint or effect and Cmd/Ctrl+V pastes it onto the selected layers, as the help center's Copy and paste properties between layers says (#1494); wrap style per paragraph and in text styles (#1827); the Annotation tool (Shift+T, `tool.annotation {id?}`): with a layer selected (or an `id`) it asks the UI for that layer's note at once, and in the tool a press on a layer selects it and asks for its note, a press on empty canvas does nothing; the marqueLine truncated
Fine canvas control is what Figma users feel first: handles, snapping, nudging, modifier keys,
drag behaviour, numeric precision. This checklist covers the tools, gestures and panels. Status:
@@ -184,7 +184,7 @@ in the table. `crates/ui-egui/src/shortcut_keys_tests.rs` drives the keys a look
| Screen-reader names, roles, values, states (AccessKit) | done on desktop | browser: eframe doesn't send the tree yet |
| Keyboard navigation: F6 regions, Tab within, focus ring | done | |
| Layers panel from the keyboard: arrows, F2 / Cmd+R rename (the row gets the keyboard back), Shift+F10 context menu; 10k-layer lists | done | revealing a layer, expanding, collapsing and arrow keys timed in `cargo xtask bench` |
| Layers panel: long or deeply nested names | done | the list is as wide as its widest name needs and scrolls sideways, so a name reads in full without widening the sidebar (the reference app's Layers panel has a horizontal scrollbar); a drag released over the canvas drops nowhere; a name past 1200 pt still elides (`layers_wide_names_tests`, #1904) |
| Layers panel: long or deeply nested names | done | the list is as wide as its widest name needs and scrolls sideways, so a name reads in full without widening the sidebar (the reference app's Layers panel has a horizontal scrollbar); a drag released over the canvas drops nowhere; a name past 400 pt elides, and the eye and padlock stay at the edge of the list's view (`layers_wide_names_tests`, #1904) |
| Reduced motion | done | system setting or preference |
| WCAG AA contrast of secondary and accent text | done | disabled and dim text at least 3:1 against panels, fields and selected rows, selected text at least 3:1 on its highlight, in both themes (`theme::tests`, #890) |
| Tested with VoiceOver, NVDA, Narrator, Orca | missing | human QA |
@@ -219,6 +219,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| 2026-11-19 | patch | M5, #2360: with a frame selected, a drag that starts on one of its children moves the frame and a click selects the child (a press on a layer inside a selected one drags the selection), as in Figma; Cmd/Ctrl, Shift and layers outside the frame are unchanged. |
| 2026-11-18 | patch | M5, #2372: the arrow keys move a layer along the canvas axes inside a rotated parent (the step was applied along the parent's axes, so Down moved a child of a frame rotated 90 degrees sideways); auto layout children are unchanged |
| 2026-11-18 | patch | M1, #2355: Cmd/Ctrl+V with one layer inside a frame selected pasted the copy onto the page on top of the frame; it now goes into the layer's parent just above it (in an auto layout frame, the item after it, so the layout grows), keeping today's behaviour for a page-level layer, several layers, an instance's children and a board atom. Tests: `paste_sibling_tests` (5) |
| 2026-11-18 | patch | M3, #1904 follow-up: a text layer named after a paragraph made the Layers list over 1000 pt wide, and the eye and padlock sat at the far end of each row, so hiding a layer meant scrolling sideways. They now sit at the right edge of the list's view, with the name clipped under them while they show (hover, or a hidden or locked layer), and a name takes at most 400 pt instead of 1200, which still holds a variant name like `Size=small, Type=primary, State=default, Icon=leading, Width=full` in full. A row nested so deep that its disclosure triangle would sit under them keeps them at its end, and a row a held sweep has taken in keeps its name clipped; an ordinary row's eye is where it was. Tests: `the_eye_of_a_long_named_layer_sits_at_the_panels_edge_and_is_clickable`, `a_paragraph_named_text_layer_widens_the_list_no_more_than_the_name_cap`, `the_eye_of_an_ordinary_row_stays_where_it_was`, `a_swept_long_named_row_keeps_its_name_clipped_before_the_eye`, `the_disclosure_triangle_of_a_deeply_nested_row_is_not_under_the_padlock` |
| 2026-11-08 | minor | M8, #2109: in vector edit mode the Align commands (`align.left` to `align.bottom`, Alt+A/H/D/W/V/S) and Distribute horizontal and vertical spacing act on the selected points when neither `ids` nor `id` is given (either one targets layers), as in Figma (measured in Figma on 2026-11-08): each point moves along one axis only, to its box's left, horizontal centre, right, top, vertical centre or bottom, and distribute spaces the points evenly between the outermost two in order along the axis; handles go with their vertex, a single point stays, with no point selected nothing moves (the layer is not aligned to its frame, as measured in Figma), and one undo restores them. The Design panel draws the alignment row first, with a Distribute menu from three points. Numbers unchanged. |
| 2026-11-08 | patch | Number fields: scrubbing a label moves half a step a point, not a step, as measured in Figma (X from 100: +6 for a 12.2 px drag, +31 for 61.2 px; rotation 6° and opacity 5% for 12.2 px); Shift (x10), Alt (x0.1) and the speed by height are kept on top of it and were not measured, and no field's scrub direction changed |
| 2026-11-17 | patch | M8: each page keeps its view in a session: going back to a page (the Pages list, `page.select`, Previous/Next page) shows it where it was left instead of fitting it again; a new page is still fitted, and going to the page shown moves nothing (`page_view_tests`) |