Desktop: reopen the files open at quit instead of starting in a new file

The desktop app started in a new, empty file on every launch, and with a
control port open (FIGCRAFT_CONTROL_PORT set for an attached agent) even
the Start on the Home screen preference was overridden, so the files you
worked in had to be found and opened again each time.

Quitting now keeps the paths of the open tabs' files, in tab order, and the
one in front (Prefs::open_files, Prefs::front_file); the next start opens
them again and brings that one forward, as Figma's desktop app reopens its
tabs. Files without a path (new, imported, joined live) and branch tabs are
left out. A file named on the command line stays in front, a recovered
copy keeps its one tab (file.open switches to an open path), a file gone
since is skipped, and one that won't open is reported like a file named on
the command line.

With nothing to reopen the window starts on the Home screen; only with a
control port open does it still start in a new file (#874: control callers
expect a document). Start on the Home screen now means Home instead of the
reopened files.

The list is written at quit only, with the other preferences. Keeping it on
every tab change would cover a crash too, but a crash already brings back
the unsaved files through recovery copies, and the list from the last quit
is a fair fallback for the rest.
This commit is contained in:
Denis Gomes committed 2026-11-24 03:00:57 -05:00
1 parent c01d391df7
commit f9964e14ae
8 files changed
+204 -21

No files matched your search

+40 -15
View File
@@ -209,7 +209,7 @@ fn main() -> eframe::Result {
failed_open = Some(format!("{name}: {e}"));
}
}
let opened: Vec<u64> = session.docs.iter().map(|d| d.uid).collect();
let mut opened: Vec<u64> = session.docs.iter().map(|d| d.uid).collect();
// Documents a crashed or killed run left unsaved come back; this run keeps its own copies.
let recovery_root = services::config_dir().map(|d| d.join("Recovery"));
// The preferences first: they hold the online files a recovered document may be one of.
@@ -233,7 +233,20 @@ fn main() -> eframe::Result {
session.live.links = figcraft_collab_net::links::system();
session.invite_links_startup();
let first_run = svc.prefs.is_none() && args.join.is_none();
if session.docs.is_empty() && opens_new_file(first_run, session.prefs.start_on_home, port.is_some()) {
if reopens_files(first_run, session.prefs.start_on_home) {
let before: Vec<u64> = session.docs.iter().map(|d| d.uid).collect();
for (path, e) in session.reopen_files() {
log::error!("{path}: {e}");
let name = std::path::Path::new(&path).file_name().map_or_else(|| path.clone(), |n| n.to_string_lossy().into_owned());
failed_open = Some(format!("{name}: {e}"));
}
// A file named on the command line stays in front.
if let Some(i) = opened.last().and_then(|uid| session.docs.iter().position(|d| d.uid == *uid)) {
session.active = i;
}
opened.extend(session.docs.iter().map(|d| d.uid).filter(|u| !before.contains(u)));
}
if session.docs.is_empty() && opens_new_file(first_run, port.is_some()) {
let _ = session.execute("file.new", &json!({}));
}
// The interface language from the first frame on, and for the message when the window can't
@@ -243,7 +256,8 @@ fn main() -> eframe::Result {
fig.set_startup_update_check(true);
fig.automation_roots = roots;
fig.ui.home = false;
// Files named on the command line are the user's too: their missing fonts are listed.
// Files named on the command line or reopened are the user's too: their missing fonts are
// listed.
fig.ui.font_checks = opened;
fig.note_recovered(recovered.copies);
if let Some(message) = failed_open {
@@ -325,12 +339,17 @@ fn main() -> eframe::Result {
graphics.finish(result, frames, port.is_some())
}
/// With nothing to open, whether the window starts in a new file rather than on the home screen.
/// A first run (no settings kept yet) shows the home screen's tips and templates, and later runs
/// start in a new file unless the preference asks for Home, which `--control` overrides: its
/// callers expect a document to act on.
fn opens_new_file(first_run: bool, start_on_home: bool, control: bool) -> bool {
!first_run && (!start_on_home || control)
/// Whether the files open when the app last quit open again: not on a first run (no settings kept
/// yet), nor when the preference asks for the Home screen.
fn reopens_files(first_run: bool, start_on_home: bool) -> bool {
!first_run && !start_on_home
}
/// With nothing open, whether the window starts in a new file rather than on the home screen: only
/// with a control port open (`--control`), whose callers expect a document to act on. A first run
/// shows the home screen's tips and templates whatever the port.
fn opens_new_file(first_run: bool, control: bool) -> bool {
!first_run && control
}
/// The title bar FigCraft starts with, decided by the shared craft-window crate so every Craft app
@@ -426,13 +445,19 @@ mod title_bar_tests {
#[cfg(test)]
mod start_tests {
use super::opens_new_file;
use super::{opens_new_file, reopens_files};
#[test]
fn the_home_preference_starts_on_home_except_for_control_callers() {
assert!(opens_new_file(false, false, false), "a new file by default");
assert!(!opens_new_file(false, true, false), "Home when the preference asks");
assert!(opens_new_file(false, true, true), "--control still starts with a document");
assert!(!opens_new_file(true, false, false), "a first run shows the home screen");
fn the_last_files_reopen_unless_the_home_preference_asks_or_on_a_first_run() {
assert!(reopens_files(false, false), "by default");
assert!(!reopens_files(false, true), "Home when the preference asks");
assert!(!reopens_files(true, false), "a first run has nothing to reopen");
}
#[test]
fn with_nothing_open_only_control_callers_start_in_a_new_file() {
assert!(!opens_new_file(false, false), "the home screen, not an empty file");
assert!(opens_new_file(false, true), "--control starts with a document");
assert!(!opens_new_file(true, true), "a first run shows the home screen");
}
}
+3 -1
View File
@@ -348,9 +348,11 @@ fn open_directory(file: &std::fs::File) -> Result<(), String> {
const STATE: &str = "state.json";
/// Everything quitting keeps, all done when it returns (macOS then ends the process): the
/// preferences in `dir`, this run's recovery copies ([`Recovery::quit`](crate::recovery::Recovery::quit))
/// preferences in `dir` with the files open now, which the next start reopens, this run's recovery
/// copies ([`Recovery::quit`](crate::recovery::Recovery::quit))
/// and the live sessions' ends (one this app hosts tells everyone and stops; a joined one leaves).
pub fn shutdown(app: &mut FigApp, dir: Option<&Path>, recovery: Option<crate::recovery::Recovery>) {
app.session.remember_open_files();
if let Some(dir) = dir {
write_prefs(dir, &app.session.prefs);
}
+3
View File
@@ -106,6 +106,7 @@ mod derived;
mod doc_state;
mod error;
mod prefs;
mod reopen;
mod session;
mod view_state;
@@ -543,6 +544,8 @@ mod proto_run_tests;
#[cfg(test)]
mod proto_tail_tests;
#[cfg(test)]
mod reopen_tests;
#[cfg(test)]
mod rest_slot_tests;
#[cfg(test)]
mod retained_walk_tests;
+11 -1
View File
@@ -63,7 +63,8 @@ pub struct Prefs {
/// Files that have a path are saved by themselves a few seconds after they change (the app's
/// timer; off: only File ▸ Save writes them).
pub auto_save: bool,
/// The desktop app starts on the Home screen instead of in a new file.
/// The desktop app starts on the Home screen instead of reopening the files open when it last
/// quit.
pub start_on_home: bool,
/// `figcraft://` invite links open this app (`collab.registerLinks`); `None`: on for installed
/// builds, off for development builds.
@@ -85,6 +86,13 @@ pub struct Prefs {
/// Recently opened or saved files, newest first (File ▸ Open recent; at most
/// [`cmd::file::MAX_RECENT`]).
pub recent_files: Vec<String>,
/// The files open when the desktop app last quit, in tab order: the next start opens them again
/// ([`Session::reopen_files`](crate::Session::reopen_files)).
#[serde(skip_serializing_if = "Vec::is_empty")]
pub open_files: Vec<String>,
/// Which of [`open_files`](Self::open_files) was in front.
#[serde(skip_serializing_if = "Option::is_none")]
pub front_file: Option<String>,
/// The files you put on a server without its key, with their owner tokens (passwords: see
/// [`online`]), most recently opened first, at most [`online::MAX_ONLINE_FILES`].
#[serde(skip_serializing_if = "Vec::is_empty", deserialize_with = "online::read")]
@@ -155,6 +163,8 @@ impl Default for Prefs {
plugin_directory: None,
publish_server: live::DEFAULT_SERVER.into(),
recent_files: Vec::new(),
open_files: Vec::new(),
front_file: None,
online_files: Vec::new(),
getting_started_dismissed: false,
link_notice_skipped: false,
+38
View File
@@ -0,0 +1,38 @@
//! The files open when the desktop app quit open again at its next start, in their tabs' order
//! with the same one in front, as Figma's desktop app reopens its tabs.
use serde_json::json;
use crate::{EngineError, Session};
impl Session {
/// Keep the open files to reopen at the next start: each tab's file that has a path, in tab
/// order, and the one in front. Files without one (new, imported, joined from a live session)
/// and branch tabs are left out.
pub fn remember_open_files(&mut self) {
let path = |i: usize| self.docs.get(i).filter(|d| d.branch_of.is_none()).and_then(|d| d.path.clone());
self.prefs.open_files = (0..self.docs.len()).filter_map(path).collect();
self.prefs.front_file = path(self.active);
}
/// Open the files [`remember_open_files`](Self::remember_open_files) kept, then bring the one
/// that was in front forward. A file that is no longer there is skipped; the others that don't
/// open come back with why. A file already open (a recovered copy, one named at start) keeps
/// its tab.
pub fn reopen_files(&mut self) -> Vec<(String, EngineError)> {
let mut failed = Vec::new();
for path in self.prefs.open_files.clone() {
if !crate::file_access::exists(&path) {
continue;
}
if let Err(e) = self.execute("file.open", &json!({"path": path})) {
failed.push((path, e));
}
}
let front = self.prefs.front_file.as_deref();
if let Some(i) = self.docs.iter().position(|d| front.is_some() && d.path.as_deref() == front) {
self.active = i;
}
failed
}
}
+103
View File
@@ -0,0 +1,103 @@
//! The files open when the desktop app quit open again at its next start.
use std::path::PathBuf;
use serde_json::json;
use crate::Session;
fn folder(name: &str) -> PathBuf {
let dir = std::env::temp_dir().join(format!("figcraft-reopen-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
dir
}
fn saved(s: &mut Session, dir: &std::path::Path, name: &str) -> String {
let path = dir.join(format!("{name}.figcraft")).to_string_lossy().into_owned();
s.execute("file.new", &json!({"name": name})).unwrap();
s.execute("file.save", &json!({"path": path})).unwrap();
path
}
fn paths(s: &Session) -> Vec<Option<String>> {
s.docs.iter().map(|d| d.path.clone()).collect()
}
/// The next start: the preferences the last run kept, nothing open yet.
fn next_start(last: &Session) -> Session {
let mut s = Session::empty();
s.prefs = last.prefs.clone();
s
}
#[test]
fn the_files_open_at_quit_reopen_in_their_order_with_the_same_one_in_front() {
let dir = folder("order");
let mut s = Session::empty();
let a = saved(&mut s, &dir, "A");
s.execute("file.new", &json!({"name": "Untitled"})).unwrap();
let b = saved(&mut s, &dir, "B");
let c = saved(&mut s, &dir, "C");
s.execute("doc.switch", &json!({"index": 2})).unwrap();
s.remember_open_files();
assert_eq!(s.prefs.open_files, vec![a.clone(), b.clone(), c.clone()], "the new file without a path is left out");
assert_eq!(s.prefs.front_file.as_deref(), Some(b.as_str()));
let mut t = next_start(&s);
assert!(t.reopen_files().is_empty());
assert_eq!(paths(&t), vec![Some(a), Some(b.clone()), Some(c)]);
assert_eq!(t.docs[t.active].path.as_deref(), Some(b.as_str()), "B is in front again");
let _ = std::fs::remove_dir_all(&dir);
}
#[test]
fn a_file_gone_since_is_skipped_and_one_that_wont_open_says_why() {
let dir = folder("gone");
let mut s = Session::empty();
let kept = saved(&mut s, &dir, "Kept");
let gone = saved(&mut s, &dir, "Gone");
let broken = saved(&mut s, &dir, "Broken");
s.remember_open_files();
std::fs::remove_file(&gone).unwrap();
std::fs::write(&broken, b"not a figcraft file").unwrap();
let mut t = next_start(&s);
let failed = t.reopen_files();
assert_eq!(failed.iter().map(|(p, _)| p.clone()).collect::<Vec<_>>(), vec![broken]);
assert_eq!(paths(&t), vec![Some(kept)]);
let _ = std::fs::remove_dir_all(&dir);
}
#[test]
fn a_file_already_open_at_start_keeps_its_one_tab() {
let dir = folder("twice");
let mut s = Session::empty();
let a = saved(&mut s, &dir, "A");
let b = saved(&mut s, &dir, "B");
s.execute("doc.switch", &json!({"index": 0})).unwrap();
s.remember_open_files();
// B was named on the command line (or came back as a recovered copy).
let mut t = next_start(&s);
t.execute("file.open", &json!({"path": b})).unwrap();
assert!(t.reopen_files().is_empty());
assert_eq!(paths(&t), vec![Some(b), Some(a.clone())]);
assert_eq!(t.docs[t.active].path.as_deref(), Some(a.as_str()));
let _ = std::fs::remove_dir_all(&dir);
}
#[test]
fn quitting_with_nothing_open_leaves_nothing_to_reopen() {
let dir = folder("none");
let mut s = Session::empty();
saved(&mut s, &dir, "A");
s.remember_open_files();
s.execute("file.close", &json!({"index": 0})).unwrap();
s.remember_open_files();
assert!(s.prefs.open_files.is_empty());
assert_eq!(s.prefs.front_file, None);
let saved = serde_json::to_value(&s.prefs).unwrap();
assert!(saved.get("open_files").is_none() && saved.get("front_file").is_none(), "not written when empty");
let _ = std::fs::remove_dir_all(&dir);
}
+4 -3
View File
@@ -790,9 +790,10 @@ on; `key` resolves keys the way the canvas does. Commands behind keys:
it is larger; the choice is kept. In the browser the interface always follows the browser's zoom.
- `pref.autoSave {on?}`: files that have a path save themselves a few seconds after they change
(off by default; the desktop app's timer does it, so scripts still call `file.save`).
- `pref.startOnHome {on?}`: the desktop app starts on the Home screen instead of in a new file
(off by default; files named on the command line still open, and `--control` starts in a new
file anyway, so control callers have a document).
- `pref.startOnHome {on?}`: the desktop app starts on the Home screen instead of reopening the
files open when it last quit (off by default; with nothing to reopen it starts on the Home screen
too; files named on the command line still open, and with nothing open `--control` starts in a new
file, so control callers have a document).
- `pref.language {language: system|en|bs|cs|ru|es|es-419|fr|de|pt-BR|ja|ka|ko|sv|vi|zh-Hans|zh-Hant|…}`: the app's interface language, applied live ("system":
the OS or browser language; a language without a catalog shows English). Command ids, labels and
every result stay English.
+2 -1
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-20 · **Change:** minor (the desktop app reopens the files open when it quit, in their tabs' order with the same one in front, and with nothing to reopen starts on the Home screen instead of in a new file; 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 Line 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:
@@ -211,6 +211,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| Date | Change | Summary |
|---|---|---|
| 2026-11-20 | patch | The desktop app started in a new, empty file every time, whatever was open when it quit. It now opens those files again, in their tabs' order with the same one in front, as Figma's desktop app reopens its tabs; quitting keeps their paths with the preferences (files without one, such as new or imported files, and branch tabs are left out). A file named on the command line still opens and stays in front, a recovered copy keeps its one tab, a file gone since is skipped and one that won't open says why. With nothing to reopen the app starts on the Home screen; with a control port open (`--control`) it still starts in a new file, so control callers have a document. Preferences ▸ Start on the Home screen starts there instead of reopening the files. Tests: `reopen_tests` (4), `start_tests` (2). Numbers unchanged |
| 2026-11-19 | patch | M4, #2338: superscript and subscript were drawn (#1868) but nothing in the interface set them. Type settings ▸ Details now starts with Position: None, Superscript (X²) or Subscript (X₂), for the selected text layers, through `text.setFeatures` (`sups`, `subs`; choosing one clears the other). It shows the layers' current position, none when they differ. Raising a range of characters on its own needs per-run features and is left for a separate change. Test: `typography::variable_tests::details_position_sets_superscript_subscript_or_neither`. |
| 2026-11-19 | patch | M1, #2447: Shift did nothing with the Pencil: a stroke stayed freehand while the Line tool and the Pen keep theirs to 45° steps. With Shift held, the Pencil (and the Marker and Highlighter) now draws one straight segment from where the stroke started to the pointer, at the nearest 45° step; the preview shows it. A Shift-click without a move draws nothing, as before. Tests: `pencil_shift_tests`. |
| 2026-11-19 | patch | M3, #2347: with one component or component set selected, the Design panel's header said only "Component" or "Component set", so the selected one's name was only in the Layers panel. It now shows the name after a component icon (cut short with an ellipsis clear of the quick actions), with the type, and the whole name when cut, on hover. Other layers keep their type. Test: `component_header_tests::the_header_names_the_selected_component_or_set`. |