mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 10:46:46 +00:00
Merge main into feat/graphic-styles-drag-to-new-duplicates
This commit is contained in:
@@ -206,6 +206,13 @@ pub const LANGUAGES: &[(&str, &str, Quotes)] = &[
|
||||
("Assamese", "as", Quotes::ENGLISH),
|
||||
("Sanskrit", "sa", Quotes::ENGLISH),
|
||||
("Urdu", "ur", Quotes::ENGLISH),
|
||||
// “…” outside, ‘…’ inside: CLDR gives these no delimiters of their own (`↑↑↑`, inherited), so
|
||||
// they take root's (https://github.com/unicode-org/cldr/blob/main/common/main/root.xml,
|
||||
// `delimiters`): sa.xml, ne.xml, as.xml, kok.xml and sd.xml (Arabic script; sd_Deva.xml for
|
||||
// Devanagari inherits too) in https://github.com/unicode-org/cldr/blob/main/common/main/.
|
||||
("Nepali", "ne", Quotes::ENGLISH),
|
||||
("Konkani", "kok", Quotes::ENGLISH),
|
||||
("Sindhi", "sd", Quotes::ENGLISH),
|
||||
];
|
||||
|
||||
/// The quotes of a [`LANGUAGES`] entry (case-insensitive).
|
||||
@@ -420,6 +427,11 @@ mod tests {
|
||||
assert_eq!(char_language("BG"), Ok(Some("bg")));
|
||||
assert_eq!(char_language_name(Some("bg")), Some("Bulgarian"));
|
||||
assert_eq!(char_language_name(Some("sr-Cyrl")), Some("Serbian: Cyrillic"));
|
||||
// Sanskrit, Nepali, Assamese, Konkani (a three-letter tag) and Sindhi, by name or tag.
|
||||
for (name, tag) in [("Sanskrit", "sa"), ("Nepali", "ne"), ("Assamese", "as"), ("Konkani", "kok"), ("Sindhi", "sd")] {
|
||||
assert_eq!((char_language(name), char_language(&tag.to_uppercase())), (Ok(Some(tag)), Ok(Some(tag))), "{name}");
|
||||
assert_eq!(char_language_name(Some(tag)), Some(name));
|
||||
}
|
||||
// Every entry has a tag of its own, and a name of its own.
|
||||
for (i, (n, t, _)) in LANGUAGES.iter().enumerate() {
|
||||
assert!(LANGUAGES.iter().skip(i + 1).all(|(n2, t2, _)| n2 != n && t2 != t), "{n} {t}");
|
||||
@@ -443,6 +455,11 @@ mod tests {
|
||||
}
|
||||
let mut prev = None;
|
||||
assert_eq!(language_quotes("croatian").unwrap().apply("\"a 'b' c\"", &mut prev), "„a ‚b‘ c“");
|
||||
// Sanskrit, Nepali, Assamese, Konkani and Sindhi take CLDR root's quotes.
|
||||
for name in ["Sanskrit", "Nepali", "Assamese", "Konkani", "Sindhi"] {
|
||||
let mut prev = None;
|
||||
assert_eq!(language_quotes(name).unwrap().apply("\"a 'b' c\"", &mut prev), "“a ‘b’ c”", "{name}");
|
||||
}
|
||||
// Only a typed `”` stands for a straight quote; the other curly quotes stay as typed.
|
||||
assert_eq!(Quotes::typed_as_straight('”'), Some('"'));
|
||||
assert!(['“', '„', '‘', '’', '‚', '"', '\'', '«', '»', '「', 'a'].iter().all(|&c| Quotes::typed_as_straight(c).is_none()));
|
||||
|
||||
@@ -314,7 +314,10 @@ pub const PREF_SPECS: &[PrefSpec] = &[
|
||||
("or", "Odia"),
|
||||
("as", "Assamese"),
|
||||
("sa", "Sanskrit"),
|
||||
("ur", "Urdu")
|
||||
("ur", "Urdu"),
|
||||
("ne", "Nepali"),
|
||||
("kok", "Konkani"),
|
||||
("sd", "Sindhi")
|
||||
])
|
||||
),
|
||||
p!("hyphenationExceptions", "Hyphenation", "", "Exceptions (comma separated)", text),
|
||||
|
||||
@@ -174,6 +174,27 @@ fn language_picks_its_quotes_unless_quotes_are_given() {
|
||||
assert_eq!((setup(&s).quotes.double, setup(&s).quotes.single), (['“', '”'], ['‹', '›']));
|
||||
}
|
||||
|
||||
/// Sanskrit, Nepali, Assamese, Konkani and Sindhi (#4943): each is a document language, new type
|
||||
/// takes its tag, and each can be set on a text by name or tag.
|
||||
#[test]
|
||||
fn the_further_indian_languages_are_document_and_text_languages() {
|
||||
let mut s = session();
|
||||
let id = create_text(&mut s, "a");
|
||||
for (name, tag) in [("Sanskrit", "sa"), ("Nepali", "ne"), ("Assamese", "as"), ("Konkani", "kok"), ("Sindhi", "sd")] {
|
||||
s.execute("document.setup", &json!({"language": name.to_lowercase()})).unwrap();
|
||||
assert_eq!((setup(&s).language.as_str(), setup(&s).quotes.double), (name, ['“', '”']));
|
||||
let new = create_text(&mut s, "b");
|
||||
assert_eq!(text(&s, new).runs[0].style.language.as_deref(), Some(tag), "new type in {name}");
|
||||
s.execute("document.setup", &json!({"language": "English: USA"})).unwrap();
|
||||
s.execute("select.set", &json!({"ids": [id.0]})).unwrap();
|
||||
s.execute("text.setFormat", &json!({"language": name})).unwrap();
|
||||
assert_eq!(text(&s, id).runs[0].style.language.as_deref(), Some(tag), "{name} by name");
|
||||
s.execute("text.setFormat", &json!({"language": "English: USA"})).unwrap();
|
||||
s.execute("text.setFormat", &json!({"language": tag.to_uppercase()})).unwrap();
|
||||
assert_eq!(text(&s, id).runs[0].style.language.as_deref(), Some(tag), "{name} by tag");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn typographers_quotes_setting_changes_typed_quotes() {
|
||||
let mut s = session();
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -6820,6 +6820,11 @@ breakText Glyphs Глифи
|
||||
Malayalam Малаялам
|
||||
Odia Ория
|
||||
Urdu Урду
|
||||
Sanskrit Санскрит
|
||||
Nepali Непалски
|
||||
Assamese Асамски
|
||||
Konkani Конкани
|
||||
Sindhi Синдхи
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} и по-нови (версия {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Експортиране на всички отворени документи като PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -6872,6 +6872,11 @@ shape Open Otvoren
|
||||
Malayalam Malajalam
|
||||
Odia Odija
|
||||
Urdu Urdu
|
||||
Sanskrit Sanskrit
|
||||
Nepali Nepalski
|
||||
Assamese Asamski
|
||||
Konkani Konkani
|
||||
Sindhi Sindi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} i novije (verzija {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Izvezi sve otvorene dokumente kao PDF
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7523,6 +7523,11 @@ breakText Glyphs Glifs
|
||||
Malayalam Malaiàlam
|
||||
Odia Oriya
|
||||
Urdu Urdú
|
||||
Sanskrit Sànscrit
|
||||
Nepali Nepalès
|
||||
Assamese Assamès
|
||||
Konkani Concani
|
||||
Sindhi Sindi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} i posteriors (versió {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Exporta tots els documents oberts com a PDF
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7514,6 +7514,11 @@ breakText Glyphs Glyfy
|
||||
Malayalam Malajálamština
|
||||
Odia Urijština
|
||||
Urdu Urdština
|
||||
Sanskrit Sanskrt
|
||||
Nepali Nepálština
|
||||
Assamese Ásámština
|
||||
Konkani Konkánština
|
||||
Sindhi Sindhština
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} a novější (verze {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Exportovat všechny otevřené dokumenty jako PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9567,6 +9567,11 @@ breakText Glyphs Glyffer
|
||||
Malayalam Malayalam
|
||||
Odia Oriya
|
||||
Urdu Urdu
|
||||
Sanskrit Sanskrit
|
||||
Nepali Nepalesisk
|
||||
Assamese Assamesisk
|
||||
Konkani Konkani
|
||||
Sindhi Sindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} og nyere (version {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Eksportér alle åbne dokumenter som PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7105,6 +7105,11 @@ breakText Glyphs Glyphen
|
||||
Malayalam Malayalam
|
||||
Odia Oriya
|
||||
Urdu Urdu
|
||||
Sanskrit Sanskrit
|
||||
Nepali Nepalesisch
|
||||
Assamese Assamesisch
|
||||
Konkani Konkani
|
||||
Sindhi Sindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} und neuer (Version {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Alle geöffneten Dokumente als PDF exportieren
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7496,6 +7496,11 @@ breakText Glyphs Γλύφοι
|
||||
Malayalam Μαλαγιάλαμ
|
||||
Odia Όντια
|
||||
Urdu Ούρντου
|
||||
Sanskrit Σανσκριτικά
|
||||
Nepali Νεπαλικά
|
||||
Assamese Ασαμικά
|
||||
Konkani Κονκανικά
|
||||
Sindhi Σίντι
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} και νεότερες (έκδοση {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Εξαγωγή όλων των ανοιχτών εγγράφων ως PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7484,6 +7484,11 @@ breakText Glyphs Glifos
|
||||
Malayalam Malayálam
|
||||
Odia Oriya
|
||||
Urdu Urdu
|
||||
Sanskrit Sánscrito
|
||||
Nepali Nepalí
|
||||
Assamese Asamés
|
||||
Konkani Konkaní
|
||||
Sindhi Sindi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} y posteriores (versión {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Exportar todos los documentos abiertos como PDF
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7572,6 +7572,11 @@ breakText Glyphs Merkit
|
||||
Malayalam Malajalam
|
||||
Odia Orija
|
||||
Urdu Urdu
|
||||
Sanskrit Sanskrit
|
||||
Nepali Nepali
|
||||
Assamese Assami
|
||||
Konkani Konkani
|
||||
Sindhi Sindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} ja uudemmat (versio {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Vie kaikki avoimet asiakirjat PDF-muodossa
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7509,6 +7509,11 @@ breakText Glyphs Glyphes
|
||||
Malayalam Malayalam
|
||||
Odia Odia
|
||||
Urdu Ourdou
|
||||
Sanskrit Sanskrit
|
||||
Nepali Népalais
|
||||
Assamese Assamais
|
||||
Konkani Konkani
|
||||
Sindhi Sindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} et ultérieures (version {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Exporter tous les documents ouverts en PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -5527,6 +5527,11 @@ antiAlias Sharp शार्प
|
||||
Update Modified Links अद्यतन संशोधित लिंक
|
||||
Update Selection अद्यतन सिलेक्शन
|
||||
UPPERCASE अपरकैस
|
||||
Sanskrit संस्कृत
|
||||
Nepali नेपाली
|
||||
Assamese असमिया
|
||||
Konkani कोंकणी
|
||||
Sindhi सिंधी
|
||||
Urdu उर्दू
|
||||
URL: यूआरएल:
|
||||
Use उपयोग
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7499,6 +7499,11 @@ breakText Glyphs Glifák
|
||||
Malayalam Malajálam
|
||||
Odia Odia
|
||||
Urdu Urdu
|
||||
Sanskrit Szanszkrit
|
||||
Nepali Nepáli
|
||||
Assamese Asszámi
|
||||
Konkani Konkani
|
||||
Sindhi Szindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} és újabb (verzió: {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Az összes megnyitott dokumentum exportálása PDF-ként
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -6835,6 +6835,11 @@ breakText Glyphs Glif
|
||||
Malayalam Malayalam
|
||||
Odia Oriya
|
||||
Urdu Urdu
|
||||
Sanskrit Sanskerta
|
||||
Nepali Nepali
|
||||
Assamese Assam
|
||||
Konkani Konkani
|
||||
Sindhi Sindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} dan yang lebih baru (versi {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Ekspor Semua Dokumen Terbuka sebagai PDF
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2490 and column 5.
|
@@ -7141,6 +7141,11 @@ breakText Glyphs Glifi
|
||||
Malayalam Malayalam
|
||||
Odia Odia
|
||||
Urdu Urdu
|
||||
Sanskrit Sanscrito
|
||||
Nepali Nepalese
|
||||
Assamese Assamese
|
||||
Konkani Konkani
|
||||
Sindhi Sindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} e successive (versione {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Esporta tutti i documenti aperti come PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9020,6 +9020,11 @@ breakText Glyphs 字形
|
||||
Malayalam マラヤーラム語
|
||||
Odia オディア語
|
||||
Urdu ウルドゥー語
|
||||
Sanskrit サンスクリット語
|
||||
Nepali ネパール語
|
||||
Assamese アッサム語
|
||||
Konkani コンカニ語
|
||||
Sindhi シンド語
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} 以降 (バージョン {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF 開いているすべてのドキュメントを PDF として書き出し
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9631,6 +9631,9 @@ breakText Glyphs გლიფები
|
||||
Urdu ურდუ
|
||||
Assamese ასამური
|
||||
Sanskrit სანსკრიტი
|
||||
Nepali ნეპალური
|
||||
Konkani კონკანი
|
||||
Sindhi სინდჰური
|
||||
German: Swiss გერმანული: შვეიცარია
|
||||
Catalan კატალანური
|
||||
Danish დანიური
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7105,6 +7105,11 @@ breakText Glyphs 글리프
|
||||
Malayalam 말라얄람어
|
||||
Odia 오리야어
|
||||
Urdu 우르두어
|
||||
Sanskrit 산스크리트어
|
||||
Nepali 네팔어
|
||||
Assamese 아삼어
|
||||
Konkani 코카니어
|
||||
Sindhi 신디어
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} 이상 (버전 {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF 열린 모든 문서를 PDF로 내보내기
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9392,6 +9392,11 @@ breakText Glyphs Glyphs
|
||||
Malayalam Malayalam
|
||||
Odia Odia
|
||||
Urdu Urdu
|
||||
Sanskrit Sanskriet
|
||||
Nepali Nepalees
|
||||
Assamese Assamees
|
||||
Konkani Konkani
|
||||
Sindhi Sindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} en nieuwer (versie {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Alle geopende documenten exporteren als PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7370,6 +7370,11 @@ breakText Glyphs Glify
|
||||
Malayalam Malajalam
|
||||
Odia Orija
|
||||
Urdu Urdu
|
||||
Sanskrit Sanskryt
|
||||
Nepali Nepalski
|
||||
Assamese Asamski
|
||||
Konkani Konkani
|
||||
Sindhi Sindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} i nowsze (wersja {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Eksportuj wszystkie otwarte dokumenty jako PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7545,6 +7545,11 @@ breakText Glyphs Glifos
|
||||
Malayalam Malaiala
|
||||
Odia Oriá
|
||||
Urdu Urdu
|
||||
Sanskrit Sânscrito
|
||||
Nepali Nepalês
|
||||
Assamese Assamês
|
||||
Konkani Concani
|
||||
Sindhi Sindi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} e posteriores (versão {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Exportar todos os documentos abertos como PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7504,6 +7504,11 @@ breakText Glyphs Глифы
|
||||
Malayalam Малаялам
|
||||
Odia Ория
|
||||
Urdu Урду
|
||||
Sanskrit Санскрит
|
||||
Nepali Непальский
|
||||
Assamese Ассамский
|
||||
Konkani Конкани
|
||||
Sindhi Синдхи
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} и новее (версия {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Экспортировать все открытые документы в PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7542,6 +7542,9 @@ breakText Glyphs Glyfer
|
||||
Malayalam Malayalam
|
||||
Odia Oriya
|
||||
Urdu Urdu
|
||||
Nepali Nepalesiska
|
||||
Konkani Konkani
|
||||
Sindhi Sindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} och senare (version {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Exportera alla öppna dokument som PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9394,6 +9394,11 @@ breakText Glyphs Glifler
|
||||
Malayalam Malayalam dili
|
||||
Odia Oriya dili
|
||||
Urdu Urduca
|
||||
Sanskrit Sanskrit
|
||||
Nepali Nepalce
|
||||
Assamese Assamca
|
||||
Konkani Konkani dili
|
||||
Sindhi Sindhi dili
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} ve sonrası (sürüm {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Tüm Açık Belgeleri PDF Olarak Dışa Aktar
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7123,6 +7123,11 @@ breakText Glyphs Гліфи
|
||||
Malayalam Малаялам
|
||||
Odia Одія
|
||||
Urdu Урду
|
||||
Sanskrit Санскрит
|
||||
Nepali Непальська
|
||||
Assamese Ассамська
|
||||
Konkani Конкані
|
||||
Sindhi Синдхі
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} і новіші (версія {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Експортувати всі відкриті документи як PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7153,6 +7153,11 @@ breakText Glyphs Glyph
|
||||
Malayalam Tiếng Malayalam
|
||||
Odia Tiếng Odia
|
||||
Urdu Tiếng Urdu
|
||||
Sanskrit Tiếng Phạn
|
||||
Nepali Tiếng Nepal
|
||||
Assamese Tiếng Assam
|
||||
Konkani Tiếng Konkani
|
||||
Sindhi Tiếng Sindhi
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} trở lên (phiên bản {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF Xuất tất cả tài liệu đang mở dưới dạng PDF
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 205 and column 5.
|
@@ -7355,6 +7355,11 @@ breakText Glyphs 字形
|
||||
Malayalam 马拉雅拉姆语
|
||||
Odia 奥里亚语
|
||||
Urdu 乌尔都语
|
||||
Sanskrit 梵语
|
||||
Nepali 尼泊尔语
|
||||
Assamese 阿萨姆语
|
||||
Konkani 孔卡尼语
|
||||
Sindhi 信德语
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} 及更高版本 (版本 {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF 将所有打开的文档导出为 PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7164,6 +7164,11 @@ breakText Glyphs 字符
|
||||
Malayalam 馬來亞拉姆文
|
||||
Odia 歐利亞文
|
||||
Urdu 烏都文
|
||||
Sanskrit 梵文
|
||||
Nepali 尼泊爾文
|
||||
Assamese 阿薩姆文
|
||||
Konkani 貢根文
|
||||
Sindhi 信德文
|
||||
VectorCraft {release} and later (version {n}) VectorCraft {release} 及更新版本 (版本 {n})
|
||||
# Document Tools add-on: Export All Open Documents (#4920).
|
||||
Export All Open Documents as PDF 將所有開啟的文件匯出為 PDF
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -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
File diff suppressed because one or more lines are too long
+3
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
-2
@@ -77,8 +77,7 @@ against Illustrator's public documentation; **estimated** unless noted.
|
||||
| CJK: warichu | done | Character panel menu › Warichu and Warichu Settings… (`text.setFormat` / `text.setRangeStyle {warichu, warichuLines, warichuGap, warichuScale, warichuAlign}`, `ui.warichuSettings`), with Show East Asian Options ([Format East Asian characters](https://helpx.adobe.com/illustrator/using/formatting-asian-characters.html)): marked characters set at a percentage of their size and stacked on 1 to 6 lines inside their line, one above the other in horizontal type and side by side in vertical type, with a line gap and eight alignments; a block stays whole on one line. Saved natively, carried by character styles, drawn on the canvas and in every export (SVG, PDF and `.ai` write such type as outlines). Type on a path sets the characters at their own size. Evidence: `tests::warichu`, `dialogs::warichu::tests`, `typecmd::area_tests::warichu_is_a_character_attribute_set_saved_and_exported` |
|
||||
| CJK: composite fonts | partial | Type › Composite Fonts… (`type.compositeFonts.set`), with Show East Asian Options: a font made of a font per class of character (Kanji, Kana, Punctuation, Symbols, Roman, Numerals), each with its own style, size and baseline in percent of the type's size, Kana, Roman and Numerals with horizontal and vertical scale, and Kana with Scale at Center; New, Delete Font, Import… and Export… (`.vccomposite`, `type.compositeFonts.import` and `.export`) ([Creating composite fonts](https://help.adobe.com/archive/en_US/illustrator/cs3/illustrator_cs3_help.pdf#page=347)); custom character sets (Custom: New, Delete Set, characters added by Direct Entry or Unicode code and deleted), each with its own font, style, size, baseline and scales, ahead of the classes, the later set winning a character two list (`custom` in `type.compositeFonts.set`) ([Customize characters in a composite font](https://web.archive.org/web/20220911143322/https://helpx.adobe.com/pdf/cs6/illustrator_reference.pdf#page=348)). Composite fonts are listed first in the font menus, saved with the document, and their type is laid out per set and class; SVG and legacy `.ai` write it as outlines. Show Sample draws the font picked with lines for its ICF box, em box, baseline, cap height, highest ascent and lowest descent, highest ascender and x-height, each shown or hidden by its button, at the Zoom picked ([Creating composite fonts](https://help.adobe.com/archive/en_US/illustrator/cs4/illustrator_cs4_help.pdf#page=352)). Not yet: the Units menu. Evidence: `text::composite::tests::characters_fall_in_their_classes`, `text::composite::tests::custom_sets_take_their_characters_before_the_classes`, `tests::composite::composite_type_draws_each_class_in_its_font`, `tests::composite::custom_character_sets_take_their_characters_first`, `compositefonts::tests`, `dialogs::composite_fonts::tests` |
|
||||
| CJK: ruby | partial | ruby (ふりがな) for live text (`type.ruby`): a reading over a byte range, above (right of the column in vertical type) or below, start/centre/end alignment, size, overhang or squeeze; saved natively, laid out with its line growing, drawn on the canvas, in SVG and PDF (as outlines where ruby is present), in EPS, EMF/WMF and legacy `.ai` (legacy `.ai` writes type with ruby as outlines), and kept by Create Outlines, Expand Appearance and flattening, each glyph where the layout puts it (`typecmd::ruby_tests::create_outlines_keeps_the_ruby_where_it_is_laid_out`) | #633 |
|
||||
| Language per character (Character panel › Language, character styles), text shaped in it | done | `text.setFormat` / `text.setRangeStyle {language}` by name or BCP 47 tag, one of Document Setup's languages (Hindi, Marathi, Gujarati, Bengali, Punjabi, Tamil, Telugu, Kannada, Malayalam, Odia and Urdu added, #4943; Assamese and Sanskrit added, #4947; Serbian: Cyrillic, Serbian: Latin and Croatian); the shaper gets the tag, so the font's language forms apply (OpenType `locl`: Turkish keeps `fi` apart and the dot on its i, #4940); new type takes the document's language; saved as the tag only when set, carried by character styles (#4946). English and eleven Indian languages hyphenate by run language; Sanskrit automatic hyphenation awaits allowlisted patterns (#4947). Not yet: `.ai`/PDF import of a text's language, paragraph styles. Evidence: `features::tests::language_picks_the_fonts_forms`, `features::tests::serbian_gets_the_fonts_serbian_forms`, `typecmd::area_tests::language_is_a_character_attribute_saved_only_when_set`, `tests::typo::indic_language_runs_hyphenate_with_both_composers`, `hyphen::tests::sanskrit_without_allowlisted_patterns_uses_only_exceptions`; spelling is checked in each run's Language (`text.spelling.check`, #4936) |
|
||||
| Language per character (Character panel › Language, character styles), text shaped in it | done | `text.setFormat` / `text.setRangeStyle {language}` by name or BCP 47 tag, one of Document Setup's languages (Hindi, Marathi, Gujarati, Bengali, Punjabi, Tamil, Telugu, Kannada, Malayalam, Odia and Urdu added, #4943; Serbian: Cyrillic, Serbian: Latin and Croatian; Bulgarian, #5945); the shaper gets the tag, so the font's language forms apply (OpenType `locl`: Turkish keeps `fi` apart and the dot on its i, #4940); new type takes the document's language; saved as the tag only when set, carried by character styles (#4946). Not yet: hyphenation by it in languages other than English and the eleven Indian languages above, `.ai`/PDF import of a text's language, paragraph styles. Evidence: `features::tests::language_picks_the_fonts_forms`, `features::tests::serbian_gets_the_fonts_serbian_forms`, `typecmd::area_tests::language_is_a_character_attribute_saved_only_when_set`; spelling is checked in each run's Language (`text.spelling.check`, #4936) |
|
||||
| Language per character (Character panel › Language, character styles), text shaped in it | done | `text.setFormat` / `text.setRangeStyle {language}` by name or BCP 47 tag, one of Document Setup's languages (Hindi, Marathi, Gujarati, Bengali, Punjabi, Tamil, Telugu, Kannada, Malayalam, Odia and Urdu added, #4943; Assamese and Sanskrit added, #4947; Nepali, Konkani and Sindhi added, #4943; Serbian: Cyrillic, Serbian: Latin and Croatian; Bulgarian, #5945); the shaper gets the tag, so the font's language forms apply (OpenType `locl`: Turkish keeps `fi` apart and the dot on its i, #4940); new type takes the document's language; saved as the tag only when set, carried by character styles (#4946). English and eleven Indian languages hyphenate by run language; Sanskrit automatic hyphenation awaits allowlisted patterns (#4947). Not yet: `.ai`/PDF import of a text's language, paragraph styles. Evidence: `features::tests::language_picks_the_fonts_forms`, `features::tests::serbian_gets_the_fonts_serbian_forms`, `typecmd::area_tests::language_is_a_character_attribute_saved_only_when_set`, `tests::typo::indic_language_runs_hyphenate_with_both_composers`, `hyphen::tests::sanskrit_without_allowlisted_patterns_uses_only_exceptions`, `tests::docsetup::the_further_indian_languages_are_document_and_text_languages`; spelling is checked in each run's Language (`text.spelling.check`, #4936) |
|
||||
| No Break | done | Character panel menu (`text.setFormat` / `text.setRangeStyle {noBreak}`): the marked characters stay on one line, including across a space; a run that does not fit after earlier text moves together, and a run longer than the line stays together. Evidence: `layout::wrapping_tests::no_break_keeps_marked_characters_on_one_line`, `tests::no_break_keeps_marked_words_on_one_line`, `typecmd::no_break_is_a_character_attribute_saved_only_when_on` |
|
||||
| Inline symbols in text | beyond Illustrator | not scored |
|
||||
| Align Stroke (inside, outside) on live type's character stroke | beyond Illustrator | not scored; `stroke.set {align}` and `text.setRangeStyle {strokeOptions: {align}}`; saved natively, drawn around the glyphs on the canvas and in PDF, EPS and SVG (live text, stroke on the glyph outlines); visual bounds grow with it (#2294) |
|
||||
@@ -108,6 +107,7 @@ Character Styles menu New/Redefine and footer New capture the first selected cha
|
||||
| 2026-11-09 | minor | PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged. Decoded stream and placement regressions; reader ActualText (#6165), styled clusters and external viewer validation remain separate. |
|
||||
| 2026-11-09 | minor | Custom dictionary and Ignore All (#4936): `text.spelling.addWord`, `removeWord`, `changeWord` and `dictionary`, saved beside the preferences, and `text.spelling.ignoreAll` for the active document; the Check Spelling and Edit Custom Dictionary dialogs and Auto Spell Check remain. Scores and estimates unchanged. |
|
||||
| 2026-11-08 | minor | Spell check engine (#4936): `text.spelling.check` lists unknown words per run language at `text.editRange` byte offsets and `text.spelling.suggest` gives suggestions, from craft-proof; the dialog, Auto Spell Check and the custom dictionary remain. Spelling noted in the Language per character rows, which no longer list it as not yet done; their hyphenation note names the languages that still lack it. Scores and estimates unchanged. |
|
||||
| 2026-11-10 | minor | Nepali (`ne`), Konkani (`kok`) and Sindhi (`sd`) complete the remaining language-list additions (#4943); Assamese and Sanskrit already landed in #5946. The five languages use quotes inherited from [CLDR root](https://github.com/unicode-org/cldr/blob/main/common/main/root.xml). Hyphenation behavior from #4947 is retained; scores unchanged |
|
||||
| 2026-11-07 | minor | Tabs: in right-aligned area type, the text before a line's last tab sits at its stops, measured from the left edge, and the text after it (none, when the tab ends the line) against the right edge; the line was aligned as a whole, which moved its start off the left edge. Illustrator's own layout in a user's `.ai` (used locally, not committed) sets its price lists so. Centred and justified lines keep their alignment as a whole. Scores and estimates unchanged. |
|
||||
| 2026-11-07 | minor | Soft return: in Justify Left, Center or Right, the line a soft return ends is justified as a wrapped line is; only the paragraph's last line keeps its alignment. Illustrator's own layout in a user's `.ai` (used locally, not committed) justifies those lines. Scores and estimates unchanged. |
|
||||
| 2026-11-08 | minor | Style panels: a double-click on a user character style's row opens its Character Style Options (`ui.charStyleOptions`), and on a paragraph style's row its Paragraph Style Options (rename); the Character Style Options dialog keeps a fixed width and scrolls its sections in a shorter window, so OK and Cancel stay on screen. Tests `panels::text_styles::tests::double_clicking_a_character_style_row_opens_its_options` and `dialogs::char_style_options::tests::the_sections_scroll_in_a_window_shorter_than_the_general_list`. Scores and estimates unchanged. |
|
||||
|
||||
+5
-2
@@ -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).
|
||||
>
|
||||
@@ -53,6 +53,7 @@ Artboard Options forwards the active Artboard tool's Scale Artwork with Artboard
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-11-09 | minor | Document Setup and Character panel Language lists: Nepali, Konkani and Sindhi complete #4943; Assamese and Sanskrit are already present from #5946. Names in all 27 catalogs come from [CLDR locale language-name data](https://github.com/unicode-org/cldr/tree/main/common/main). The public [language assignment documentation](https://helpx.adobe.com/illustrator/using/spelling-language-dictionaries.html) describes the Character panel Language menu, but does not establish that these five languages are listed there; inclusion and a single Sindhi entry remain maintainer decisions. Scores unchanged |
|
||||
| 2026-11-14 | minor | G5: 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-14 | minor | Layers panel: right-clicking a layer/group/object row shows a context menu with Options…, Duplicate, Delete, Lock/Hide Others, Locate Object, and Collect for Export — matching standard desktop layer panel conventions. Scores unchanged. |
|
||||
| 2026-11-13 | minor | Pencil cursors: the continuation cursor (a short rising line) shows over an open end of a selected path before any press, freehand too, and while a continuing stroke nears another selected path's open end it connects to; the straight-line cursor is a short level line; a continued path, a straight line too, shows the closing cursor and closes within Close Paths When Ends Are Within of its other end, and with Alt at the release. Scores and estimates unchanged. |
|
||||
@@ -505,7 +506,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 +555,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. |
|
||||
|
||||
Reference in New Issue
Block a user