mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-22 18:34:42 +01:00
Merge pull request #8666 from storytold/train/carry7652
Tools: add an optional compact layout (#7652)
This commit is contained in:
13 files changed
+449
-16
No files matched your search
@@ -571,6 +571,12 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
|
||||
"{double?: bool, toolbar?: name} show the toolbar's tools (with `toolbar`, that toolbar made with New Toolbar's) in two columns (true), one (false) or toggle (omitted), as the double arrow at the top of the toolbar does; returns the new state",
|
||||
),
|
||||
("window.toolbarAdvanced", "Toolbar: Advanced / Basic", "", "{}"),
|
||||
(
|
||||
"window.toolbarCompact",
|
||||
"Compact Tools",
|
||||
"",
|
||||
"{on?: bool} use smaller tool cells and a narrower main Tools panel (true), restore its regular spacing (false), or toggle (omitted or null); the choice starts off and is kept with the workspace, independently of one/two columns and Basic/Advanced or edited tools. Tool icons and footer controls keep their size; tool flyouts, torn-off groups and named custom toolbars keep their spacing. A value other than true, false or null is an error and changes nothing; returns the new state",
|
||||
),
|
||||
(
|
||||
"window.toolsBesideCanvas",
|
||||
"Keep Tools Beside the Canvas",
|
||||
|
||||
@@ -686,14 +686,16 @@ pub fn sync(ui: &UiState) {
|
||||
}
|
||||
}
|
||||
|
||||
/// Window › Toolbars: Advanced, Double Column and Keep Tools Beside the Canvas, the toolbars made
|
||||
/// with New Toolbar (each checked while it shows), New Toolbar… and Manage Toolbars….
|
||||
/// Window › Toolbars: Advanced, Double Column, Compact Tools and Keep Tools Beside the Canvas,
|
||||
/// the toolbars made with New Toolbar (each checked while it shows), New Toolbar… and Manage
|
||||
/// Toolbars….
|
||||
pub fn menu_items() -> Vec<crate::menus::Item> {
|
||||
use crate::menus::Item;
|
||||
let c = |label: &'static str, id: &'static str| Item::Cmd(label, id, Value::Null);
|
||||
let mut v = vec![
|
||||
c("Advanced", "window.toolbarAdvanced"),
|
||||
c("Double Column", "window.toolbarColumns"),
|
||||
c("Compact Tools", "window.toolbarCompact"),
|
||||
c("Keep Tools Beside the Canvas", "window.toolsBesideCanvas"),
|
||||
Item::Sep,
|
||||
];
|
||||
|
||||
@@ -576,6 +576,11 @@ fn run_ui_part5(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option<Result<
|
||||
}
|
||||
}
|
||||
"window.toolbar" => flag(&mut app.ui.toolbar),
|
||||
"window.toolbarCompact" => opt_bool(p, "on").map(|on| {
|
||||
let on = on.unwrap_or(!app.ui.toolbar_compact);
|
||||
app.ui.toolbar_compact = on;
|
||||
json!(on)
|
||||
}),
|
||||
"window.toolbarColumns" => {
|
||||
let toolbar = match crate::custom_toolbars::target(&app.ui, p) {
|
||||
Ok(t) => t,
|
||||
|
||||
@@ -73,6 +73,7 @@ pub fn checked(app: &VectorcraftApp, id: &str, p: &Value) -> Option<bool> {
|
||||
.is_some_and(|g| crate::chrome::CONTROL_BAR_GROUPS.contains(&g) && !app.ui.control_bar_hidden_groups.contains(g)),
|
||||
"window.toolbar" => app.ui.toolbar,
|
||||
"window.toolbarAdvanced" => app.ui.toolbar_advanced,
|
||||
"window.toolbarCompact" => app.ui.toolbar_compact,
|
||||
"window.toolsBesideCanvas" => app.ui.tools_beside_canvas,
|
||||
"window.toolbarColumns" => match p.get("toolbar").and_then(Value::as_str) {
|
||||
None => app.ui.toolbar_double,
|
||||
|
||||
@@ -572,6 +572,12 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
|
||||
"{double?: bool, toolbar?: name} show the toolbar's tools (with `toolbar`, that toolbar made with New Toolbar's) in two columns (true), one (false) or toggle (omitted), as the double arrow at the top of the toolbar does; returns the new state",
|
||||
),
|
||||
("window.toolbarAdvanced", "Toolbar: Advanced / Basic", "", "{}"),
|
||||
(
|
||||
"window.toolbarCompact",
|
||||
"Compact Tools",
|
||||
"",
|
||||
"{on?: bool} use smaller tool cells and a narrower main Tools panel (true), restore its regular spacing (false), or toggle (omitted or null); the choice starts off and is kept with the workspace, independently of one/two columns and Basic/Advanced or edited tools. Tool icons and footer controls keep their size; tool flyouts, torn-off groups and named custom toolbars keep their spacing. A value other than true, false or null is an error and changes nothing; returns the new state",
|
||||
),
|
||||
(
|
||||
"window.toolsBesideCanvas",
|
||||
"Keep Tools Beside the Canvas",
|
||||
|
||||
@@ -473,6 +473,9 @@ pub struct UiState {
|
||||
pub control_bar_hidden_groups: std::collections::BTreeSet<String>,
|
||||
pub toolbar: bool,
|
||||
pub toolbar_double: bool,
|
||||
/// Smaller cells and panel width for the main Tools panel, independent of its column count.
|
||||
#[serde(default)]
|
||||
pub toolbar_compact: bool,
|
||||
/// Advanced toolbar (every tool group) instead of the categorized Basic toolbar.
|
||||
#[serde(default)]
|
||||
pub toolbar_advanced: bool,
|
||||
@@ -1236,6 +1239,7 @@ impl Default for UiState {
|
||||
control_bar_hidden_groups: Default::default(),
|
||||
toolbar: true,
|
||||
toolbar_double: false,
|
||||
toolbar_compact: false,
|
||||
toolbar_advanced: false,
|
||||
task_bar: true,
|
||||
task_bar_place: TaskBarPlace::default(),
|
||||
|
||||
@@ -112,8 +112,22 @@ pub(crate) fn docked_rect_id() -> egui::Id {
|
||||
egui::Id::unique("toolbar-docked-rect")
|
||||
}
|
||||
|
||||
fn panel_width(ui: &crate::state::UiState) -> f32 {
|
||||
if ui.toolbar_double { 80.0 } else { WIDTH }
|
||||
/// Geometry of the main Tools panel only; flyouts and custom toolbars keep their own metrics.
|
||||
struct ToolsMetrics {
|
||||
cell: egui::Vec2,
|
||||
well: egui::Vec2,
|
||||
panel_width: f32,
|
||||
}
|
||||
|
||||
fn main_metrics(ui: &crate::state::UiState) -> ToolsMetrics {
|
||||
let (cell, well) = if ui.toolbar_compact { (vec2(30.0, 25.0), vec2(26.0, 23.0)) } else { (vec2(36.0, PITCH - 1.0), vec2(30.0, 27.5)) };
|
||||
let panel_width = match (ui.toolbar_compact, ui.toolbar_double) {
|
||||
(false, false) => WIDTH,
|
||||
(false, true) => 80.0,
|
||||
(true, false) => 44.0,
|
||||
(true, true) => 76.0,
|
||||
};
|
||||
ToolsMetrics { cell, well, panel_width }
|
||||
}
|
||||
|
||||
/// Space reserved inside the protected canvas panel for a visible Tools panel docked beside the
|
||||
@@ -121,7 +135,7 @@ fn panel_width(ui: &crate::state::UiState) -> f32 {
|
||||
/// none while Tools docks at the window's left edge.
|
||||
pub(crate) fn docked_width(ui: &crate::state::UiState) -> f32 {
|
||||
if (ui.tools_beside_canvas || ui.toolbar_right) && ui.toolbar && ui.screen_mode < 3 && ui.toolbar_pos.is_none() {
|
||||
panel_width(ui) + 6.0
|
||||
main_metrics(ui).panel_width + 6.0
|
||||
} else {
|
||||
0.0
|
||||
}
|
||||
@@ -157,9 +171,9 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
let t = Tokens::get(ui.ctx());
|
||||
// The user's choice alone: a window too short for the tools scrolls them.
|
||||
let cols = if app.ui.toolbar_double { 2 } else { 1 };
|
||||
// Two 36 pt buttons with 2 pt either side inside the border and separator line (at 76 they
|
||||
// overran the right border).
|
||||
let w = panel_width(&app.ui);
|
||||
// Regular: two 36 pt cells need 80 pt to fit the frame. Compact: 30 pt cells fit in 76 pt,
|
||||
// leaving room for the unchanged 66 pt drawing-mode footer and the frame.
|
||||
let w = main_metrics(&app.ui).panel_width;
|
||||
match app.ui.toolbar_pos {
|
||||
None => {
|
||||
// The card's outer gap faces the edge it docks at.
|
||||
@@ -219,6 +233,7 @@ pub fn show_custom(app: &mut VectorcraftApp, ctx: &egui::Context) {
|
||||
fn body(app: &mut VectorcraftApp, ui: &mut Ui, cols: usize, floating: Option<egui::Pos2>) {
|
||||
let t = Tokens::get(ui.ctx());
|
||||
let all = slots(app);
|
||||
let metrics = main_metrics(&app.ui);
|
||||
let bounds = ui.max_rect();
|
||||
let editing = app.ui.tools_drawer && app.ui.drawer_toolbar.is_none();
|
||||
ui.spacing_mut().item_spacing = vec2(0.0, 0.0);
|
||||
@@ -292,14 +307,14 @@ fn body(app: &mut VectorcraftApp, ui: &mut Ui, cols: usize, floating: Option<egu
|
||||
// Centred on the panel's inside (`bounds`: within its border and, docked, the
|
||||
// separator line egui reserves on its right), not on `WIDTH`, which sat them 2½ pt
|
||||
// right of centre docked; nor on this row, which the scroll area starts ½ pt in.
|
||||
ui.add_space((bounds.center().x - cols as f32 * 18.0 - ui.cursor().min.x).max(0.0));
|
||||
ui.add_space((bounds.center().x - cols as f32 * (metrics.cell.x / 2.0) - ui.cursor().min.x).max(0.0));
|
||||
for &k in &row {
|
||||
let slot = &all[k].1;
|
||||
let Some(shown) = tool_info(shown_tool(app, slot)).or_else(|| tool_info(slot[0])) else { continue };
|
||||
let is_active = slot.contains(&active);
|
||||
let (rect, resp) = ui.allocate_exact_size(vec2(36.0, PITCH - 1.0), Sense::click_and_drag());
|
||||
let (rect, resp) = ui.allocate_exact_size(metrics.cell, Sense::click_and_drag());
|
||||
crate::palette::note_spot(ui, rect, || crate::palette::SpotAt::Slot(None, slot.iter().map(|s| s.to_string()).collect()));
|
||||
let well = egui::Rect::from_center_size(rect.center(), vec2(30.0, 27.5));
|
||||
let well = egui::Rect::from_center_size(rect.center(), metrics.well);
|
||||
if is_active {
|
||||
ui.painter().rect_filled(well, CornerRadius::same(6), t.tool_active);
|
||||
} else if resp.hovered() {
|
||||
|
||||
@@ -38,6 +38,8 @@ pub struct Workspace {
|
||||
pub rulers: bool,
|
||||
pub toolbar: bool,
|
||||
pub toolbar_double: bool,
|
||||
/// Compact main Tools spacing (built-in and older workspaces: regular).
|
||||
pub toolbar_compact: bool,
|
||||
pub toolbar_advanced: bool,
|
||||
pub task_bar: bool,
|
||||
pub dock: bool,
|
||||
@@ -203,6 +205,7 @@ pub fn capture(ui: &UiState, name: &str) -> Workspace {
|
||||
rulers: ui.view.rulers,
|
||||
toolbar: ui.toolbar,
|
||||
toolbar_double: ui.toolbar_double,
|
||||
toolbar_compact: ui.toolbar_compact,
|
||||
toolbar_advanced: ui.toolbar_advanced,
|
||||
task_bar: ui.task_bar,
|
||||
dock: ui.dock,
|
||||
@@ -241,6 +244,7 @@ pub fn apply(ui: &mut UiState, w: &Workspace) {
|
||||
ui.view.rulers = w.rulers;
|
||||
ui.toolbar = w.toolbar;
|
||||
ui.toolbar_double = w.toolbar_double;
|
||||
ui.toolbar_compact = w.toolbar_compact;
|
||||
ui.toolbar_advanced = w.toolbar_advanced;
|
||||
ui.task_bar = w.task_bar;
|
||||
ui.dock = w.dock;
|
||||
|
||||
@@ -0,0 +1,384 @@
|
||||
//! Optional compact main Tools layout preserves the tools while using less room.
|
||||
// Tests may unwrap/panic (AGENTS.md, Robustness).
|
||||
#![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
|
||||
|
||||
use std::sync::Mutex;
|
||||
|
||||
use egui::{Event, Pos2, Rect, vec2};
|
||||
use serde_json::json;
|
||||
use vectorcraft_engine::Session;
|
||||
use vectorcraft_ui_egui::{UiState, VectorcraftApp, i18n, theme, toolbar};
|
||||
|
||||
static CASE: Mutex<()> = Mutex::new(());
|
||||
|
||||
struct Language(i18n::Lang);
|
||||
impl Language {
|
||||
fn english() -> Self {
|
||||
let previous = Self(i18n::current());
|
||||
i18n::set_current(i18n::Lang::from_code("en").unwrap());
|
||||
previous
|
||||
}
|
||||
}
|
||||
impl Drop for Language {
|
||||
fn drop(&mut self) {
|
||||
i18n::set_current(self.0);
|
||||
}
|
||||
}
|
||||
|
||||
fn near(a: f32, b: f32) -> bool {
|
||||
(a - b).abs() < 0.01
|
||||
}
|
||||
|
||||
fn main_toolbar_app(double: bool, compact: Option<bool>) -> VectorcraftApp {
|
||||
let mut app = VectorcraftApp::new(Session::new(), Default::default());
|
||||
app.run("file.new", json!({"width": 400, "height": 300, "profile": null})).unwrap();
|
||||
app.run("prefs.set", json!({"key": "toolGroupLabels", "value": false})).unwrap();
|
||||
let mut state = serde_json::to_value(&app.ui).unwrap();
|
||||
state["toolbar_double"] = json!(double);
|
||||
match compact {
|
||||
Some(on) => state["toolbar_compact"] = json!(on),
|
||||
None => {
|
||||
state.as_object_mut().unwrap().remove("toolbar_compact");
|
||||
}
|
||||
}
|
||||
// The old UiState reader ignores this future field; no future Rust field is referenced.
|
||||
app.ui = serde_json::from_value::<UiState>(state).unwrap();
|
||||
app
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
struct ToolbarGeometry {
|
||||
tools: Vec<String>,
|
||||
cells: Vec<Rect>,
|
||||
row_pitch: Option<f32>,
|
||||
column_pitch: Option<f32>,
|
||||
panel_width: f32,
|
||||
}
|
||||
|
||||
fn pitch(mut centers: Vec<f32>) -> Option<f32> {
|
||||
centers.sort_by(f32::total_cmp);
|
||||
centers.dedup_by(|a, b| near(*a, *b));
|
||||
centers.windows(2).map(|p| p[1] - p[0]).filter(|d| *d > 0.01).min_by(f32::total_cmp)
|
||||
}
|
||||
|
||||
fn tool_ids(nodes: &[egui::accesskit::Node]) -> Vec<String> {
|
||||
let mut ids: Vec<String> = nodes
|
||||
.iter()
|
||||
.filter(|n| n.role() == egui::accesskit::Role::Button && n.toggled().is_some())
|
||||
.filter_map(|n| {
|
||||
let label = n.label()?;
|
||||
vectorcraft_tools::TOOL_GROUPS
|
||||
.iter()
|
||||
.flat_map(|group| group.iter())
|
||||
.find_map(|tool| (label == tool.label || label.starts_with(&format!("{} (", tool.label))).then(|| tool.id.to_string()))
|
||||
})
|
||||
.collect();
|
||||
ids.sort();
|
||||
ids
|
||||
}
|
||||
|
||||
struct ToolbarFrames {
|
||||
app: VectorcraftApp,
|
||||
ctx: egui::Context,
|
||||
time: f64,
|
||||
height: f32,
|
||||
nodes: Vec<egui::accesskit::Node>,
|
||||
}
|
||||
impl ToolbarFrames {
|
||||
fn new(app: VectorcraftApp, height: f32) -> Self {
|
||||
let ctx = egui::Context::default();
|
||||
ctx.enable_accesskit();
|
||||
theme::install_fonts(&ctx);
|
||||
theme::apply(&ctx, theme::Brightness::MediumDark);
|
||||
Self { app, ctx, time: 0.0, height, nodes: vec![] }
|
||||
}
|
||||
|
||||
fn frame(&mut self, events: Vec<Event>) -> ToolbarGeometry {
|
||||
self.time += 0.05;
|
||||
let input = egui::RawInput {
|
||||
time: Some(self.time),
|
||||
events,
|
||||
screen_rect: Some(Rect::from_min_size(Pos2::ZERO, vec2(400.0, self.height))),
|
||||
..Default::default()
|
||||
};
|
||||
let ctx = self.ctx.clone();
|
||||
let mut panel_width = 0.0;
|
||||
let mut output = ctx.run_ui(input, |ui| {
|
||||
let before = ui.available_rect_before_wrap();
|
||||
toolbar::show(&mut self.app, ui);
|
||||
panel_width = before.width() - ui.available_rect_before_wrap().width();
|
||||
});
|
||||
if let Some(update) = output.platform_output.accesskit_update.take() {
|
||||
self.nodes = update.nodes.into_iter().map(|(_, node)| node).collect();
|
||||
}
|
||||
output.textures_delta.clear();
|
||||
// These are actual allocated widgets, not computed layout expectations. Both sizes are
|
||||
// accepted so old source can finish every requested measurement before primary assertions.
|
||||
let mut cells: Vec<Rect> = ctx.viewport(|vp| {
|
||||
vp.prev_pass
|
||||
.widgets
|
||||
.layers()
|
||||
.flat_map(|(_, widgets)| widgets.iter())
|
||||
.filter(|w| {
|
||||
let s = w.rect.size();
|
||||
(near(s.x, 36.0) && near(s.y, 29.0)) || (near(s.x, 30.0) && near(s.y, 25.0))
|
||||
})
|
||||
.map(|w| w.rect)
|
||||
.collect()
|
||||
});
|
||||
cells.sort_by(|a, b| a.top().total_cmp(&b.top()).then(a.left().total_cmp(&b.left())));
|
||||
ToolbarGeometry {
|
||||
tools: tool_ids(&self.nodes),
|
||||
row_pitch: pitch(cells.iter().map(|r| r.center().y).collect()),
|
||||
column_pitch: pitch(cells.iter().map(|r| r.center().x).collect()),
|
||||
cells,
|
||||
panel_width,
|
||||
}
|
||||
}
|
||||
|
||||
fn settled(&mut self) -> ToolbarGeometry {
|
||||
self.frame(vec![]);
|
||||
self.frame(vec![]);
|
||||
self.frame(vec![])
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn compact_tools_reduce_both_axes_and_reserved_panel_width() {
|
||||
let _case = CASE.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let _language = Language::english();
|
||||
let mut observations = vec![];
|
||||
for double in [false, true] {
|
||||
let regular = ToolbarFrames::new(main_toolbar_app(double, Some(false)), 1600.0).settled();
|
||||
let compact = ToolbarFrames::new(main_toolbar_app(double, Some(true)), 1600.0).settled();
|
||||
observations.push((double, regular, compact));
|
||||
}
|
||||
// Both one/two-column layouts have actually drawn before a missing feature can fail.
|
||||
println!("actual regular/compact main Tools geometry: {observations:#?}");
|
||||
for (double, regular, compact) in observations {
|
||||
assert!(regular.cells.len() > 10 && !regular.tools.is_empty(), "actual Tools widgets and IDs were measured: {regular:?}");
|
||||
assert_eq!(compact.tools, regular.tools, "the same usual tools remain, double={double}");
|
||||
assert_eq!(compact.cells.len(), regular.cells.len(), "tool-button count, double={double}");
|
||||
assert!(compact.row_pitch.unwrap() < regular.row_pitch.unwrap(), "compact must reduce vertical pitch, double={double}: {compact:?}");
|
||||
if double {
|
||||
assert!(compact.column_pitch.unwrap() < regular.column_pitch.unwrap(), "compact must reduce the inter-column pitch: {compact:?}");
|
||||
} else {
|
||||
assert!(compact.column_pitch.is_none());
|
||||
}
|
||||
assert!(compact.panel_width < regular.panel_width, "compact must reserve less real panel width, double={double}: {compact:?}");
|
||||
assert!(compact.cells.iter().all(|r| near(r.width(), 30.0) && near(r.height(), 25.0)));
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn compact_tools_default_and_explicit_false_keep_the_comfortable_layout() {
|
||||
let _case = CASE.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let _language = Language::english();
|
||||
for double in [false, true] {
|
||||
let missing = ToolbarFrames::new(main_toolbar_app(double, None), 1600.0).settled();
|
||||
let off = ToolbarFrames::new(main_toolbar_app(double, Some(false)), 1600.0).settled();
|
||||
assert!(missing.cells.len() > 10 && !missing.tools.is_empty());
|
||||
assert_eq!(missing.tools, off.tools);
|
||||
assert_eq!(missing.cells, off.cells, "omitted and false keep exactly the same button geometry");
|
||||
assert!(missing.cells.iter().all(|r| near(r.width(), 36.0) && near(r.height(), 29.0)));
|
||||
assert!(near(missing.row_pitch.unwrap(), 29.0), "{missing:?}");
|
||||
assert_eq!(missing.column_pitch.is_some(), double);
|
||||
if double {
|
||||
assert!(near(missing.column_pitch.unwrap(), 36.0), "{missing:?}");
|
||||
}
|
||||
assert!(near(missing.panel_width, if double { 86.0 } else { 54.0 }), "the current panel plus its 6pt outer frame: {missing:?}");
|
||||
assert!(near(missing.panel_width, off.panel_width));
|
||||
}
|
||||
}
|
||||
|
||||
// Additional public controls. The root-formatted two-case baseline above remains an exact prefix.
|
||||
|
||||
fn compact_value(app: &VectorcraftApp) -> bool {
|
||||
serde_json::to_value(&app.ui).unwrap()["toolbar_compact"].as_bool().unwrap_or(false)
|
||||
}
|
||||
|
||||
fn access_rect(node: &egui::accesskit::Node) -> Option<Rect> {
|
||||
let r = node.bounds()?;
|
||||
Some(Rect::from_min_max(egui::pos2(r.x0 as f32, r.y0 as f32), egui::pos2(r.x1 as f32, r.y1 as f32)))
|
||||
}
|
||||
|
||||
impl ToolbarFrames {
|
||||
fn named_rect(&self, label: &str) -> Rect {
|
||||
self.nodes.iter().find(|n| n.label() == Some(label)).and_then(access_rect).unwrap_or_else(|| panic!("{label} is drawn"))
|
||||
}
|
||||
|
||||
fn tool_rect(&self, tool: &str) -> Rect {
|
||||
let name = vectorcraft_tools::tool_info(tool).unwrap().label;
|
||||
self.nodes
|
||||
.iter()
|
||||
.find(|n| {
|
||||
n.role() == egui::accesskit::Role::Button
|
||||
&& n.toggled().is_some()
|
||||
&& n.label().is_some_and(|l| l == name || l.starts_with(&format!("{name} (")))
|
||||
})
|
||||
.and_then(access_rect)
|
||||
.unwrap_or_else(|| panic!("tool {tool} is drawn"))
|
||||
}
|
||||
|
||||
fn click_at(&mut self, at: Pos2, button: egui::PointerButton) {
|
||||
let event = |pressed| Event::PointerButton { pos: at, button, pressed, modifiers: egui::Modifiers::NONE };
|
||||
self.frame(vec![Event::ModifiersChanged(egui::Modifiers::NONE), Event::PointerMoved(at), event(true)]);
|
||||
self.frame(vec![event(false)]);
|
||||
self.frame(vec![]);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn compact_tools_toggle_roundtrip_and_columns_keep_the_selected_tool() {
|
||||
let _case = CASE.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let _language = Language::english();
|
||||
let mut app = main_toolbar_app(false, None);
|
||||
app.select_tool("pen");
|
||||
assert_eq!(app.run("window.toolbarCompact", json!({})).unwrap(), true);
|
||||
assert!(compact_value(&app));
|
||||
assert_eq!(app.run("window.toolbarCompact", json!({"on": true})).unwrap(), true);
|
||||
app.run("window.toolbarColumns", json!({"double": true})).unwrap();
|
||||
assert!(compact_value(&app) && app.ui.toolbar_double);
|
||||
assert_eq!(app.session.tool_id(), "pen");
|
||||
app.ui = serde_json::from_value::<UiState>(serde_json::to_value(&app.ui).unwrap()).unwrap();
|
||||
assert!(compact_value(&app) && app.ui.toolbar_double, "saved preferences keep both independent choices");
|
||||
let mut frames = ToolbarFrames::new(app, 1600.0);
|
||||
let compact = frames.settled();
|
||||
assert!(compact.cells.iter().all(|r| near(r.width(), 30.0) && near(r.height(), 25.0)));
|
||||
assert_eq!(frames.app.session.tool_id(), "pen");
|
||||
assert_eq!(frames.app.run("window.toolbarCompact", json!({})).unwrap(), false);
|
||||
assert!(!compact_value(&frames.app));
|
||||
assert_eq!(frames.app.run("window.toolbarCompact", json!({"on": false})).unwrap(), false);
|
||||
let regular = frames.settled();
|
||||
assert!(regular.cells.iter().all(|r| near(r.width(), 36.0) && near(r.height(), 29.0)));
|
||||
assert_eq!(compact.tools, regular.tools);
|
||||
assert!(frames.app.ui.toolbar_double);
|
||||
assert_eq!(frames.app.session.tool_id(), "pen");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn compact_tools_actual_buttons_flyout_and_short_window_footer_work() {
|
||||
let _case = CASE.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let _language = Language::english();
|
||||
let mut frames = ToolbarFrames::new(main_toolbar_app(true, Some(true)), 1000.0);
|
||||
frames.settled();
|
||||
let pen = frames.tool_rect("pen").center();
|
||||
frames.click_at(pen, egui::PointerButton::Primary);
|
||||
assert_eq!(frames.app.session.tool_id(), "pen", "an actual compact tool hit target selects the tool");
|
||||
let rectangle = frames.tool_rect("rectangle").center();
|
||||
frames.click_at(rectangle, egui::PointerButton::Secondary);
|
||||
assert!(frames.app.ui.flyout.is_some());
|
||||
let flyout = frames.ctx.memory(|m| m.area_rect(egui::Id::unique("tool-flyout"))).unwrap();
|
||||
assert!(flyout.width() > 30.0 && flyout.height() > 25.0, "the actual grouped-tool flyout is drawn");
|
||||
|
||||
// A separate normal short window avoids retaining the flyout over the footer interaction.
|
||||
let mut short = ToolbarFrames::new(main_toolbar_app(true, Some(true)), 420.0);
|
||||
let top = short.settled();
|
||||
let before = short.named_rect("Edit Toolbar");
|
||||
assert!(before.bottom() > short.height, "this ordinary window actually needs scrolling: {before:?}");
|
||||
short.frame(vec![
|
||||
Event::PointerMoved(top.cells[0].center()),
|
||||
Event::MouseWheel {
|
||||
unit: egui::MouseWheelUnit::Point,
|
||||
delta: vec2(0.0, -2000.0),
|
||||
phase: egui::TouchPhase::Move,
|
||||
modifiers: egui::Modifiers::NONE,
|
||||
source: egui::MouseWheelSource::Unknown,
|
||||
},
|
||||
]);
|
||||
for _ in 0..24 {
|
||||
short.frame(vec![]);
|
||||
}
|
||||
let edit = short.named_rect("Edit Toolbar");
|
||||
assert!(edit.top() >= 0.0 && edit.bottom() <= short.height, "the actual footer scrolls into view: {edit:?}");
|
||||
let header = short.named_rect("Toggle single/double column");
|
||||
for label in ["Draw Normal (Shift+D)", "Draw Behind (Shift+D)", "Draw Inside (Shift+D)"] {
|
||||
let r = short.named_rect(label);
|
||||
assert!(
|
||||
r.left() >= header.left() - 0.01 && r.right() <= header.right() + 0.01,
|
||||
"footer fits within compact panel: {label} {r:?} in {header:?}"
|
||||
);
|
||||
}
|
||||
let behind = short.named_rect("Draw Behind (Shift+D)").center();
|
||||
short.click_at(behind, egui::PointerButton::Primary);
|
||||
assert_eq!(short.app.session.draw_mode, vectorcraft_engine::DrawMode::Behind);
|
||||
let edit = short.named_rect("Edit Toolbar").center();
|
||||
short.click_at(edit, egui::PointerButton::Primary);
|
||||
assert!(short.app.ui.tools_drawer, "the real footer button opens Edit Toolbar");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn compact_tools_advanced_and_edited_layouts_keep_their_tool_sets() {
|
||||
let _case = CASE.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let _language = Language::english();
|
||||
for advanced in [true, false] {
|
||||
let mut observations = vec![];
|
||||
for compact in [false, true] {
|
||||
let mut app = main_toolbar_app(true, Some(compact));
|
||||
if advanced {
|
||||
app.run("window.toolbarAdvanced", json!({})).unwrap();
|
||||
} else {
|
||||
app.run("toolbar.removeTool", json!({"tool": "selection"})).unwrap();
|
||||
}
|
||||
observations.push(ToolbarFrames::new(app, 1600.0).settled());
|
||||
}
|
||||
let regular = &observations[0];
|
||||
let compact = &observations[1];
|
||||
assert_eq!(regular.tools, compact.tools, "same Advanced/edited tool IDs, advanced={advanced}");
|
||||
assert_eq!(regular.cells.len(), compact.cells.len());
|
||||
assert!(compact.row_pitch.unwrap() < regular.row_pitch.unwrap());
|
||||
assert!(compact.column_pitch.unwrap() < regular.column_pitch.unwrap());
|
||||
assert!(compact.panel_width < regular.panel_width);
|
||||
if !advanced {
|
||||
assert!(!compact.tools.iter().any(|id| id == "selection"), "the user's main-toolbar edit remains");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn compact_tools_do_not_resize_named_toolbars_or_torn_off_strips() {
|
||||
let _case = CASE.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let _language = Language::english();
|
||||
let mut app = main_toolbar_app(false, Some(false));
|
||||
app.run("window.toolbar.new", json!({"name": "Named"})).unwrap();
|
||||
for tool in ["pen", "rectangle", "selection"] {
|
||||
app.run("toolbar.addTool", json!({"tool": tool, "toolbar": "Named"})).unwrap();
|
||||
}
|
||||
app.run("window.floatTools", json!({"tool": "rectangle", "floating": true})).unwrap();
|
||||
let mut frames = ToolbarFrames::new(app, 1000.0);
|
||||
frames.settled();
|
||||
// Existing observable egui Area IDs, matching the production areas; no private helper import.
|
||||
let named_id = egui::Id::unique(("custom-toolbar", "named".to_string()));
|
||||
let strip_id = egui::Id::unique(("tool-floating", "rectangle"));
|
||||
let before = frames.ctx.memory(|m| (m.area_rect(named_id).unwrap().size(), m.area_rect(strip_id).unwrap().size()));
|
||||
frames.app.run("window.toolbarCompact", json!({"on": true})).unwrap();
|
||||
frames.settled();
|
||||
let after = frames.ctx.memory(|m| (m.area_rect(named_id).unwrap().size(), m.area_rect(strip_id).unwrap().size()));
|
||||
assert_eq!(before, after, "the main Tools choice must not shrink the shared strip pitch or named-toolbar buttons");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn compact_tools_workspace_roundtrip_restores_density_and_legacy_defaults() {
|
||||
use vectorcraft_ui_egui::workspaces;
|
||||
|
||||
let _case = CASE.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let _language = Language::english();
|
||||
let mut app = main_toolbar_app(true, Some(true));
|
||||
app.select_tool("pen");
|
||||
let workspace = workspaces::capture(&app.ui, "Compact drawing");
|
||||
let saved = serde_json::to_value(workspace).unwrap();
|
||||
assert_eq!(saved["toolbarCompact"], true, "Workspace uses its existing camelCase wire convention");
|
||||
let restored: workspaces::Workspace = serde_json::from_value(saved.clone()).unwrap();
|
||||
app.run("window.toolbarCompact", json!({"on": false})).unwrap();
|
||||
app.run("window.toolbarColumns", json!({"double": false})).unwrap();
|
||||
workspaces::apply(&mut app.ui, &restored);
|
||||
assert!(compact_value(&app) && app.ui.toolbar_double, "applying the saved workspace restores both layout choices");
|
||||
assert_eq!(app.session.tool_id(), "pen", "workspace layout does not select another tool");
|
||||
let mut legacy = saved;
|
||||
legacy.as_object_mut().unwrap().remove("toolbarCompact");
|
||||
let legacy: workspaces::Workspace = serde_json::from_value(legacy).unwrap();
|
||||
workspaces::apply(&mut app.ui, &legacy);
|
||||
assert!(!compact_value(&app), "a workspace saved before this option restores the Comfortable default");
|
||||
assert!(app.ui.toolbar_double, "the older saved column choice is retained");
|
||||
assert_eq!(app.session.tool_id(), "pen");
|
||||
}
|
||||
@@ -757,6 +757,7 @@ macOS cursor delivery (#2292) is narrowed to a native host adapter using the exi
|
||||
were made in, and Window › Toolbars › Manage Toolbars renames, copies and deletes them; they dock in lanes along
|
||||
the window's left and right edges (`window.toolbar.dock`, `window.toolbar.float`).
|
||||
Inside the estimate below.
|
||||
- **Done (#7234):** Window > Toolbars > Compact Tools offers denser spacing and a narrower main Tools panel in one or two columns, docked or floating. The choice is remembered for Basic, Advanced and edited layouts without changing the selected tool, usual icon size or footer controls. The existing layout remains the default; named custom toolbars and tool flyouts retain their spacing. The G7 estimate is unchanged.
|
||||
- **Done (#1753):** a saved workspace keeps the width of the dock column.
|
||||
- **Done (#4135):** floating panels open in OS windows of their own on the desktop, so they can sit on another monitor; on the web and on Wayland they float inside the window.
|
||||
- **Done:** View › New View… and Edit Views… ([public source](https://helpx.adobe.com/illustrator/using/viewing-artwork.html)): a document keeps up to 25 named views (zoom, centre and rotation), saved with the file; every one is listed by name at the bottom of the View menu (`view.goto1`–`view.goto25`), and choosing one changes the current window to it. Edit Views… lists them to rename or delete, applied together on OK as one undo step (`view.saved.edit {edits}`); a file's views are checked when it opens. Estimate unchanged.
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
# Roadmap: milestones and what's next
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: M4: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, #8128; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: M1: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; M1: an Alt-drag in the Layers panel copies a row above or below its own place, #8237; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; M1: Layers panel Alt-drag shows the copy cursor, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: M7: Check Spelling modal dialog (Edit › Spelling › Check Spelling…), #4936; spell check complete; previously: PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; M10/G5: Neon & Glow built-in graphic style library (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); previously: Tech Circuit brush library, G5; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: PDF import: glyphs in a span with an empty ActualText come in as outlines, #6971; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: explicitly requested oversized editing artboard; Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: M10/G5: Energy Beams brush library; MCP docs list Energy Beams; previously minor: M10/G5: Skill Icons symbol library; MCP docs list Skill Icons; previously minor: M10/G5: Status Effects graphic style library; MCP docs catch-up for symbol libraries; previously minor: M10/G5: Inventory Icons built-in symbol library; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: M10/G5: Game HUD graphic style library; previously minor: resizable icon-strip flyouts and bottom-aligned panel footers, #5713; previously minor: M10/G5: Map Markers built-in symbol libLine truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: M4: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, #8128; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: M1: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; M1: an Alt-drag in the Layers panel copies a row above or below its own place, #8237; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; M1: Layers panel Alt-drag shows the copy cursor, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: M7: Check Spelling modal dialog (Edit › Spelling › Check Spelling…), #4936; spell check complete; previously: PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; M10/G5: Neon & Glow built-in graphic style library (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); previously: Tech Circuit brush library, G5; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: PDF import: glyphs in a span with an empty ActualText come in as outlines, #6971; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: explicitly requested oversized editing artboard; Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: M10/G5: Energy Beams brush library; MCP docs list Energy Beams; previously minor: M10/G5: Skill Icons symbol library; MCP docs list Skill Icons; previously minor: M10/G5: Status Effects graphic style library; MCP docs catch-up for symbol libraries; previously minor: M10/G5: Inventory Icons built-in symbol library; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: M10/G5: Game HUD graphic style library; Line truncated
|
||||
>
|
||||
> Oversized artboard import update (2026-11-12): Explicit editing-data import retains a single artboard beyond a capped 14,400 pt PDF page (#6865).
|
||||
>
|
||||
@@ -188,7 +188,7 @@ Gujarati interface follow-up (2026-11-14): the catalog and zero/one plural rule
|
||||
| M11 | Artboards & views (selected-set deletion shared by Artboards menu, trash and Properties, retaining artboard 1 when all are selected; Artboard deletion keys keep the first of an all-selected set and protect artwork; history prunes invalid indices while preserving valid multiselection (history tests and full workspace CI pass); click-to-fit objects with the Artboard tool (#1227), artboard escape routing and document setup modal handoff done; artboard panel/tool with Move Artwork for X/Y fields and Artboard Options, Trim View, middle-button pan, print tiling and the status bar's artboard navigator with synchronized Artboard tool selection done; Window › Arrange › Tile and Consolidate All Windows done; multiple windows, presentation polish) (cached canvas reprojection preserves scale during resize, rotation and DPI changes; regression-tested and contributor-confirmed 2026-10-19; estimates unchanged) (cached canvas dimensions match the renderer limit before cache-key creation, view construction and worker submission; regression-tested; estimates unchanged); status-bar pointer coordinates follow the active ruler origin and General units | 🟡; Artboard Options shares existing presets and orientation controls and can fit artwork without moving it; artwork fitting includes all drawn document art across artboards and off-board; artwork bounds are cached by active document and revision, and selection uses the shared bounds cache across artboards | 15–25 |
|
||||
| M12 | Advanced color & art (CMYK/ICC, separations, Gradient Mesh, Live Paint, Image Trace, Graphs) | 🟡 Gradient Mesh, Live Paint, Image Trace (junction-returning pieces retain their positioned boundaries; a simpler contour walk with identical output; an edge's sub-pixel shift is the same from either side; notches read only their own piece; collapsed loops keep few segments; large images trace with a warning; Auto Color keeps rare distinct colours; quick presets trace at once and the Image Trace button opens the adjustment controls; Properties reopens them; tiny fitted contours retain islands and holes; Create Strokes: exact crop EDT, Guo–Hall thinning and maximal-disc graph simplification; 15 presets, the 14 documented ones each with an enhanced version; Ignore Color, Shapes, Auto Grouping and Gradients options; measured in `image-trace-quality.md`; closed outlines retain their interior after straightening; the Flat Logo mode places edges to a fraction of a pixel, restores sharp corners, snaps lines and circles, and refuses gradients; live trace result bounds and selection highlights exclude the retained bitmap except in source-image views), Recolor Artwork, colour management (ICC, soft proofing, separations preview), Graphs (all 9 tools, Graph Data/Type, group-selected series colours persist through regenerate/save/open) done; Graph Design and Marker designs, Transpose and Switch x/y, `\|` label line breaks, the pie options, drop shadows, the legend across the top, overlapping widths, First Row/Column in Front, filled lines, kept label formatting and the Graph Data worksheet done; graph Column designs pending; Vector Halftone Preview keeps the selection box without drawing dot selection marks (#6369); Live Paint Bucket fills faces crossed in one drag (#6373) | 6–10 |
|
||||
| M13 | Automation (Actions ✅ record/playback, persisted; variables, scripting, batch) | 🟡 MCP `add_text` exposes existing vertical point, area and path type; `script.run` and File › Scripts › Other Script… run JavaScript files, and Window › Script Console shows their output; the script document model and batch work remain | 18–27 |
|
||||
| M14 | 1.0 polish (preferences, shortcut editor, workspaces, accessibility, packaging for all OSes) (status messages and readouts use stable responsive allocations sized for localized labels and ordinary coordinates; sample widths cached by language/unit/DPI; regression-tested and contributor-confirmed 2026-10-19; estimates unchanged) | 🟡 Icon-strip flyouts resize on their free edges and retain sizes (#5713); interim macOS cursor delivery (#2292) uses existing artwork and host-owned AppKit cursors; headless coverage only, native menu/focus/handback and display validation pending. Dock groups collapse to their tabs by a double-click on a tab (UI.8); Preferences › General › Constrain Angle acts for the arrow keys, Shift drags and new objects (#394, 2026-10-21); numeric-field pointer selection and focus regression-tested (#1326; a release more than 1 pt from the press keeps the caret, a tap within 1 pt selects all, #6659); RPM runtime capabilities and glibc floor checked (#1275; real-distro install/start-up pending), Eyedropper cursor with precise-setting checks (#1269), Preferences, shortcut editor (chords with Shift and a punctuation key fire as typed; other apps' text shortcut sets imported), workspaces (each keeps its layout changes until Reset <name>, UI.7), Window › Help Bar shown or hidden apart from the status bar and kept in saved workspaces, panels docked by dragging into any dock group (as tabs or a top/bottom split) or into the icon column, and closed from a dock tab's context menu (UI.6), a custom title bar on Windows/Linux with a Home button, content-sized dialogs, menus that scroll when longer than the window and macOS native menu dismissal done (M14.8), and native macOS save sheets with a Format menu (#866); titled PDF exports set `DisplayDocTitle` for viewers and accessibility checkers (#3646) and give the document language as the catalog's `/Lang` (#3644); accessibility and broader Windows/Linux packaging/QA pending; floating tab groups collapse into the side icon rail and opened rail panels fold back into it (#5925, in part), with pointer and native-window regression coverage; estimates unchanged; numeric spinner arrows keep repeating while held with the mouse (#6307); Swatches item context menus tested in all five views and rendered layouts inspected; Linux full CI passed, Windows engine baseline limitations documented (G12) | 18–28 |
|
||||
| M14 | 1.0 polish (preferences, shortcut editor, workspaces, accessibility, packaging for all OSes) (status messages and readouts use stable responsive allocations sized for localized labels and ordinary coordinates; sample widths cached by language/unit/DPI; regression-tested and contributor-confirmed 2026-10-19; estimates unchanged) | 🟡 Icon-strip flyouts resize on their free edges and retain sizes (#5713); interim macOS cursor delivery (#2292) uses existing artwork and host-owned AppKit cursors; headless coverage only, native menu/focus/handback and display validation pending. Dock groups collapse to their tabs by a double-click on a tab (UI.8); Preferences › General › Constrain Angle acts for the arrow keys, Shift drags and new objects (#394, 2026-10-21); numeric-field pointer selection and focus regression-tested (#1326; a release more than 1 pt from the press keeps the caret, a tap within 1 pt selects all, #6659); RPM runtime capabilities and glibc floor checked (#1275; real-distro install/start-up pending), Eyedropper cursor with precise-setting checks (#1269), Preferences, shortcut editor (chords with Shift and a punctuation key fire as typed; other apps' text shortcut sets imported), workspaces (each keeps its layout changes until Reset <name>, UI.7), Window › Help Bar shown or hidden apart from the status bar and kept in saved workspaces, panels docked by dragging into any dock group (as tabs or a top/bottom split) or into the icon column, and closed from a dock tab's context menu (UI.6), a custom title bar on Windows/Linux with a Home button, content-sized dialogs, menus that scroll when longer than the window and macOS native menu dismissal done (M14.8), and native macOS save sheets with a Format menu (#866); titled PDF exports set `DisplayDocTitle` for viewers and accessibility checkers (#3646) and give the document language as the catalog's `/Lang` (#3644); accessibility and broader Windows/Linux packaging/QA pending; floating tab groups collapse into the side icon rail and opened rail panels fold back into it (#5925, in part), with pointer and native-window regression coverage; estimates unchanged; numeric spinner arrows keep repeating while held with the mouse (#6307); Swatches item context menus tested in all five views and rendered layouts inspected; Linux full CI passed, Windows engine baseline limitations documented (G12); Window > Toolbars > Compact Tools offers optional denser main Tools spacing in one or two columns, with the existing layout still the default (#7234) | 18–28 |
|
||||
| — | Interaction fidelity pass (every tool's modifiers, Properties panel per context, isolation, nuance; width-point creation and adjoining adjustment regression-tested; dialog layout reviewed) | ⬜ (new ruler-guide Alt orientation implemented; existing-guide Escape cancellation regression-tested; broader pass remains) | 60–90 |
|
||||
| — | Hardening at scale (big-file corpus, fuzzing, cross-platform + browser QA) | 🟡 PngSuite integrity and bounded fetching verified (#1729); real-world corpus/manual QA remain | 50–80 |
|
||||
| M14 follow-up | Color Picker layout (#2008) | ✅ Compact controls, centered header, stacked actions, aligned fields and screen sampling; narrow windows scroll vertically | Included above |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Parity with Adobe Illustrator
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: SVG export preserves document units on root width/height for physical units, #864; G11 estimate 8–15 → 6–13 h; previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: #8128: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, so the compound clipping path clips its clipping group; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Twist: a strongly twisted path joins its pieces without kinks, #7069; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; Layers panel: Alt over the list shows the copy cursor while rows or the selection square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Properties panel: the Character section shows the font of the Type tool's selection, not the first run's (#8189); scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: Paragraph composers (#4935): the Paragraph panel menu and paragraph styles offer four composers, the Middle Eastern & South Asian Single-line and Every-line (how all type is set, and the default) and a Standard Single-line and Every-line that set Indic, Arabic and Hebrew type glyph by glyph as the font maps it, for legacy fonts that keep a script on Latin character codes; PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; G5: Neon & Glow joins built-in graphic style libraries (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); scores and estimates unchanged; previously: Pencil ignores Smart Guides and Snap to Point and shows no Smart Guides, #7252; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: G5: Weather Icons joins built-in symbol libraries (Sun, Moon, Cloud, Rain, Thunder, Snow); scores and estimates unchanged; previously: a closed Pencil stroke closes with a straight segment; previously: Snap to Point wiLine truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: SVG export preserves document units on root width/height for physical units, #864; G11 estimate 8–15 → 6–13 h; previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: #8128: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, so the compound clipping path clips its clipping group; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Twist: a strongly twisted path joins its pieces without kinks, #7069; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; Layers panel: Alt over the list shows the copy cursor while rows or the selection square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Properties panel: the Character section shows the font of the Type tool's selection, not the first run's (#8189); scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: Paragraph composers (#4935): the Paragraph panel menu and paragraph styles offer four composers, the Middle Eastern & South Asian Single-line and Every-line (how all type is set, and the default) and a Standard Single-line and Every-line that set Indic, Arabic and Hebrew type glyph by glyph as the font maps it, for legacy fonts that keep a script on Latin character codes; PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; G5: Neon & Glow joins built-in graphic style libraries (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); scores and estimates unchanged; previously: Pencil ignores Smart Guides and Snap to Point and shows no Smart Guides, #7252; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: G5: Weather Icons joins built-in symbol libraries (Sun, Moon, Cloud, RainLine truncated
|
||||
>
|
||||
> Tech Circuit update (2026-11-14): three original procedural brushes; ten built-in brush libraries (G5).
|
||||
>
|
||||
@@ -622,6 +622,8 @@ since 2026-10-01.
|
||||
|
||||
- **Recolor picker follow-up (#8031/#4028):** native Lab numeric entry, document/loaded-library swatches in the Color Picker, and Assign-row Pick from Swatches / Limit to Library menus. #4090 provided the double-click picker and #5113 the Assign sliders. Regression tests `native_lab_entry_in_color_picker` and `row_context_menu_pick_from_swatches_and_limit_to_library` exercise the fields and menu callbacks rather than writing their result state. Area score and hours unchanged.
|
||||
|
||||
- **Optional compact Tools (#7234):** Window > Toolbars > Compact Tools reduces row and column spacing and the main panel's allocated width in one or two columns, docked or floating. The setting is saved with the UI state and applies to Basic, Advanced and edited main Tools layouts; the selected tool, icon size, footer controls and tool-flyout behavior are retained. Turning it off restores the existing layout, which remains the default. Named custom toolbars and flyout spacing are unchanged. Public regressions in `crates/ui-egui/tests/toolbar_compact.rs` cover the actual toolbar layout against the default control, the command and saved-state roundtrip, tool selection, flyouts, footer controls and short-window reachability. This is an optional layout choice, without a styling-parity or score claim; hours are unchanged.
|
||||
|
||||
- **Save refusal (#6146):** ordinary File > Save to its own location offers Save As after a terminal permission/read-only refusal, suggesting the original name and format, preserving options for the unchanged format and opening the chosen format’s Save options on a change. Cancel keeps the failed-save state. Busy pickers, recovery-copy errors, other failures, explicit destinations and Close/Quit keep the existing dialog. Engine, UI and MCP regression cases are in `cmd/fileio/tests_readonly.rs`, `io/tests_read_only_save.rs` and MCP `tests/fileio.rs`; focused UI regressions passed; engine regression execution and native panel acceptance pending. Scores and hours unchanged.
|
||||
|
||||
**Selection fill eligibility (#6625):** Path and compound-path interiors use any enabled non-None fill row (#6625). A lower visible fill remains selectable beneath a top None row in the same object; hidden-only and true-None interiors miss. Zero-opacity fills remain selectable. Original CPU-render and document-hit regressions in `crates/engine/tests/path_fill_hits.rs` cover seven Path and five Compound cases, including stroke edges, geometric outlines, Outline/path-only modes and compound holes. Hidden-fill and no-fill stroked paths must respect butt, round and square caps and bevel, round and miter joins. Focused cap/join CPU regressions passed. Scores and estimates unchanged.
|
||||
@@ -3077,6 +3079,7 @@ Edit › Copy and Cut put the selected ruler guides on the clipboard, with the s
|
||||
| 2026-11-14 | minor | Paragraph composers (#4935): `text.setFormat {composer}` and paragraph styles take `singleLine` and `everyLine` (the Middle Eastern & South Asian composers, what all type used and the default) and `standardSingleLine` and `standardEveryLine`, which break lines the same way and set a complex script (Indic, Arabic, Hebrew) glyph by glyph as the font maps its characters, with no conjuncts, reordering, marks placed or joining forms. The choice is per paragraph, saved in the native file only when it is not Every-line, and not written to `.ai`, EPS or PDF files, whose composer setting this app has no recorded format for. Scores and estimates unchanged. Tests `tests::composers`. |
|
||||
| 2026-11-14 | minor | Direct Selection: Space during an ordinary path's direction-handle drag moves its anchor and both handles; releasing Space resumes handle adjustment, and a Cmd/Ctrl loan preserves Pen continuation (#7237, request 3 only). Handle-hover labels remain open; scores and estimates unchanged. |
|
||||
| 2026-11-14 | minor | Color panel: the spectrum names its displayed mode on hover, including after Shift-click mode changes and with Hide Options enabled (part of #7235). Spectrum rendering and vertical resizing remain open. Scores and estimates unchanged. |
|
||||
| 2026-11-14 | minor | Window > Toolbars > Compact Tools adds an optional denser main Tools layout in one or two columns, docked or floating; Basic, Advanced and edited tools keep their icons and controls, and the existing layout remains the default (#7234). Scores and estimates unchanged. |
|
||||
| 2026-11-14 | minor | G5: Weather Icons joins Basic Shapes, UI Frames, Map Markers, Inventory Icons and Skill Icons as a sixth built-in symbol library (Sun, Moon, Cloud, Rain, Thunder, Snow; original procedural vector symbols generated in code, no default 9-slice); area score and estimate unchanged. |
|
||||
| 2026-11-14 | minor | Tech Circuit adds three original procedural brushes (Circuit Trace, Bus Lines, Terminal Nodes); ten built-in brush libraries. G5 remaining estimate 3–13 h (estimated); parity scores and headline totals unchanged. |
|
||||
| 2026-11-15 | minor | G12: Swatches item menus validated in all five views: 39 focused tests passed, regression fails without the menu hooks, rendered list/thumbnail layouts inspected, and fresh local deep CodeRabbit review found zero issues. Full workspace CI passed on Linux/WSL on the merged branch (all 13 gates), including the test-helper correction for the upstream compile error tracked in #7727; native Windows full CI has two unchanged engine-test failures. Scores and estimates unchanged. |
|
||||
|
||||
+4
-2
@@ -1,6 +1,6 @@
|
||||
# UI and interaction parity
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); scores and estimates unchanged; previously: Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Layers panel: Alt over the list shows the copy cursor while rows or the selected-art square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: macOS: the canvas cursor stays after the pointer moves, #6362; scores and estimates unchanged; previously minor: Remove Background in the Contextual Task Bar, Properties › Quick Actions and the Control bar; previously minor: Ruler origin: the corner drag snaps as a drawn point does; previously minor: Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: Outline view: images and gradient meshes are picked on what Outline draws, so a click inside them reaches the path behind, #6437; previously minor: a middle-click on a document tab closes it, #6506; previously minor: Blob Brush: a round tip's preview is the outline of the area it adds, round at both ends, as the stroke it commits (#4343); scores and estimates unchanged; previously:; ruler double-click adds a guide at the pointer, #5239; G5: Inventory Icons built-in symbol library (four built-ins); previously minor: files that record no units open in Preferences › Units › General, #5820; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged;Line truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); scores and estimates unchanged; previously: Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Layers panel: Alt over the list shows the copy cursor while rows or the selected-art square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: macOS: the canvas cursor stays after the pointer moves, #6362; scores and estimates unchanged; previously minor: Remove Background in the Contextual Task Bar, Properties › Quick Actions and the Control bar; previously minor: Ruler origin: the corner drag snaps as a drawn point does; previously minor: Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: Outline view: images and gradient meshes are picked on what Outline draws, so a click inside them reaches the path behind, #6437; previously minor: a middle-click on a document tab closes it, #6506; previously minor: Blob Brush: a round tip's preview is the outline of the area it adds, round at both ends, as the stroke it commits (#4343); scores and estimates unchanged; previously:; ruler double-click adds a guide at the pointer, #5239; G5: Inventory Icons built-in symbol library (four built-ins); previously minor: files that record no units open in Preferences › Units › General, #5820; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned Line truncated
|
||||
>
|
||||
> Tech Circuit update (2026-11-14): three original procedural brushes; ten built-in brush libraries (G5).
|
||||
>
|
||||
@@ -456,7 +456,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
|
||||
| Image Trace panel: holding the eye button next to View down shows the selected Image Trace objects' source image on the canvas | done | Per the public documentation, the control next to View is pressed and held to compare the trace result with the source image (<https://web.archive.org/web/20250831090623/https://helpx.adobe.com/illustrator/using/image-trace.html>). On release the objects show their View again; the document, its View and the undo history are unchanged. `RenderOptions::trace_source`; `panels/image_trace.rs` headless test `holding_the_eye_button_shows_the_source_image_until_released`, render test `trace_source_draws_the_source_image_of_the_listed_objects`. The Control bar and Properties have no such button |
|
||||
| Live trace result bounds and selection highlights exclude the retained bitmap; source-image views retain it | done | All TraceView modes and rotated result bounds regression-covered; ordinary hidden group behavior retained |
|
||||
| Image Trace panel: the Preview checkbox before Trace chooses whether a setting change traces the selected Image Trace object again at once | done | Per the public documentation, Preview shows the result of the current settings and Trace traces with them (<https://web.archive.org/web/20250831090623/https://helpx.adobe.com/illustrator/using/image-trace.html>). Preview is on by default and kept with the UI preferences; Reset to Default leaves it. Off, changes wait in the panel until Trace applies them as one undo step, or until Preview is turned on again. Changes stay with the object they were made for while another object is selected, and come back when it is selected again. `imageTrace.preview {on?}`, `ui.set {imageTracePreview}`; `panels/image_trace.rs` headless tests (`with_preview_off_a_slider_change_waits_for_trace`, `turning_preview_on_traces_the_changes_that_waited`, `preview_turned_on_with_nothing_selected_traces_when_the_object_is_selected_again`, `settings_that_wait_stay_with_their_object`, `settings_that_wait_come_back_when_their_object_is_selected_again`, `settings_that_wait_are_dropped_when_their_object_changed_since`, `preview_is_kept_with_the_preferences_and_reset_to_default_leaves_it`) |
|
||||
| Toolbar without group labels by default, one or two columns; All Tools drawer by flyout group with shortcuts, its menu (Reset, Basic, Advanced) and Show section | done | #1751; a preference brings the labels back; `toolbar.show` sets the Fill/Stroke, Coloring, Draw Mode and Screen Mode controls |
|
||||
| Toolbar without group labels by default, one or two columns; All Tools drawer by flyout group with shortcuts, its menu (Reset, Basic, Advanced) and Show section | done | #1751; a preference brings the labels back; `toolbar.show` sets the Fill/Stroke, Coloring, Draw Mode and Screen Mode controls; Window > Toolbars > Compact Tools adds optional denser spacing for the main Tools panel while retaining the existing default (#7234) |
|
||||
| Actions panel: ≡ › Save Actions… saves the current set with all its actions to a file and ≡ › Load Actions… adds a saved set ([Manage a set of actions](https://helpx.adobe.com/illustrator/desktop/automate-visualize-data/automate-actions/manage-a-set-of-actions.html)) | done | `ui.actionSet.save`, `ui.actionSet.load`; `panels/actions.rs` tests. The file is VectorCraft's own `.vcactions` JSON |
|
||||
| Actions panel: ≡ › Replace Actions… puts the set of a saved file in place of every set in the panel ([the help page](https://helpx.adobe.com/illustrator/desktop/automate-visualize-data/automate-actions/actions-panel-overview.html)) | done | `ui.actionSet.replace`; `panels/actions.rs` tests. The file is read as Load Actions… reads it; the item asks no question first |
|
||||
| Actions panel: ≡ › Clear Actions deletes every set loaded in the panel ([the help page](https://helpx.adobe.com/illustrator/desktop/automate-visualize-data/automate-actions/actions-panel-overview.html)) | done | `ui.actionSet.clear`; `panels/actions.rs` tests. The item asks first, and the built-in Default Actions set goes too |
|
||||
@@ -552,6 +552,8 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
|
||||
|
||||
## Look and feel
|
||||
|
||||
- [x] Optional Compact Tools in Window > Toolbars reduces spacing and panel width for the main Tools panel in one or two columns, docked or floating, without changing its icon size or usual tools. The choice persists across Basic, Advanced and edited layouts; turning it off restores the default layout. Named custom toolbars and tool-flyout spacing remain unchanged. `crates/ui-egui/tests/toolbar_compact.rs` covers the layout/default control, command/state roundtrip and retained interactions (#7234). No broader styling-parity or score change.
|
||||
|
||||
- [x] Home screen (part of #4684, shared UI with PhotoCraft): the welcome, New / Open buttons and Community block are centred, and the large Discord button takes the theme's accent instead of Discord's colour; the layout and wording of the preset cards and Recent Files are unchanged. Still open from #4684: shortcut hints on the buttons, PhotoCraft's PRO and STUDIO themes, the Preferences layout (search box, theme swatches, Apply) and the title bar.
|
||||
|
||||
- [x] Recolor Artwork › Assign: double-click a row's new color to pick it in the Color Picker, in the model it was picked in, with native Lab entry, swatch libraries access in the picker, and row context menu options (Pick from Swatches, Limit to Library) (#8031, follow-up to #4090/#5113 for #4028). Evidence: `native_lab_entry_in_color_picker` and `row_context_menu_pick_from_swatches_and_limit_to_library` exercise numeric entry and actual menu clicks.
|
||||
|
||||
Reference in new issue
Block a user