mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 02:19:56 -06:00
Text styles: a loaded style's pattern brings the styles of either kind its type uses
Load Character Styles and Load Paragraph Styles left out every style of the other kind, so a pattern that a loaded style paints with kept a reference to a paragraph or character style the document did not get. The styles of the kind not loaded now come along when such a pattern or symbol sets type in them, renamed like any other. The order in which styles, symbols and patterns are placed is worked out from one graph of their uses instead of scanning every definition left in each round.
This commit is contained in:
+3
-2
@@ -5934,8 +5934,9 @@ uses, in panel order and never the Normal style, and the panel highlights them;
|
||||
(Load Character Styles… and Load Paragraph Styles… in the panel menus, where `ui.loadCharStyles` and
|
||||
`ui.loadParaStyles` pick the file) copy the styles of that kind from another document VectorCraft opens (`path`, `data`
|
||||
or `dataBase64`), and `textStyle.loadAll` (Load All Styles…, `ui.loadAllStyles`) copies both kinds, each in one undo
|
||||
step. The swatches and patterns the styles paint with come along as Paste brings those of pasted type; a global or spot
|
||||
color whose name the document gives another color is the document's. A loaded style that is the same as the style of
|
||||
step. The swatches and patterns the styles paint with, and the styles of either kind that type in those patterns is set
|
||||
in, come along as Paste brings those of pasted type; a global or spot color whose name the document gives another color
|
||||
is the document's. A loaded style that is the same as the style of
|
||||
its name, or of its name with a number (`Body 2`), is not added again; any other is added under a free name. The
|
||||
document's styles and the type that uses them keep their attributes, and the file's Normal styles are not loaded. The
|
||||
reply lists the names `added`, `existing` and `skipped` (a style whose attributes do not read, or whose name is
|
||||
|
||||
Reference in New Issue
Block a user