mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-26 03:16:53 -06:00
M1: reword the vector segment style import notes
This commit is contained in:
@@ -1302,10 +1302,10 @@ impl<'a> Mapper<'a> {
|
||||
}
|
||||
}
|
||||
if has_uninterpreted {
|
||||
self.warn("metadata for styled vector network segments was not interpreted");
|
||||
self.warn("style settings of some vector segments aren't supported; those segments use the layer's stroke");
|
||||
}
|
||||
if has_missing {
|
||||
self.warn("vector network segments reference missing style entries");
|
||||
self.warn("some vector segments refer to style settings missing from the file; they use the layer's stroke");
|
||||
}
|
||||
// An open path shows its fill, which regions can't hold: the outline keeps the look.
|
||||
let fills_shown =
|
||||
|
||||
@@ -280,9 +280,9 @@ fn per_segment_stroke_styles_are_reported() {
|
||||
};
|
||||
assert_eq!(network::decode_styled(&square_blob()).unwrap().1, 0);
|
||||
let plain = import(&tail_canvas(), "Tail").unwrap().1;
|
||||
assert!(!plain.iter().any(|w| w.contains("vector network segments")), "{plain:?}");
|
||||
let uninterpreted = |w: &String| w.contains("metadata for styled vector network segments was not interpreted");
|
||||
let missing = |w: &String| w.contains("vector network segments reference missing style entries");
|
||||
assert!(!plain.iter().any(|w| w.contains("vector segments")), "{plain:?}");
|
||||
let uninterpreted = |w: &String| w.contains("style settings of some vector segments aren't supported; those segments use the layer's stroke");
|
||||
let missing = |w: &String| w.contains("some vector segments refer to style settings missing from the file; they use the layer's stroke");
|
||||
// Style 1 has a row in the layer's override table; its contents are not applied.
|
||||
let known = styled_import(1);
|
||||
assert_eq!(known.iter().filter(|w| uninterpreted(w)).count(), 1, "{known:?}");
|
||||
|
||||
Reference in New Issue
Block a user