Merge pull request #8031 from ruchirguitar/feat/4028-recolor-lab-swatches

feat(ui): recolor lab entry and swatch libraries access (#4028)
This commit is contained in:
BFlat
2026-11-16 21:48:33 +07:00
committed by GitHub
8 changed files with 303 additions and 56 deletions
+93 -40
View File
@@ -16,16 +16,18 @@
use egui::{Rect, Sense, Ui, vec2};
use serde_json::{Value, json};
use vectorcraft_color::cms::{self, Lab};
use vectorcraft_color::cms;
use vectorcraft_color::{Color, Paint};
use vectorcraft_doc::ColorMode;
use vectorcraft_engine::cmd::color_value;
use vectorcraft_engine::cmd::swatchlib;
use super::form::PREVIEWED;
use super::{DialogAction, DialogSpec};
use crate::panels::color::{
GAMUT_WARNING, WEB_WARNING, gamut_fix, hex_digits, is_web_safe, parse_hex, warning_chip, web_safe, working_hsb, working_rgb,
};
use crate::panels::swatches::{DOCUMENT_SWATCHES, colour_libraries};
use crate::panels::{c32, color_json};
use crate::state::Dialog;
use crate::theme::Tokens;
@@ -290,11 +292,22 @@ const RECOLOR_ROW: &str = "__recolorRow";
/// The Color Picker over the Recolor Artwork dialog `parent`, on `color`, the new color of row
/// `row`: it previews nothing itself, its OK goes back to `parent` with the row's new color set
/// ([`super::recolor::with_new_color`]) and its Cancel goes back to `parent` as it was.
pub(super) fn over_recolor(parent: &Dialog, color: Color, row: usize) -> Dialog {
let mut d = Dialog::new(
KIND,
json!({"original": color_json(&color), "channel": Channel::default().id(), "webOnly": false, "swatches": false, RECOLOR_ROW: row}),
);
/// When `swatches` is true, the picker opens showing the Swatches view.
pub(super) fn over_recolor(parent: &Dialog, color: Color, row: usize, swatches: bool) -> Dialog {
let mut fields = json!({
"original": color_json(&color),
"channel": Channel::default().id(),
"webOnly": false,
"swatches": swatches,
RECOLOR_ROW: row,
});
let lib = parent.str("limitTo");
if !lib.is_empty()
&& let Some(object) = fields.as_object_mut()
{
object.insert("library".into(), json!(lib));
}
let mut d = Dialog::new(KIND, fields);
d.fields.insert(super::PARENT.into(), serde_json::to_value(parent).unwrap_or_default());
store(&mut d, &Picked::of(color));
d.fields.insert(crate::screen_color::PICKER_ID.into(), json!(crate::screen_color::picker_id()));
@@ -378,10 +391,10 @@ fn body(app: &mut VectorcraftApp, ui: &mut Ui, d: &mut Dialog) -> DialogAction {
ui.with_layout(layout, |ui| {
ui.spacing_mut().item_spacing.x = 0.0;
ui.allocate_ui_with_layout(vec2(side + SLIDER_GAP + SLIDER_W, side), egui::Layout::top_down(egui::Align::Min), |ui| {
ui.horizontal_top(|ui| {
if swatches {
pick = swatch_list(app, ui, &p.color, side).map(Picked::of);
} else {
if swatches {
pick = swatch_list(app, ui, d, &p.color, side).map(Picked::of);
} else {
ui.horizontal_top(|ui| {
let (z, x, y) = field_pos(channel, &p);
let at = |x: f32, y: f32| c32(&field_pick(channel, z, x, y).snapped(web).color);
if let (Some((x, y)), _) =
@@ -398,8 +411,8 @@ fn body(app: &mut VectorcraftApp, ui: &mut Ui, d: &mut Dialog) -> DialogAction {
{
pick = Some(field_pick(channel, z, x, y));
}
}
});
});
}
ui.add_space(8.0);
if widgets::check(ui, tl!("Only Web Colors"), web, true) {
d.fields.insert("webOnly".into(), json!(!web));
@@ -612,7 +625,7 @@ fn value_fields(ui: &mut Ui, p: &Picked, channel: Channel) -> (Option<Picked>, O
edit = Some(Picked::of(if i < 3 {
let mut l = [lab.l, lab.a, lab.b];
l[i] = if i == 0 { nv.clamp(0.0, 100.0) } else { nv.clamp(-128.0, 127.0) };
cms.from_lab(Lab::new(l[0], l[1], l[2]))
Color::lab(l[0], l[1], l[2])
} else {
let mut k = cmyk;
k[i - 3] = (nv / 100.0).clamp(0.0, 1.0);
@@ -626,37 +639,77 @@ fn value_fields(ui: &mut Ui, p: &Picked, channel: Channel) -> (Option<Picked>, O
(edit, chosen)
}
/// The document's colour swatches as a list; returns the clicked swatch's colour.
fn swatch_list(app: &VectorcraftApp, ui: &mut Ui, current: &Color, side: f32) -> Option<Color> {
/// The document's colour swatches or a swatch library as a list; returns the clicked swatch's colour.
fn swatch_list(app: &VectorcraftApp, ui: &mut Ui, d: &mut Dialog, current: &Color, side: f32) -> Option<Color> {
let t = Tokens::get(ui.ctx());
let mut chosen = None;
ui.allocate_ui(vec2(side + SLIDER_GAP + SLIDER_W, side), |ui| {
ui.set_min_size(vec2(side + SLIDER_GAP + SLIDER_W, side));
let list_w = side + SLIDER_GAP + SLIDER_W;
ui.allocate_ui_with_layout(vec2(list_w, side), egui::Layout::top_down(egui::Align::Min), |ui| {
ui.set_min_size(vec2(list_w, side));
let libs = colour_libraries(app);
let keys: Vec<&str> = [swatchlib::DOCUMENT_SWATCHES].into_iter().chain(libs.iter().map(|l| l.id.as_str())).collect();
let names: Vec<&str> = [DOCUMENT_SWATCHES].into_iter().chain(libs.iter().map(|l| l.name.as_str())).collect();
let builtin = |k: usize| k.checked_sub(1).is_none_or(|i| libs.get(i).is_some_and(|l| l.submenu.is_none()));
let shown = super::shown_names(crate::i18n::current(), &names, builtin);
let cur = d.str("library");
let cur = if cur.is_empty() { swatchlib::DOCUMENT_SWATCHES } else { &cur };
let at = keys.iter().position(|k| *k == cur).unwrap_or(0);
let current_label = shown.get(at).copied().unwrap_or_default();
if let Some(i) = widgets::dropdown_names(ui, "cp-library", current_label, &shown, list_w)
&& let Some(&k) = keys.get(i)
{
d.fields.insert("library".into(), json!(k));
}
ui.add_space(4.0);
widgets::list_box(ui, |ui| {
egui::ScrollArea::vertical().id_salt("cp-swatches").max_height((side - 8.0).max(1.0)).show(ui, |ui| {
ui.set_width(side + SLIDER_GAP + SLIDER_W - 8.0);
let Some(st) = app.session.active() else {
widgets::dim_label(ui, tl!("Open a document to see its swatches."));
return;
};
let doc = &st.doc;
for s in doc.swatches.iter().chain(doc.swatch_groups.iter().flat_map(|g| g.swatches.iter())) {
let Paint::Solid { color, .. } = &s.paint else { continue };
let (r, resp) = ui.allocate_exact_size(vec2(ui.available_width(), 20.0), Sense::click());
if resp.hovered() {
ui.painter().rect_filled(r, 0.0, t.hover);
let max_h = (side - 28.0).max(1.0);
egui::ScrollArea::vertical().id_salt("cp-swatches").max_height(max_h).show(ui, |ui| {
ui.set_width(list_w - 8.0);
let cur = d.str("library");
if cur.is_empty() || cur == swatchlib::DOCUMENT_SWATCHES {
let Some(st) = app.session.active() else {
widgets::dim_label(ui, tl!("Open a document to see its swatches."));
return;
};
let doc = &st.doc;
for s in doc.swatches.iter().chain(doc.swatch_groups.iter().flat_map(|g| g.swatches.iter())) {
let Some(color) = s.paint.color() else { continue };
let (r, resp) = ui.allocate_exact_size(vec2(ui.available_width(), 20.0), Sense::click());
if resp.hovered() {
ui.painter().rect_filled(r, 0.0, t.hover);
}
let chip = Rect::from_min_size(r.left_center() + vec2(4.0, -7.0), vec2(14.0, 14.0));
widgets::swatch_tile(ui, chip, &s.paint, color == *current, false);
ui.painter().text(
egui::pos2(chip.right() + 8.0, r.center().y),
egui::Align2::LEFT_CENTER,
&s.name,
egui::FontId::proportional(12.0),
t.text,
);
if resp.clicked() {
chosen = Some(color);
}
}
let chip = Rect::from_min_size(r.left_center() + vec2(4.0, -7.0), vec2(14.0, 14.0));
widgets::swatch_tile(ui, chip, &s.paint, color == current, false);
ui.painter().text(
egui::pos2(chip.right() + 8.0, r.center().y),
egui::Align2::LEFT_CENTER,
&s.name,
egui::FontId::proportional(12.0),
t.text,
);
if resp.clicked() {
chosen = Some(*color);
} else if let Some((_, lib)) = swatchlib::library(&app.session, &cur) {
for s in lib.swatches.iter().chain(lib.groups.iter().flat_map(|g| g.swatches.iter())) {
let Some(color) = s.paint.color() else { continue };
let (r, resp) = ui.allocate_exact_size(vec2(ui.available_width(), 20.0), Sense::click());
if resp.hovered() {
ui.painter().rect_filled(r, 0.0, t.hover);
}
let chip = Rect::from_min_size(r.left_center() + vec2(4.0, -7.0), vec2(14.0, 14.0));
widgets::swatch_tile(ui, chip, &s.paint, color == *current, false);
ui.painter().text(
egui::pos2(chip.right() + 8.0, r.center().y),
egui::Align2::LEFT_CENTER,
&s.name,
egui::FontId::proportional(12.0),
t.text,
);
if resp.clicked() {
chosen = Some(color);
}
}
}
});
@@ -774,3 +774,47 @@ fn compact_picker_shrinks_then_scrolls_without_enlarging_the_window() {
assert!(app.ui.dialog.is_none());
}
}
/// Type all three Lab components through the numeric fields, then apply the picked color.
#[test]
fn native_lab_entry_in_color_picker() {
use egui::accesskit::Role;
use egui_kittest::kittest::Queryable;
let mut app = app();
app.run("ui.colorPicker", json!({"color": {"l": 50, "a": 0, "b": 0}})).unwrap();
let mut first = true;
let builder = egui_kittest::Harness::builder().with_size(screen());
let builder = if std::env::var_os("VECTORCRAFT_RECOLOR_CAPTURE_DIR").is_some() { builder.wgpu() } else { builder };
let mut h = builder.build_ui_state(
move |ui, app: &mut VectorcraftApp| {
if std::mem::replace(&mut first, false) {
crate::theme::install_fonts(ui.ctx());
return;
}
super::super::show(app, ui.ctx());
},
app,
);
h.run_steps(4);
for (label, text) in [("L", "70"), ("a", "-25"), ("b", "40")] {
h.get_by_role_and_label(Role::TextInput, label).focus();
h.run_steps(2);
h.key_press_modifiers(egui::Modifiers { ctrl: true, command: true, ..Default::default() }, egui::Key::A);
h.get_by_role_and_label(Role::TextInput, label).type_text(text);
h.key_press(egui::Key::Tab);
h.run_steps(2);
assert!(matches!(picked(h.state().ui.dialog.as_ref().unwrap()).color, Color::Lab { .. }), "{label} keeps Lab");
}
let expected = Color::lab(70.0, -25.0, 40.0);
assert_eq!(picked(h.state().ui.dialog.as_ref().unwrap()).color, expected);
if let Some(dir) = std::env::var_os("VECTORCRAFT_RECOLOR_CAPTURE_DIR") {
let dir = std::path::PathBuf::from(dir);
std::fs::create_dir_all(&dir).unwrap();
h.render().unwrap().save(dir.join("picker-lab.png")).unwrap();
}
h.get_by_role_and_label(Role::Button, "OK").click();
h.run_steps(2);
assert!(h.state().ui.dialog.is_none());
assert_eq!(crate::panels::current_paints(h.state()).0.color(), Some(expected));
}
+56 -6
View File
@@ -799,8 +799,11 @@ fn body(app: &mut VectorcraftApp, ui: &mut Ui, d: &mut Dialog) -> bool {
None => form::preview(app, ui, d, "Recolor Artwork", CMD, apply_params(d)),
}
}
if let Some(c) = pick.and_then(|i| Some((i, to_color(rows(d).get(i)?)?))) {
*d = super::color_picker::over_recolor(d, c.1, c.0);
if let Some((i, swatches)) = pick
&& let Some(row) = rows(d).get(i)
{
let c = to_color(row).or_else(|| from_colors(row).first().copied()).unwrap_or_default();
*d = super::color_picker::over_recolor(d, c, i, swatches);
}
false
}
@@ -868,8 +871,8 @@ fn chip(ui: &Ui, r: Rect, c: Color, dim: bool) {
}
/// The Assign tab. Returns true when the rows changed, and the row whose new colour was
/// double-clicked.
fn assign_tab(app: &mut VectorcraftApp, ui: &mut Ui, d: &mut Dialog, rows: &mut Vec<Value>) -> (bool, Option<usize>) {
/// double-clicked or chosen via "Pick from Swatches" (with `true` for swatches view).
fn assign_tab(app: &mut VectorcraftApp, ui: &mut Ui, d: &mut Dialog, rows: &mut Vec<Value>) -> (bool, Option<(usize, bool)>) {
let t = Tokens::get(ui.ctx());
let mut changed = false;
let total: usize = rows.iter().map(|r| r["from"].as_array().map_or(0, Vec::len)).sum();
@@ -907,7 +910,8 @@ fn assign_tab(app: &mut VectorcraftApp, ui: &mut Ui, d: &mut Dialog, rows: &mut
});
let mut sel = selection(d);
let mut clicked: Option<usize> = None;
let mut pick: Option<usize> = None;
let mut pick: Option<(usize, bool)> = None;
let mut limit_to: Option<String> = None;
let shown: Vec<Color> = rows.iter().map(|r| new_shown(app, d, r)).collect();
widgets::list_box(ui, |ui| {
egui::ScrollArea::vertical().id_salt("recolor-rows").max_height(TABLE_H).show(ui, |ui| {
@@ -956,7 +960,7 @@ fn assign_tab(app: &mut VectorcraftApp, ui: &mut Ui, d: &mut Dialog, rows: &mut
clicked = Some(i);
}
if nresp.double_clicked() && has_new {
pick = Some(i);
pick = Some((i, false));
}
ui.add_space(6.0);
let hex = if has_new { crate::panels::color::hex_digits(&to) } else { String::new() };
@@ -967,6 +971,40 @@ fn assign_tab(app: &mut VectorcraftApp, ui: &mut Ui, d: &mut Dialog, rows: &mut
set_to(row, &keep_model(to, c));
changed = true;
}
let mut row_menu = |ui: &mut Ui| {
if widgets::menu_item(ui, tl!("Pick from Swatches"), true, false) {
pick = Some((i, true));
ui.close();
}
ui.menu_button(tl!("Limit to Library"), |ui| {
let cur = d.str("limitTo");
if widgets::menu_item(ui, tl!("None"), true, cur.is_empty()) {
limit_to = Some("".to_string());
ui.close();
}
ui.separator();
if let Some(k) = crate::panels::swatches::library_list(app, ui, &cur) {
limit_to = Some(k);
ui.close();
}
});
};
if (cr.secondary_clicked() || nresp.secondary_clicked()) && !sel.contains(&i) {
clicked = Some(i);
}
cr.context_menu(&mut row_menu);
nresp.context_menu(&mut row_menu);
let empty_w = ui.available_width();
if empty_w > 0.0 {
let (_, empty_resp) = ui.allocate_exact_size(vec2(empty_w, 20.0), Sense::click());
if empty_resp.clicked() {
clicked = Some(i);
}
if empty_resp.secondary_clicked() && !sel.contains(&i) {
clicked = Some(i);
}
empty_resp.context_menu(&mut row_menu);
}
});
if sel.contains(&i) {
ui.painter().set(bg, egui::Shape::rect_filled(r.response.rect.expand2(vec2(2.0, 1.0)), 2.0, t.row_selected));
@@ -974,6 +1012,10 @@ fn assign_tab(app: &mut VectorcraftApp, ui: &mut Ui, d: &mut Dialog, rows: &mut
}
});
});
if let Some(k) = limit_to {
d.fields.insert("limitTo".into(), json!(k));
changed = true;
}
if let Some(i) = clicked {
let m = ui.input(|i| i.modifiers);
match sel.iter().position(|s| *s == i) {
@@ -2176,6 +2218,14 @@ mod tests {
crate::dialogs::confirm(&mut app).unwrap();
let to = super::rows(app.ui.dialog.as_ref().unwrap())[i]["to"].clone();
assert!(to.as_str().is_some_and(|k| k.starts_with("cmyk ")), "a color picked as RGB is CMYK in a CMYK document: {to}");
let rect = settled(&mut app, &ctx, 3.0, i).unwrap();
double_click(&mut app, &ctx, rect, 3.1, i);
let d = app.ui.dialog.as_mut().unwrap();
d.fields.insert("color".into(), json!({"l": 55.0, "a": 20.0, "b": -30.0}));
crate::dialogs::confirm(&mut app).unwrap();
let to = super::rows(app.ui.dialog.as_ref().unwrap())[i]["to"].clone();
assert_eq!(to, "lab 55 20 -30", "a Lab color picked in the picker is kept as Lab: {to}");
}
/// A 15 pt square at (`x`, 10) filled with `fill`, without a stroke.
+93 -1
View File
@@ -231,7 +231,9 @@ fn assign_harness(mut app: VectorcraftApp, open: Value) -> egui_kittest::Harness
app.run("ui.recolorDialog", open).unwrap();
set(&mut app, "method", json!("exact"));
let mut fonts = false;
let mut h = egui_kittest::Harness::builder().with_size(vec2(900.0, 800.0)).build_ui_state(
let builder = egui_kittest::Harness::builder().with_size(vec2(900.0, 800.0));
let builder = if std::env::var_os("VECTORCRAFT_RECOLOR_CAPTURE_DIR").is_some() { builder.wgpu() } else { builder };
let mut h = builder.build_ui_state(
move |ui, app: &mut VectorcraftApp| {
if !std::mem::replace(&mut fonts, true) {
crate::theme::install_fonts(ui.ctx());
@@ -1339,3 +1341,93 @@ fn a_color_bars_menu_removes_its_color() {
assert!(h.query_by_role_and_label(egui::accesskit::Role::Button, "Color 2").is_none(), "its bar goes");
assert_eq!(field(h.state(), "__sel"), json!([0]));
}
// Optional local visual QA; these captures are not committed assets.
fn capture_recolor(h: &mut egui_kittest::Harness<'_, VectorcraftApp>, name: &str) {
if let Some(dir) = std::env::var_os("VECTORCRAFT_RECOLOR_CAPTURE_DIR") {
let dir = std::path::PathBuf::from(dir);
std::fs::create_dir_all(&dir).unwrap();
h.render().unwrap().save(dir.join(format!("{name}.png"))).unwrap();
}
}
/// Secondary-click the actual New chip; the menu must dispatch through its UI callbacks.
fn row_context_menu(h: &mut egui_kittest::Harness<'_, VectorcraftApp>, row: usize) {
let pos = h.ctx.read_response(egui::Id::unique(("recolor-new", row))).expect("New chip").rect.center();
h.event(Event::PointerMoved(pos));
h.run_steps(1);
for pressed in [true, false] {
h.event(Event::PointerButton { pos, button: PointerButton::Secondary, pressed, modifiers: Modifiers::NONE });
h.run_steps(1);
}
h.run_steps(2);
}
#[test]
fn row_context_menu_pick_from_swatches_and_limit_to_library() {
use egui::accesskit::Role;
for empty_new in [false, true] {
let mut app = app();
art(&mut app, &["#ff0000", "#0000ff"]);
// A known, single-color palette makes it impossible to pass without snapping the rows.
let doc = &app.session.doc().unwrap().doc;
let names: Vec<_> = doc
.swatches
.iter()
.filter(|s| !s.is_reserved())
.map(|s| s.name.clone())
.chain(doc.swatch_groups.iter().map(|g| g.name.clone()))
.collect();
app.run("swatch.delete", json!({"names": names})).unwrap();
app.run("swatch.new", json!({"name": "Only Yellow", "color": "#ffff00"})).unwrap();
let undo = app.session.doc().unwrap().history.undo.len();
let mut h = assign_harness(app, json!({}));
let row = 1;
if empty_new {
let mut rows = field(h.state(), "rows");
rows[row]["to"] = Value::Null;
set(h.state_mut(), "rows", rows);
h.run_steps(2);
}
let before = field(h.state(), "rows");
let expected = if empty_new { before[row]["from"][0].clone() } else { before[row]["to"].clone() };
row_context_menu(&mut h, row);
assert_eq!(field(h.state(), "__sel"), json!([row]), "right-click selects the targeted row");
capture_recolor(&mut h, "assign-row-menu");
h.get_by_label(" Pick from Swatches").click();
h.run_steps(3);
let picker = h.state().ui.dialog.as_ref().expect("picker opened by menu");
assert_eq!(picker.kind, "colorPicker");
assert!(picker.bool("swatches"));
assert_eq!(picker.fields["__recolorRow"], json!(row));
assert_eq!(picker.fields.get("color").and_then(vectorcraft_engine::cmd::color_value), vectorcraft_engine::cmd::color_value(&expected));
capture_recolor(&mut h, "picker-swatches");
h.get_by_role_and_label(Role::Button, "Cancel").click();
h.run_steps(3);
assert_eq!(field(h.state(), "rows"), before, "picker Cancel preserves all rows");
row_context_menu(&mut h, row);
h.get_by_label("Limit to Library").click();
h.run_steps(3);
capture_recolor(&mut h, "assign-library-menu");
h.get_by_label(" Document Swatches").click();
h.run_steps(3);
assert_eq!(field(h.state(), "limitTo"), json!("document"));
let snapped = field(h.state(), "rows");
for (i, r) in snapped.as_array().unwrap().iter().enumerate() {
assert_eq!(r["to"], "rgb 255 255 0", "row {i} snaps to the palette");
}
assert_ne!(snapped, before, "the menu changes row colors");
row_context_menu(&mut h, row);
h.get_by_label("Limit to Library").click();
h.run_steps(3);
h.get_by_label(" None").click();
h.run_steps(3);
assert_eq!(field(h.state(), "limitTo"), json!(""));
assert_eq!(h.state().session.doc().unwrap().history.undo.len(), undo, "menu actions remain previews");
h.get_by_role_and_label(Role::Button, "Cancel").click();
h.run_steps(2);
assert_eq!(colors(h.state_mut()), 2, "Recolor Cancel restores the original artwork");
}
}
+3 -2
View File
File diff suppressed because one or more lines are too long
+3 -2
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+4 -2
View File
@@ -1,6 +1,6 @@
# UI and interaction parity
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-16 · **Change:** minor (#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; Drop Shadow and glow dialogs: spinner arrows, #5367, #5368; Stroke Weight Up and Down shortcuts, #5797; Layers: Rename (`ui.rename`) opens the name field of the selected layer, group or object, #5324; Properties in Edit Artboards: Transform section above the Artboards section, #5219; scrubby labels: the Control bar's Stroke: and Opacity: links and the Properties panel's Stroke link scrub their fields, #4088; Properties: Quick Actions has Repeat Options for one selected repeat, #5181; Direct Selection: Shift-click picks several blend spine points, which drag together, #5285; Direct Selection: Cmd/Ctrl held lends the Selection tool and shows its bounding box, #3901; Join tool trims two crossing open paths and joins them at the crossing, #5844; Control bar: Paragraph: link and Align left/center/right while type is selected, #5372; shape tools: a press on the selection's centre point moves it and one in the rotate zone outside a box corner turns it, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; Units › East Asian Type acts, with Q and Ha units; scores unchanged)
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-16 · **Change:** minor (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: #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; Drop Shadow and glow dialogs: spinner arrows, #5367, #5368; Stroke Weight Up and Down shortcuts, #5797; Layers: Rename (`ui.rename`) opens the name field of the selected layer, group or object, #5324; Properties in Edit Artboards: Transform section above the Artboards section, #5219; scrubby labels: the Control bar's Stroke: and Opacity: links and the Properties panel's Stroke link scrub their fields, #4088; Properties: Quick Actions has Repeat Options for one selected repeat, #5181; Direct Selection: Shift-click picks several blend spine points, which drag together, #5285; Direct Selection: Cmd/Ctrl held lends the Selection tool and shows its bounding box, #3901; Join tool trims two crossing open paths and joins them at the crossing, #5844; Control bar: Paragraph: link and Align left/center/right while type is selected, #5372; shape tools: a press on the selection's centre point moves it and one in the rotate zone outside a box corner turns it, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; Units › East Asian Type acts, with Q and Ha units; scores unchanged)
>
> Tech Circuit update (2026-11-14): three original procedural brushes; ten built-in brush libraries (G5).
>
@@ -505,7 +505,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
- [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) (#4028).
- [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.
- [x] Recolor Artwork › Color Theme Picker: with the button beside the tabs on, a click on the canvas takes the color palette of an object or image, a drag takes the palette of the art inside its marquee, and Shift adds more picks; the rows that aren't excluded take the palette as their new colors and the art previews them ([Recolor artwork](https://helpx.adobe.com/illustrator/desktop/manage-colors/modify-colors/recolor-artwork.html)). The number and order of the picked colors are VectorCraft's own rule (`recolor.pickTheme`). Tests: `theme_picks_give_the_rows_the_palette_of_the_art_picked` and `the_theme_picker_takes_clicks_and_shift_drags_on_the_canvas` in `crates/ui-egui/src/dialogs/recolor.rs`, `theme_picker_*` in `crates/engine/src/tests/recolor.rs`.
@@ -554,6 +554,8 @@ before release (#6373). [Paint faces and edges](https://helpx.adobe.com/illustra
| Date | Change | Summary |
|---|---|---|
| 2026-11-16 | minor | 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. |
| 2026-11-16 | minor | Recolor Artwork › Assign: native Lab entry in the Color Picker, swatch libraries access in the picker, and row context menu options (Pick from Swatches, Limit to Library) (#4028). Scores and estimates unchanged. |
| 2026-11-16 | minor | Color panel: the spectrum fills the vertical space of a resized panel, with options shown or hidden (#8005). Compact auto-fit flyouts and embedded mixers keep their existing size. Evidence: panels::color::tests::the_spectrum_grows_with_the_color_panel. Scores and estimates 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-12 | minor | Numeric fields: a focus click released more than 1 pt from its press keeps the caret; a tap within 1 pt still selects the whole value (#6659, follow-up to #1326). Scores and estimates unchanged. |