mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 13:23:22 +00:00
With several rows highlighted, Layer Options shows the first row's settings, and OK sent Show, Lock, Color, Template, Print, Preview and Dim Images to layer.setProps for every row. Changing one setting gave every row the first row's values for all of the others as well. The dialog now records each setting set by one of its controls or by ui.dialog.set, and for several rows OK sends only those. A setting set to the value the dialog shows is still sent, so choosing the first row's color gives every row that color. When Template changes and Lock and Dim Images are not set in the dialog, OK does not send them. layer.setProps then locks each row that becomes a template and dims it to 50%, unless a percentage is set in the dialog, and unlocks and stops dimming each row that stops being one. When Template is turned on, the dialog shows that 50%. When Template is set back to the first row's value, the dialog shows the first row's Lock, Dim Images and percentage again. A Dim Images percentage set in the dialog is sent whenever Dim Images is on, also when Template turned it on. ui.dialog.set of template now also sets locked and dimImages, as the Template checkbox does, for one row as well as several. Before, a script that set template to true and confirmed the dialog left the layer unlocked and undimmed. The Dim Images percentage field now has the accessible name "Dim Images to:", as its checkbox has.